[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[6344] trunk/UI/templates



Revision: 6344
          http://sourceforge.net/p/ledger-smb/code/6344
Author:   einhverfr
Date:     2014-01-02 10:18:07 +0000 (Thu, 02 Jan 2014)
Log Message:
-----------
Adding templates for editing templates ;-)

Added Paths:
-----------
    trunk/UI/templates/edit.html
    trunk/UI/templates/preview.html

Added: trunk/UI/templates/edit.html
===================================================================
--- trunk/UI/templates/edit.html	                        (rev 0)
+++ trunk/UI/templates/edit.html	2014-01-02 10:18:07 UTC (rev 6344)
@@ -0,0 +1,32 @@
+<?lsmb INCLUDE "ui-header.html";
+ PROCESS "elements.html" ?>
+<body class="<?lsmb dojo-theme ?>">
+<div class="listtop"><?lsmb template_name ?>.<?lsmb format ?><?lsmb
+ IF language_code; "($language_code)"; ELSE; "(" _ text("No language") _ ")";
+ END; ?></div>
+<form action="template.pl" method="post">
+<textarea class="template-body <?lsmb format ?>"><?lsmb template ?></textarea>
+<?lsmb 
+PROCESS input element_data = {
+    type = 'hidden'
+    name = 'template_name'
+   value = template_name
+};
+PROCESS input element_data = {
+    type = 'hidden'
+    name = 'language_code'
+   value = language_code
+};
+PROCESS input element_data = {
+    type = 'hidden'
+    name = "format"
+   value = format
+};
+PROCESS button element_data = {
+    type = 'submit'
+    name = 'action'
+   value = 'save'
+    text = text('Save')
+}; ?>
+</body>
+</html>

Added: trunk/UI/templates/preview.html
===================================================================
--- trunk/UI/templates/preview.html	                        (rev 0)
+++ trunk/UI/templates/preview.html	2014-01-02 10:18:07 UTC (rev 6344)
@@ -0,0 +1,32 @@
+<?lsmb INCLUDE "ui-header.html";
+ PROCESS "elements.html" ?>
+<body class="<?lsmb dojo-theme ?>">
+<div class="listtop"><?lsmb template_name ?>.<?lsmb format ?><?lsmb
+ IF language_code; "($language_code)"; ELSE; "(" _ text("No language") _ ")";
+ END; ?></div>
+<div class="template_body"><?lsmb template ?></div>
+<form action="template.pl" method="get">
+<?lsmb 
+PROCESS input element_data = {
+    type = 'hidden'
+    name = 'template_name'
+   value = template_name
+};
+PROCESS input element_data = {
+    type = 'hidden'
+    name = 'language_code'
+   value = language_code
+};
+PROCESS input element_data = {
+    type = 'hidden'
+    name = "format"
+   value = format
+};
+PROCESS button element_data = {
+    type = 'submit'
+    name = 'action'
+   value = 'edit'
+    text = text('Edit')
+}; ?>
+</body>
+</html>

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits