77 lines
3.6 KiB
HTML
77 lines
3.6 KiB
HTML
|
<vn-crud-model
|
||
|
vn-id="model"
|
||
|
url="/ticket/api/sales"
|
||
|
link="{ticketFk: $ctrl.$stateParams.id}"
|
||
|
filter="::$ctrl.filter"
|
||
|
limit="20"
|
||
|
data="sales">
|
||
|
</vn-crud-model>
|
||
|
|
||
|
<vn-vertical>
|
||
|
<vn-card pad-large>
|
||
|
<vn-vertical>
|
||
|
<vn-title>Pictures</vn-title>
|
||
|
<vn-horizontal class="catalogue list" pad-small>
|
||
|
<vn-order-product ng-repeat="sale in sales">
|
||
|
<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>
|
||
|
<span>{{::sale.price | currency: ' €': 2}}</span>
|
||
|
</vn-one>
|
||
|
</section>
|
||
|
</vn-vertical>
|
||
|
</vn-one>
|
||
|
</vn-horizontal>
|
||
|
</vn-one>
|
||
|
</vn-order-product>
|
||
|
</vn-horizontal>
|
||
|
<vn-horizontal ng-if="model.data.length == 0">
|
||
|
<vn-one pad-small-v translate>
|
||
|
No results
|
||
|
</vn-one>
|
||
|
</vn-horizontal>
|
||
|
</vn-vertical>
|
||
|
<vn-pagination
|
||
|
model="model"
|
||
|
scroll-selector="ui-view">
|
||
|
</vn-pagination>
|
||
|
</vn-card>
|
||
|
</vn-vertical>
|
||
|
<vn-item-descriptor-popover vn-id="descriptor"></vn-item-descriptor-popover>
|