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

SF.net SVN: ledger-smb:[6176] addons/1.3/sequences/trunk



Revision: 6176
          http://sourceforge.net/p/ledger-smb/code/6176
Author:   einhverfr
Date:     2013-10-24 04:36:00 +0000 (Thu, 24 Oct 2013)
Log Message:
-----------
Adding accidently omitted UI code

Added Paths:
-----------
    addons/1.3/sequences/trunk/UI/
    addons/1.3/sequences/trunk/UI/Configuration/
    addons/1.3/sequences/trunk/UI/Configuration/sequence.html
    addons/1.3/sequences/trunk/UI/Configuration/settings.html

Copied: addons/1.3/sequences/trunk/UI/Configuration/sequence.html (from rev 6157, trunk/UI/Configuration/sequence.html)
===================================================================
--- addons/1.3/sequences/trunk/UI/Configuration/sequence.html	                        (rev 0)
+++ addons/1.3/sequences/trunk/UI/Configuration/sequence.html	2013-10-24 04:36:00 UTC (rev 6176)
@@ -0,0 +1,122 @@
+<?lsmb INCLUDE 'ui-header.html';
+PROCESS 'elements.html';
+
+?>
+<body class="<?lsmb dojo_theme ?>">
+<div class="listtop"><?lsmb text('Sequences') ?></div>
+<form action="configuration.pl" action="post">
+<table width='100%'>
+<tr class="listheading">
+<th class="listheading"><?lsmb text('Save') ?></th>
+<th class="listheading"><?lsmb text('Allow Input') ?></th>
+<th class="listheading"><?lsmb text('label') ?></th>
+<th class="listheading"><?lsmb text('Setting') ?></th>
+<th class="listheading"><?lsmb text('Prefix') ?></th>
+<th class="listheading"><?lsmb text('Sequence') ?></th>
+<th class="listheading"><?lsmb text('Suffix') ?></th>
+</tr>
+<?lsmb FOR seq IN sequence_list; count = loop.count ?>
+<tr>
+ <td><?lsmb PROCESS input element_data = {
+           type = 'checkbox'
+           name = 'save_' _ count
+          value = 1
+     } ?></td>
+ <td><?lsmb 
+     checked = undefined;
+     IF seq.accept_input; checked = 'CHECKED'; ELSE; checked = undefined; END;
+     PROCESS input element_data = {
+           type = 'checkbox'
+           name = 'accept_input_' _ count
+          value = 1
+        checked = checked
+     } ?></td>
+ <td><?lsmb seq.label; PROCESS input element_data = {
+           type = 'hidden'
+           name = 'label_' _ count
+          value = seq.label
+     } ?></td>
+ <td><?lsmb PROCESS select element_data = {
+             name = 'setting_key_' _ count
+          options = setting_keys
+   default_values = [seq.setting_key]
+        text_attr = 'label',
+       value_attr = 'name'
+     } ?></td>
+ <td><?lsmb PROCESS input element_data = {
+             name = 'prefix_' _ count
+             type = 'text'
+            value = seq.prefix
+             size = '10'
+     } ?></td>
+ <td><?lsmb PROCESS input element_data = {
+             name = 'sequence_' _ count
+             type = 'text'
+            value = seq.sequence
+             size = '10'
+     } ?></td>
+ <td><?lsmb PROCESS input element_data = {
+             name = 'suffix_' _ count
+             type = 'text'
+            value = seq.suffix
+             size = '10'
+     } ?></td>
+</tr>
+<?lsmb END; count = count + 1 # FOR seq ?>
+<tr>
+ <td><?lsmb PROCESS input element_data = {
+           type = 'checkbox'
+           name = 'save_' _ count 
+          value = 1
+     } ?></td>
+ <td><?lsmb 
+     PROCESS input element_data = {
+           type = 'checkbox'
+           name = 'accept_input' _ count 
+          value = 1
+     } ?></td>
+ <td><?lsmb PROCESS input element_data = {
+           type = 'text'
+           name = 'label_' _ count 
+           size = 10
+          class = 'control_code'
+     } ?> </td>
+ <td><?lsmb PROCESS select element_data = {
+             name = 'setting_key_' _ count
+          options = setting_keys
+        text_attr = 'label',
+       value_attr = 'name'
+     } ?></td>
+ <td><?lsmb PROCESS input element_data = {
+             name = 'prefix_' _ count
+             type = 'text'
+             size = '10'
+     } ?></td>
+ <td><?lsmb PROCESS input element_data = {
+             name = 'sequence_' _ count
+             type = 'text'
+             size = '10'
+     } ?></td>
+ <td><?lsmb PROCESS input element_data = {
+             name = 'suffix_' _ count
+             type = 'text'
+             size = '10'
+     } ?></td>
+</tr>
+</table>
+<?lsmb PROCESS input element_data = {
+             name = 'count'
+             type = 'hidden'
+            value = count
+} ?>
+</div class="button-row">
+<?lsmb PROCESS button element_data = {
+             name = 'action'
+            value = 'save_sequences'
+             type = 'submit'
+            class = 'submit'
+             text = text('Save')
+} ?>
+</form>
+</body>
+</html>

