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.

136 lines
3.4 KiB

  1. ::use 'design.mtt'::
  2. <div class="col-md-9">
  3. <div class="article">
  4. <h2>::c.name::</h2>
  5. <div class="row">
  6. <div class="col-md-12">
  7. ::if c.description!=null::
  8. ::raw nl2br(c.description)::
  9. ::end::
  10. </div>
  11. </div>
  12. <hr/>
  13. <div class="row">
  14. ::foreach p c.getProducts(true)::
  15. <div class="col-md-4" id="product::p.id::">
  16. <table class="product">
  17. <tr>
  18. <td style="vertical-align:top;">
  19. <a onclick="_.overlay('/shop/productInfo/::p.id::','::escapeJS(p.getName())::')" >
  20. <!--<img src="::p.getImage()::" style="width:64px;height:64px;" /> -->
  21. <div style="background-image:url('::p.getImage()::')" class="productImg"/>
  22. </a>
  23. </td>
  24. <td>
  25. <h4>
  26. <a onclick="_.overlay('/shop/productInfo/::p.id::','::escapeJS(p.getName())::')" href="#">::p.getName()::</a>
  27. </h4>
  28. <span class="price">::formatNum(p.getPrice())::&nbsp;::currency()::</span>
  29. </td>
  30. </tr>
  31. </table>
  32. </div>
  33. ::end::
  34. </div>
  35. <hr/>
  36. <div class="row">
  37. ::set vendor = c._vendor::
  38. <div class="col-md-3" ::cond vendor._image!=null::>
  39. <img src="::file(vendor._image)::" class="img-thumbnail" />
  40. </div>
  41. <div class="col-md-5">
  42. <h4>::vendor.name::</h4>
  43. <b>::vendor.city::</b> (::vendor.zipCode::)
  44. <p ::cond vendor.desc!=null:: style="font-size: 13px;">
  45. ::raw nl2br(vendor.desc)::
  46. </p>
  47. ::if vendor.linkUrl!=null::
  48. <p>
  49. ::if vendor.linkText!=null::
  50. <a href="::vendor.linkUrl::" target="_blank" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-chevron-right"></span> ::vendor.linkText::</a>
  51. ::else::
  52. <a href="::vendor.linkUrl::" target="_blank" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-chevron-right"></span> ::_("Read more")::</a>
  53. ::end::
  54. </p>
  55. ::end::
  56. </div>
  57. <div class="col-md-4">
  58. <h4>::_("Coordinator")::</h4>
  59. ::if c._contact!=null::
  60. <b>::c._contact.firstName:: ::c._contact.lastName::</b><br/>
  61. <span ::cond c._contact.email!=null::><span class="glyphicon glyphicon-envelope"></span> <a href="mailto: ::c._contact.email::">::c._contact.email::</a><br/></span>
  62. <span ::cond c._contact.phone!=null::><span class="glyphicon glyphicon-phone-alt"></span> ::c._contact.phone::<br/></span>
  63. ::end::
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="col-md-3">
  69. <div class="article">
  70. <h3>::_("Next distributions")::</h3>
  71. ::set distribs = c.getDistribs(true,null)::
  72. <ul style="max-height:600px;overflow-y:auto;">
  73. ::foreach d distribs::
  74. <li>
  75. <b>::dDate(d.date)::</b>
  76. <br/>::d._place.name::
  77. <p ::cond d.canOrderNow()::>
  78. ::if user._amap.hasShopMode()::
  79. <a href="/shop/::d._place.id::/::d.date.toString().substr(0,10)::" class="btn btn-primary"><span class="glyphicon glyphicon-chevron-right"></span> ::_("Order")::</a>
  80. ::end::
  81. </p>
  82. </li>
  83. ::end::
  84. </ul>
  85. ::if distribs.length==0::
  86. <p>
  87. ::_("No planned distributions.")::
  88. </p>
  89. ::else::
  90. <p ::cond !user._amap.hasShopMode()::>
  91. <a href="/contract/order/::c.id::" class="btn btn-primary"><span class="glyphicon glyphicon-chevron-right"></span> ::_("Order")::</a>
  92. </p>
  93. ::end::
  94. <hr/>
  95. <p>
  96. <a style="font-size:12px;" href='/contract'>::_("You can check your previous orders in 'my account' section")::</a>
  97. </p>
  98. </div>
  99. </div>
  100. ::end::