diff options
Diffstat (limited to 'UI')
-rw-r--r-- | UI/am-list-departments.html | 4 | ||||
-rw-r--r-- | UI/am-sic-form.html | 37 |
2 files changed, 40 insertions, 1 deletions
diff --git a/UI/am-list-departments.html b/UI/am-list-departments.html index 51c5f155..4d3ab20b 100644 --- a/UI/am-list-departments.html +++ b/UI/am-list-departments.html @@ -27,7 +27,9 @@ <?lsmb END ?> </tr> <?lsmb FOREACH row IN rows ?> - <?lsmb c = "listrow${row.i}" ?> +<?lsmb IF row.class == 'heading'; c = "listheading"; + ELSE; c = "listrow${row.i}"; + END -?> <tr class="<?lsmb c ?>"> <?lsmb FOREACH column IN columns ?> <td class="<?lsmb c ?>" <?lsmb IF (column == 'cost' || column == 'profit') ?>align="center"<?lsmb ELSIF column == 'discount' ?>align="right"<?lsmb END ?>> diff --git a/UI/am-sic-form.html b/UI/am-sic-form.html new file mode 100644 index 00000000..2a551c59 --- /dev/null +++ b/UI/am-sic-form.html @@ -0,0 +1,37 @@ +<?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('Code') ?></th> + <td><?lsmb PROCESS input element_data={name => 'code', size => 10, value => form.code} ?></td> + </tr> + <tr> + <td> </td> + <th align="left"><?lsmb PROCESS input element_data={name => 'sictype', type => 'checkbox', value => 'H', label => text('Heading'), ${heading} => heading} ?></th> + </tr> + <tr> + <th align="right"><?lsmb text('Description') ?></th> + <td><?lsmb PROCESS input element_data={name => 'description', size => 60, value => form.description} ?></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> |