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.

77 lines
1.9 KiB

  1. ::use 'design.mtt'::
  2. <div class="col-md-3">
  3. <div class="block">
  4. <h4>
  5. ::user._amap.name::
  6. </h4>
  7. ::if user._amap._image!=null::
  8. ::if user._amap.extUrl!=null && user._amap.extUrl!=""::
  9. <a href="::user._amap.extUrl::"><img src="::file(user._amap._image)::" style="margin:auto;display: block;width: 100%;" class="thumbnail" /><br/></a>
  10. ::else::
  11. <img src="::file(user._amap._image)::" style="margin:auto;display: block;width: 100%;" class="thumbnail" /><br/>
  12. ::end::
  13. ::end::
  14. ::raw nl2br(user.getAmap().txtIntro)::
  15. <br/>
  16. ::if user.isAmapManager()::
  17. $$edit(::_("Edit")::,amap/edit)
  18. ::end::
  19. </div>
  20. <div class="block">
  21. <b>::_("Main contact"):: :</b><br/>
  22. $$contact(::user.getAmap()._contact::)
  23. </div>
  24. </div>
  25. <div class="col-md-9">
  26. <div class="row">
  27. ::foreach c contracts::
  28. <div class="col-md-12">
  29. <div class="article">
  30. <div class="row">
  31. <div class="col-md-3 text-center">
  32. <div ::cond c._vendor._image!=null:: style="background-image:url('::file(c._vendor._image)::');width:100px;height:100px;" class="productImg"/>
  33. <p>
  34. <b>::c._vendor.name::</b><br/>
  35. ::c._vendor.city:: (::c._vendor.zipCode::)
  36. </p>
  37. </div>
  38. <div class="col-md-6">
  39. <h4><a href="/contract/view/::c.id::">::c.name::</a></h4>
  40. <div style="font-size:0;">
  41. ::foreach p c.getProductsPreview(5)::
  42. <div data-toggle="tooltip" data-placement="top" title="::p.name::" style="background-image:url('::p.getImage()::')" class="productImg"/>
  43. ::end::
  44. </div>
  45. </div>
  46. <div class="col-md-3">
  47. ::if c._contact!=null::
  48. <b>::_("Coordinator"):: :</b>
  49. <br/>
  50. $$contact(::c._contact::)
  51. ::end::
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. ::end::
  57. </div>
  58. </div>
  59. ::end::