2018-08-03 05:52:37 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="sales"
|
2020-03-18 07:35:59 +00:00
|
|
|
link="{ticketFk: $ctrl.$params.id}"
|
2018-08-03 05:52:37 +00:00
|
|
|
filter="::$ctrl.filter"
|
|
|
|
limit="20"
|
2018-12-19 14:59:35 +00:00
|
|
|
data="sales"
|
|
|
|
auto-load="true">
|
2018-08-03 05:52:37 +00:00
|
|
|
</vn-crud-model>
|
|
|
|
<vn-vertical>
|
2019-02-22 15:15:54 +00:00
|
|
|
<vn-card
|
|
|
|
ng-if="!model.data || model.data.length == 0"
|
|
|
|
style="text-align: center"
|
2019-10-04 22:16:57 +00:00
|
|
|
class="vn-pa-md">
|
2019-02-22 15:15:54 +00:00
|
|
|
<span translate>No results</span>
|
|
|
|
</vn-card>
|
|
|
|
<vn-horizontal class="catalog-list">
|
2020-04-30 10:48:52 +00:00
|
|
|
<section ng-repeat="sale in sales" class="product">
|
2019-02-22 15:15:54 +00:00
|
|
|
<vn-card>
|
|
|
|
<div class="image">
|
|
|
|
<img
|
2020-11-27 12:10:39 +00:00
|
|
|
ng-src="{{::$root.imagePath('catalog', '200x200', sale.itemFk)}}"
|
|
|
|
zoom-image="{{::$root.imagePath('catalog', '1600x900', sale.itemFk)}}"
|
2019-02-22 15:15:54 +00:00
|
|
|
on-error-src/>
|
|
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<h3>
|
2020-04-28 12:26:02 +00:00
|
|
|
<span class="link" ng-click="descriptor.show($event, sale.item.id)">
|
2019-02-22 15:15:54 +00:00
|
|
|
{{::sale.item.name}}
|
|
|
|
</span>
|
|
|
|
</h3>
|
|
|
|
<h4 class="ellipsize">
|
|
|
|
<span translate-attr="::{title: item.subName}">{{::sale.item.subName}}</span>
|
|
|
|
</h4>
|
|
|
|
<div class="tags">
|
2019-08-07 07:58:05 +00:00
|
|
|
<vn-label-value
|
|
|
|
ng-if ="sale.item.tag5"
|
2019-02-22 15:15:54 +00:00
|
|
|
label="{{::sale.item.tag5}}"
|
|
|
|
value="{{::sale.item.value5}}">
|
|
|
|
</vn-label-value>
|
2019-08-07 07:58:05 +00:00
|
|
|
<vn-label-value
|
|
|
|
ng-if ="sale.item.tag6"
|
2019-02-22 15:15:54 +00:00
|
|
|
label="{{::sale.item.tag6}}"
|
|
|
|
value="{{::sale.item.value6}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value
|
2019-08-07 07:58:05 +00:00
|
|
|
ng-if ="sale.item.tag7"
|
2019-02-22 15:15:54 +00:00
|
|
|
label="{{::sale.item.tag7}}"
|
|
|
|
value="{{::sale.item.value7}}">
|
|
|
|
</vn-label-value>
|
2019-02-22 13:34:11 +00:00
|
|
|
</div>
|
2019-02-22 15:15:54 +00:00
|
|
|
<div class="footer">
|
|
|
|
<div class="price">
|
|
|
|
<span>{{::sale.quantity}}</span>
|
|
|
|
<span translate>by</span>
|
|
|
|
<span>{{::sale.price | currency: 'EUR': 2}}</span>
|
2019-02-22 13:34:11 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-02-22 15:15:54 +00:00
|
|
|
</vn-card>
|
|
|
|
</section>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-pagination model="model"></vn-pagination>
|
2018-08-03 05:52:37 +00:00
|
|
|
</vn-vertical>
|
2020-04-25 09:50:04 +00:00
|
|
|
<vn-item-descriptor-popover
|
|
|
|
vn-id="descriptor">
|
|
|
|
</vn-item-descriptor-popover>
|