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.
 
 
 
 
 
 

78 lines
1.9 KiB

::use 'design.mtt'::
<div class="col-md-3">
<div class="block">
<h4>
::user._amap.name::
</h4>
::if user._amap._image!=null::
::if user._amap.extUrl!=null && user._amap.extUrl!=""::
<a href="::user._amap.extUrl::"><img src="::file(user._amap._image)::" style="margin:auto;display: block;width: 100%;" class="thumbnail" /><br/></a>
::else::
<img src="::file(user._amap._image)::" style="margin:auto;display: block;width: 100%;" class="thumbnail" /><br/>
::end::
::end::
::raw nl2br(user.getAmap().txtIntro)::
<br/>
::if user.isAmapManager()::
$$edit(::_("Edit")::,amap/edit)
::end::
</div>
<div class="block">
<b>::_("Main contact"):: :</b><br/>
$$contact(::user.getAmap()._contact::)
</div>
</div>
<div class="col-md-9">
<div class="row">
::foreach c contracts::
<div class="col-md-12">
<div class="article">
<div class="row">
<div class="col-md-3 text-center">
<div ::cond c._vendor._image!=null:: style="background-image:url('::file(c._vendor._image)::');width:100px;height:100px;" class="productImg"/>
<p>
<b>::c._vendor.name::</b><br/>
::c._vendor.city:: (::c._vendor.zipCode::)
</p>
</div>
<div class="col-md-6">
<h4><a href="/contract/view/::c.id::">::c.name::</a></h4>
<div style="font-size:0;">
::foreach p c.getProductsPreview(5)::
<div data-toggle="tooltip" data-placement="top" title="::p.name::" style="background-image:url('::p.getImage()::')" class="productImg"/>
::end::
</div>
</div>
<div class="col-md-3">
::if c._contact!=null::
<b>::_("Coordinator"):: :</b>
<br/>
$$contact(::c._contact::)
::end::
</div>
</div>
</div>
</div>
::end::
</div>
</div>
::end::