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.

110 lines
2.6 KiB

  1. <!-- this tpl is also used for offer previews -->
  2. <div class="article">
  3. <div class="row">
  4. <div class="col-md-5">
  5. <img src="::p.image::" class="img-thumbnail img-responsive" />
  6. </div>
  7. <div class="col-md-4">
  8. <span class="price">::formatNum(p.price):: ::currency():: ::_("incl. VAT")::</span>
  9. ::if (p.vat!=null && p.vat!=0) || p.contractTax!=0::
  10. <div class="vat">
  11. ::if p.vat!=null && p.vat!=0::
  12. ::p.vat:: ::_("VAT included")::<br/>
  13. ::end::
  14. ::if p.contractTax!=null::
  15. ::p.contractTax:: % ::p.contractTaxName:: ::_("included")::<br/>
  16. ::end::
  17. </div>
  18. ::end::
  19. </div>
  20. <div class="col-md-3">
  21. ::if p.unitType!=null && p.qt!=null::
  22. <span class="price">
  23. ::set qt = formatNum(p.qt)::
  24. ::set u = unit(p.unitType,qt>1)::
  25. ::if(p.variablePrice)::
  26. ::__("about ::qt:: ::unit::||product has a variable weight",{qt:qt,unit:u})::
  27. ::else::
  28. ::qt:: ::u::
  29. ::end::
  30. </span>
  31. <div class="vat">::raw pricePerUnit(p.price,p.qt,p.unitType)::</div>
  32. ::end::
  33. </div>
  34. <div class="col-md-7" style="margin-top:24px;">
  35. <p ::cond p.organic:: class="vat">
  36. <img src="/img/AB.png" /> ::_("Organic agriculture")::
  37. </p>
  38. <p ::cond p.variablePrice:: class="vat">
  39. <img src="/img/weight.png"/> ::_("Variable price depending on weight")::
  40. </p>
  41. <p ::cond p.desc!=null::>
  42. ::raw p.desc::
  43. </p>
  44. </div>
  45. </div>
  46. <hr />
  47. <div class="row">
  48. <div ::cond vendor._image!=null:: class="col-md-3">
  49. <img src="::file(vendor._image)::" class="img-thumbnail" />
  50. </div>
  51. <div class="col-md-5">
  52. <h4>::vendor.name::</h4>
  53. <b>::vendor.city::</b> (::vendor.zipCode::)
  54. <p ::cond vendor.desc!=null:: style="font-size: 13px;height:150px;overflow-y: scroll;">
  55. ::raw nl2br(vendor.desc)::
  56. </p>
  57. ::if vendor.linkUrl!=null::
  58. <p>
  59. ::if vendor.linkText!=null::
  60. <a href="::vendor.linkUrl::" target="_blank" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-chevron-right"></span> ::vendor.linkText::</a>
  61. ::else::
  62. <a href="::vendor.linkUrl::" target="_blank" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-chevron-right"></span> ::_("Read more")::</a>
  63. ::end::
  64. </p>
  65. ::end::
  66. </div>
  67. ::if(product!=null)::
  68. ::set cats = product.getCategories()::
  69. <div class="col-md-4" ::cond cats.length != 0:: >
  70. <h3>::_("Categories")::</h3>
  71. <div>
  72. ::foreach c cats::
  73. <span class="tag" style="background-color: ::c.getColor()::;">::c.name::</span><br />
  74. ::end::
  75. </div>
  76. </div>
  77. ::end::
  78. </div>
  79. </div>