summaryrefslogtreecommitdiff
path: root/UI/am-department-form.html
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-10-25 00:03:28 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-10-25 00:03:28 +0000
commit7fced1ba707fb5ad081daa804fefb6316aceb5c0 (patch)
tree682d102f0a74fcfad250cb40c2bd7d8f82a044a2 /UI/am-department-form.html
parent230b369ae0e8f0650118ac91750d7d2d94b381c7 (diff)
Convert department_header using screens to templates
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1817 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'UI/am-department-form.html')
-rw-r--r--UI/am-department-form.html54
1 files changed, 54 insertions, 0 deletions
diff --git a/UI/am-department-form.html b/UI/am-department-form.html
new file mode 100644
index 00000000..04b166ae
--- /dev/null
+++ b/UI/am-department-form.html
@@ -0,0 +1,54 @@
+<?lsmb INCLUDE 'ui-header.html' ?>
+<?lsmb PROCESS elements.html ?>
+<body>
+<form method="post" action="<?lsmb form.script ?>">
+<table width="100%">
+ <tr><th class="listtop" colspan="2"><?lsmb form.title ?></th></tr>
+ <tr><td colspan="2"> </td></tr>
+ <tr>
+ <td>
+ <table>
+ <tr>
+ <th align="right"><?lsmb text('Description') ?></th>
+<?lsmb IF row_count > 1 ?>
+ <td><?lsmb PROCESS textarea element_data={name => 'description', cols => 60, rows => row_count, text => form.description} ?></td>
+<?lsmb ELSE ?>
+ <td><?lsmb PROCESS input element_data={name => 'description', size => 60, value => form.description} ?></td>
+<?lsmb END ?>
+ </tr>
+ <tr><td> </td>
+ <td><?lsmb IF form.role == 'C';
+ cost = 'checked';
+ ELSIF form.role == 'P';
+ profit = 'checked';
+ END;
+ PROCESS input element_data={
+ name => 'role',
+ type => 'radio',
+ value => 'C',
+ label => text('Cost Center'),
+ ${cost} => cost,
+ };
+ PROCESS input element_data={
+ name => 'role',
+ type => 'radio',
+ value => 'P',
+ label => text('Profit Center'),
+ ${profit} => profit,
+ }; -?></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr><td colspan="2"><hr size="3" noshade="noshade" /></td></tr>
+</table>
+<?lsmb FOREACH hidden IN hiddens.keys;
+ PROCESS input element_data={
+ type => 'hidden',
+ name => hidden,
+ value => hiddens.item(hidden)
+ }; END ?>
+<?lsmb FOREACH button IN buttons; PROCESS button element_data=button; END ?>
+</form>
+</body>
+</html>