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.

92 lines
2.1 KiB

  1. ::use 'design.mtt'::
  2. <style>
  3. table tr td{
  4. white-space: nowrap;
  5. overflow-x:hidden;
  6. }
  7. </style>
  8. <div class="col-md-12">
  9. <div class="article">
  10. <div class="text-center">
  11. <h3>
  12. ::_("Validate the delivery of the"):: ::hDate(date)::
  13. </h3>
  14. <h4
  15. ><span class="glyphicon glyphicon-map-marker"></span>::place::
  16. </h4>
  17. <p>
  18. ::if(confirmed)::
  19. <div class="alert alert-success block-center" style="width:150px;margin:auto;">
  20. <span class="glyphicon glyphicon-ok"></span>
  21. ::_("Validated")::
  22. </div>
  23. ::else::
  24. <div class="alert alert-danger block-center" style="width:150px;margin:auto;">
  25. <span class="glyphicon glyphicon-exclamation-sign"></span>
  26. ::_("Not validated")::
  27. </div>
  28. ::end::
  29. </p>
  30. </div>
  31. <p class="text-center">
  32. <a href="/contractAdmin/ordersByDate/::date.toString().substr(0,10)::/::place.id::" class="btn btn-default btn-sm">
  33. <span class="glyphicon glyphicon-list-alt"></span> ::_("Back to the summary sheet of orders"):: </a>
  34. </p>
  35. <table class="table table-bordered table-hover table-condensed" style="width:100%;">
  36. ::foreach u users::
  37. ::set basket = getBasket(u.id,place.id,date)::
  38. ::if(basket.isValidated()==true)::
  39. ::set class="success"::
  40. ::else::
  41. ::set class="danger"::
  42. ::end::
  43. <tr class="::class::">
  44. <td>
  45. <div class="basketNumber" ::cond basket!=null:: >
  46. <i class="fa fa-shopping-basket" aria-hidden="true"></i> ::_("Num"):: ::basket.num::
  47. </div>
  48. </td>
  49. <td>
  50. ::u.getCoupleName()::
  51. </td>
  52. <td class="text-right">
  53. ::if(class=="danger")::
  54. <a href="/validate/::date::/::place.id::/::u.id::" class="btn btn-danger">
  55. <i class="fa fa-chevron-right" aria-hidden="true"></i>
  56. ::_("To be validated")::
  57. </a>
  58. ::else::
  59. <a href="/validate/::date::/::place.id::/::u.id::" class="btn">
  60. <span class="glyphicon glyphicon-ok"></span>
  61. ::_("Validated")::
  62. </a>
  63. ::end::
  64. </td>
  65. </tr>
  66. ::end::
  67. </table>
  68. </div>
  69. </div>
  70. ::end::