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.

107 lines
2.3 KiB

  1. ::use 'design.mtt'::
  2. <div class="col-md-12">
  3. <h2 style="margin:auto;">::_("Choose a delivery")::</h2>
  4. <div class="row">
  5. ::if distribs.length==0::
  6. <div class="alert alert-danger" class="col-md-12">
  7. ::_("There is currently no delivery planned.")::
  8. </div>
  9. ::end::
  10. ::foreach d distribs::
  11. <div class="col-md-4">
  12. <div class="distrib">
  13. ::set active =""::
  14. ::if d.active==false:: ::set active="disabled":: ::end::
  15. <div class="header ::active::">
  16. ::set s = getDate( d.startDate)::
  17. <div class="date" style="float:left;width:100px;">
  18. <div>::s.dow::</div>
  19. <div style="font-size:28px;color:#990000;">::s.d::</div>
  20. <div>::s.m::</div>
  21. </div>
  22. <div class="info">
  23. ::set e = getDate(d.endDate)::
  24. <span class="glyphicon glyphicon-time"></span> de ::s.h+":"+s.i:: à ::e.h+":"+e.i::
  25. </div>
  26. ::if d.place!=null::
  27. <div class="info">
  28. <span class="glyphicon glyphicon-map-marker"></span> <a href="/place/view/::d.place.id::">::d.place::</a>
  29. </div>
  30. <div class="address">
  31. $$nullSafe(::d.place.address1::)
  32. $$nullSafe(::d.place.address2::)
  33. $$nullSafe(::d.place.zipCode::)
  34. $$nullSafe(::d.place.city::)
  35. </div>
  36. ::end::
  37. </div>
  38. <div class="content">
  39. <div class="row">
  40. ::foreach p d.products::
  41. <div class="col-md-3" data-toggle="tooltip" data-placement="top" title="::p.name::" >
  42. <img class="img-responsive" src="::p.image::" style="height:80px;width:80px;margin:4px;"/>
  43. </div>
  44. ::end::
  45. </div>
  46. </div>
  47. <div class="footer" style="text-align:right;">
  48. ::if d.active==true::
  49. <a href="/shop/::d.place.id::/::d.startDate.toString().substr(0,10)::" class="btn btn-primary">
  50. <span class="glyphicon glyphicon-chevron-right"></span>
  51. ::_("Order")::
  52. </a>
  53. ::else::
  54. <span class="glyphicon glyphicon-close"></span>
  55. ::_("Opening of orders")::<br/>
  56. le ::hDate(d.startDate)::
  57. ::end::
  58. </div>
  59. </div>
  60. </div>
  61. ::end::
  62. </div>
  63. </div>
  64. ::end::