summaryrefslogtreecommitdiff
path: root/UI/am-department-form.html
blob: 04b166ae4bcc2ce0e10b1278ff899c28903024bc (plain)
  1. <?lsmb INCLUDE 'ui-header.html' ?>
  2. <?lsmb PROCESS elements.html ?>
  3. <body>
  4. <form method="post" action="<?lsmb form.script ?>">
  5. <table width="100%">
  6. <tr><th class="listtop" colspan="2"><?lsmb form.title ?></th></tr>
  7. <tr><td colspan="2"> </td></tr>
  8. <tr>
  9. <td>
  10. <table>
  11. <tr>
  12. <th align="right"><?lsmb text('Description') ?></th>
  13. <?lsmb IF row_count > 1 ?>
  14. <td><?lsmb PROCESS textarea element_data={name => 'description', cols => 60, rows => row_count, text => form.description} ?></td>
  15. <?lsmb ELSE ?>
  16. <td><?lsmb PROCESS input element_data={name => 'description', size => 60, value => form.description} ?></td>
  17. <?lsmb END ?>
  18. </tr>
  19. <tr><td> </td>
  20. <td><?lsmb IF form.role == 'C';
  21. cost = 'checked';
  22. ELSIF form.role == 'P';
  23. profit = 'checked';
  24. END;
  25. PROCESS input element_data={
  26. name => 'role',
  27. type => 'radio',
  28. value => 'C',
  29. label => text('Cost Center'),
  30. ${cost} => cost,
  31. };
  32. PROCESS input element_data={
  33. name => 'role',
  34. type => 'radio',
  35. value => 'P',
  36. label => text('Profit Center'),
  37. ${profit} => profit,
  38. }; -?></td>
  39. </tr>
  40. </table>
  41. </td>
  42. </tr>
  43. <tr><td colspan="2"><hr size="3" noshade="noshade" /></td></tr>
  44. </table>
  45. <?lsmb FOREACH hidden IN hiddens.keys;
  46. PROCESS input element_data={
  47. type => 'hidden',
  48. name => hidden,
  49. value => hiddens.item(hidden)
  50. }; END ?>
  51. <?lsmb FOREACH button IN buttons; PROCESS button element_data=button; END ?>
  52. </form>
  53. </body>
  54. </html>