Copied: addons/1.3/sequences/trunk/UI/Configuration/settings.html (from rev 6140, trunk/UI/Configuration/settings.html)
===================================================================
--- addons/1.3/sequences/trunk/UI/Configuration/settings.html	                        (rev 0)
+++ addons/1.3/sequences/trunk/UI/Configuration/settings.html	2013-10-24 04:36:00 UTC (rev 6176)
@@ -0,0 +1,69 @@
+<?lsmb INCLUDE 'ui-header.html';
+PROCESS elements.html ?> 
+		 
+<body class="<?lsmb dojo_theme ?>">
+<form method="post" action="<?lsmb form.script ?>">
+<table width="100%"><col width="25%" align="right"><col><col>
+  <tr><th colspan="2" class="listtop"><?lsmb text('System Defaults') ?></th>
+  <?lsmb FOREACH GROUP IN default_settings ?>
+  <tr><th colspan="2" class="listheading"><?lsmb GROUP.title ?></th></tr>
+    <?lsmb FOREACH ITEM IN GROUP.items ?>
+  <tr>
+    <th align="right"><?lsmb ITEM.label ?></th>
+       <td>
+       <?lsmb 
+       IF ITEM.type == 'YES_NO';
+           IF form.${ITEM.name};
+              YES="CHECKED";
+              NO=undef;
+           ELSE;
+              NO="CHECKED";
+              YES=undef;
+           END;
+           PROCESS input element_data = {
+              name = ITEM.name
+              type = 'radio'
+             label = text('Yes')
+             value = 1
+           checked = YES
+           };
+           PROCESS input element_data = {
+              name = ITEM.name
+              type = 'radio'
+             label = text('No')
+             value = 0
+           checked = NO
+           };
+       ELSIF ITEM.type == 'SELECT_ONE';
+           PROCESS select element_data= selects.${ITEM.name};
+       ELSIF ITEM.type == 'TEXTAREA';
+           PROCESS textarea element_data = {
+                    rows = 3
+                    cols = 33
+                    text = form.${ITEM.name} 
+           };
+       ELSE;
+           PROCESS input element_data = {
+                   name = ITEM.name
+                   type = 'text'
+                  value = form.${ITEM.name}
+           }; 
+        END; ?>
+    </td>
+  </tr>
+    <?lsmb END # FOREACH ITEM ?>
+  <?lsmb END # FOREACH GROUP ?> 
+</table>
+<hr size="3" noshade="noshade" />
+
+<?lsmb FOREACH hidden IN hiddens.keys;
+	PROCESS input element_data={
+		type => 'hidden',
+		name => hidden,
+		value => hiddens.item(hidden)
+		}; END;
+PROCESS button element_data={name => 'action', value => 'save_defaults' text => text('Save')} ?>
+  </form>
+
+</body>
+</html>

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


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits