2018-08-03 05:52:37 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
|
|
|
url="/ticket/api/sales"
|
|
|
|
link="{ticketFk: $ctrl.$stateParams.id}"
|
|
|
|
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>
|
|
|
|
<vn-card pad-large>
|
|
|
|
<vn-vertical>
|
2018-08-21 11:38:16 +00:00
|
|
|
<vn-horizontal class="catalog-list" pad-small>
|
|
|
|
<section class="product" ng-repeat="sale in sales">
|
2018-08-03 05:52:37 +00:00
|
|
|
<vn-one>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-one class="image">
|
|
|
|
<img
|
|
|
|
ng-src="//verdnatura.es/vn-image-data/catalog/200x200/{{::sale.item.image}}"
|
|
|
|
zoom-image="//verdnatura.es/vn-image-data/catalog/1600x900/{{::sale.item.image}}"
|
|
|
|
on-error-src pointer/>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one pad-small class="description ellipsize">
|
|
|
|
<vn-vertical>
|
|
|
|
<h2 class="ellipsize link" vn-tooltip="{{::sale.item.name}}"
|
|
|
|
ng-click="$ctrl.showDescriptor($event, sale.item.id)">
|
|
|
|
{{::sale.item.name}}
|
|
|
|
</h2>
|
|
|
|
<span class="ellipsize" vn-tooltip="{{::sale.item.subName}}">
|
|
|
|
{{::sale.item.subName}}
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<vn-label-value
|
|
|
|
label="{{::sale.item.tag5}}"
|
|
|
|
value="{{::sale.item.value5}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value
|
|
|
|
label="{{::sale.item.tag6}}"
|
|
|
|
value="{{::sale.item.value6}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value
|
|
|
|
label="{{::sale.item.tag7}}"
|
|
|
|
value="{{::sale.item.value7}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value
|
|
|
|
label="{{::sale.item.tag8}}"
|
|
|
|
value="{{::sale.item.value8}}">
|
|
|
|
</vn-label-value>
|
|
|
|
|
|
|
|
<vn-horizontal class="price">
|
|
|
|
<vn-one>
|
|
|
|
<span>{{::sale.quantity}}</span>
|
|
|
|
<span translate>by</span>
|
2019-01-31 10:44:03 +00:00
|
|
|
<span>{{::sale.price | currency: 'EUR': 2}}</span>
|
2018-08-03 05:52:37 +00:00
|
|
|
</vn-one>
|
2018-08-21 11:38:16 +00:00
|
|
|
</vn-horizontal>
|
2018-08-03 05:52:37 +00:00
|
|
|
</vn-vertical>
|
|
|
|
</vn-one>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-one>
|
2018-08-21 11:38:16 +00:00
|
|
|
</section>
|
2018-08-03 05:52:37 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal ng-if="model.data.length == 0">
|
|
|
|
<vn-one pad-small-v translate>
|
|
|
|
No results
|
|
|
|
</vn-one>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-vertical>
|
2019-01-20 17:48:03 +00:00
|
|
|
<vn-pagination model="model"></vn-pagination>
|
2018-08-03 05:52:37 +00:00
|
|
|
</vn-card>
|
|
|
|
</vn-vertical>
|
|
|
|
<vn-item-descriptor-popover vn-id="descriptor"></vn-item-descriptor-popover>
|