You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.1 KiB

  1. ::use 'contractadmin/design.mtt'::
  2. ::if distributions.length>0::
  3. <h3>::_("Orders")::</h3>
  4. <table class="table table-bordered table-hover table-striped">
  5. <tr>
  6. <th>::_("Date")::</th>
  7. <th>::_("Location")::</th>
  8. <th></th>
  9. </tr>
  10. ::foreach d distributions::
  11. ::if d.date!=null && d.date.getTime() < Date.now().getTime()::
  12. ::set style = "opacity:0.5;"::
  13. ::else::
  14. ::set style = ""::
  15. ::end::
  16. <tr style="::style::" >
  17. <td>::hDate(d.date)::</td>
  18. <td>::d._place.name::</td>
  19. <td>
  20. <a href="/contractAdmin/orders/::c.id::?d=::d.id::" class="btn btn-default">
  21. <span class="glyphicon glyphicon-list"></span>
  22. ::_("Orders")::
  23. </a>
  24. </td>
  25. </tr>
  26. ::end::
  27. </table>
  28. ::else::
  29. <div class="alert alert-danger">
  30. <b>Aucune distribution prochainement.</b><br/>
  31. <a href="/contractAdmin/distributions/::c.id::">::_("Click here to manage deliveries")::</a>
  32. </div>
  33. ::end::
  34. <div>
  35. <a href="?old=1" class="btn btn-default btn-sm">
  36. ::_("Old orders")::
  37. </a>
  38. </div>
  39. ::end::