summaryrefslogtreecommitdiff
path: root/UI/am-taxes.html
blob: 58bdb114d5d6ad47c4ab2e096532326b9aa41bf5 (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"><?lsmb form.title ?></th></tr>
  7. <tr>
  8. <td>
  9. <table>
  10. <tr>
  11. <th></th>
  12. <th><?lsmb text('Rate (%)') ?></th>
  13. <th><?lsmb text('Number') ?></th>
  14. <th><?lsmb text('Valid To') ?></th>
  15. <th><?lsmb text('Ordering') ?></th>
  16. <th><?lsmb text('Tax Rules') ?></th>
  17. </tr>
  18. <?lsmb FOREACH row IN rows; i = loop.count ?>
  19. <tr>
  20. <th align="right"><?lsmb row.0 ?></th>
  21. <td><input name="taxrate_<?lsmb i ?>" size="6" value="<?lsmb form.item("taxrate_$i") ?>" /></td>
  22. <td><input name="taxnumber_<?lsmb i ?>" value="<?lsmb form.item("taxnumber_$i") ?>" /></td>
  23. <td><input class="date" name="validto_<?lsmb i ?>" size="11" value="<?lsmb form.item("validto_$i") ?>" title="<?lsmb user.dateformat ?>" /></td>
  24. <td><input name="pass_<?lsmb i ?>" size="6" value="<?lsmb form.item("pass_$i") ?>" /></td>
  25. <td><?lsmb PROCESS select element_data=row.1 ?></td>
  26. </tr>
  27. <?lsmb END ?>
  28. </table>
  29. </td>
  30. </tr>
  31. <tr>
  32. <td><hr size="3" noshade="noshade" /></td>
  33. </tr>
  34. </table>
  35. <?lsmb FOREACH hidden IN hiddens.keys;
  36. PROCESS input element_data={
  37. type => 'hidden',
  38. name => hidden,
  39. value => hiddens.item(hidden)
  40. }; END;
  41. PROCESS button element_data={name => 'action', value => 'update', text => text('Update')};
  42. PROCESS button element_data={name => 'action', value => 'save_taxes', text => text('Save')} ?>
  43. </form>
  44. </body>
  45. </html>