summaryrefslogtreecommitdiff
path: root/UI/create_batch.html
blob: cfd10c2a14c5403dd291e7687029f18704b17091 (plain)
  1. <?lsmb INCLUDE "ui-header.html"
  2. titlebar = text('Create Batch') # '
  3. include_stylesheet = [
  4. "css/scripts/create_batch.css"
  5. stylesheet
  6. ]
  7. ?>
  8. <body>
  9. <div class="listtop"><?lsmb text('Create New Batch') ?></div>
  10. <form name="create_batch" method="post">
  11. <div class="labelledinput">
  12. <div class="input">
  13. <?lsmb text("Batch Number") ?>
  14. </div>
  15. <div class="value">
  16. <input name="batch_number" type="text" value="<?lsmb batch_number ?>"/>
  17. </div>
  18. <div class="labelledinput">
  19. <div class="label">
  20. <?lsmb text("Description") ?>
  21. </div>
  22. <div class="input">
  23. <input name="description" type="text" value="<?lsmb batchnumber ?>"/>
  24. </div>
  25. </div>
  26. <div class="labelledinput">
  27. <div class="label">
  28. <?lsmb text("Batch Date") ?>
  29. </div>
  30. <div class="input">
  31. <input type=text class=date name="batch_date"
  32. value="<?lsmb batch_date ?>" />
  33. </div>
  34. </div>
  35. <div id="buttons">
  36. <button value="create_vouchers" type="submit" class="submit" name="action">
  37. <?lsmb text('Continue') ?></button>
  38. </div>
  39. <?lsmb FOREACH item = hidden ?>
  40. <input type=hidden name="<?lsmb item.name ?>" value="<?lsmb item.value ?>">
  41. <?lsmb END ?>
  42. </form>
  43. <div class="listtop"><?lsmb text('Or Add To Batch') ?></div>
  44. <table>
  45. <tr class="listheading">
  46. <th><?lsmb text('Batch Type') ?></th>
  47. <th><?lsmb text('Control Number') ?></th>
  48. <th><?lsmb text('Description') ?></th>
  49. <th><?lsmb text('Created By') ?></th>
  50. <th><?lsmb text('Created On') ?></th>
  51. </tr>
  52. <?lsmb FOR row = search_results ?>
  53. <tr>
  54. <td><?lsmb text(row.batch_class) ?></td>
  55. <td><a href="<?lsmb "vouchers.pl?action=add_vouchers&batch_type=$batch_type&id=$row.id" ?>"><?lsmb row.control_code ?></td>
  56. <td><?lsmb row.description ?></td>
  57. <td><?lsmb row.created_by ?></td>
  58. <td><?lsmb row.created_on ?></td>
  59. </tr>
  60. <?lsmb END ?>
  61. </table>
  62. </body>
  63. </html>