2019-02-01 16:11:14 +00:00
|
|
|
<vn-crud-model
|
2018-08-21 11:38:16 +00:00
|
|
|
vn-id="model"
|
|
|
|
url="/order/api/Orders/CatalogFilter"
|
2018-09-14 07:10:30 +00:00
|
|
|
filter="$ctrl.filter"
|
|
|
|
limit="50"
|
2019-02-01 16:11:14 +00:00
|
|
|
data="items"
|
2019-02-22 13:34:11 +00:00
|
|
|
on-data-change="$ctrl.onDataChange()">
|
2018-08-21 11:38:16 +00:00
|
|
|
</vn-crud-model>
|
2019-02-01 16:11:14 +00:00
|
|
|
<div class="main-with-right-menu">
|
2019-04-23 06:29:23 +00:00
|
|
|
<vn-card compact>
|
2019-01-30 22:47:06 +00:00
|
|
|
<vn-horizontal class="catalog-header" pad-medium-h>
|
|
|
|
<vn-one>
|
2019-02-22 16:23:03 +00:00
|
|
|
<div ng-if="model.moreRows">
|
2019-02-22 15:15:54 +00:00
|
|
|
<span translate>More than</span> {{model.limit}} <span translate>results</span>
|
|
|
|
</div>
|
2019-01-30 22:47:06 +00:00
|
|
|
</vn-one>
|
2019-02-22 15:15:54 +00:00
|
|
|
<vn-auto>
|
|
|
|
<vn-autocomplete vn-id="field" vn-one
|
|
|
|
data="$ctrl.fieldList"
|
|
|
|
initial-data="$ctrl.field"
|
|
|
|
field="$ctrl.field"
|
|
|
|
translate-fields="['name']"
|
|
|
|
order="name"
|
|
|
|
show-field="name"
|
|
|
|
value-field="field"
|
2019-04-24 07:21:24 +00:00
|
|
|
label="Order by"
|
|
|
|
disabled="!model.data">
|
2019-02-22 15:15:54 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete vn-one
|
|
|
|
data="$ctrl.wayList"
|
|
|
|
initial-data="$ctrl.way"
|
|
|
|
field="$ctrl.way"
|
|
|
|
translate-fields="['name']"
|
|
|
|
show-field="name"
|
|
|
|
value-field="way"
|
2019-04-24 07:21:24 +00:00
|
|
|
label="Order"
|
|
|
|
disabled="!model.data">
|
2019-02-22 15:15:54 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-auto>
|
2019-01-30 22:47:06 +00:00
|
|
|
</vn-horizontal>
|
2019-02-22 15:15:54 +00:00
|
|
|
</vn-card>
|
2019-05-10 12:42:46 +00:00
|
|
|
<vn-card margin-medium-top>
|
|
|
|
<vn-empty-rows ng-if="$ctrl.isRefreshing">
|
|
|
|
<vn-spinner enable="$ctrl.isRefreshing"></vn-spinner>
|
|
|
|
</vn-empty-rows>
|
|
|
|
<vn-empty-rows ng-if="!$ctrl.isRefreshing && !model.data" translate>
|
|
|
|
Enter a new search
|
|
|
|
</vn-empty-rows>
|
|
|
|
<vn-empty-rows ng-if="!$ctrl.isRefreshing && model.data.length === 0" translate>
|
|
|
|
No results
|
|
|
|
</vn-empty-rows>
|
2019-02-22 15:15:54 +00:00
|
|
|
</vn-card>
|
2019-05-10 12:42:46 +00:00
|
|
|
|
2019-02-22 15:15:54 +00:00
|
|
|
<vn-horizontal class="catalog-list">
|
|
|
|
<section class="product" ng-repeat="item in items">
|
|
|
|
<vn-card>
|
|
|
|
<div class="image">
|
|
|
|
<img
|
|
|
|
ng-src="//verdnatura.es/vn-image-data/catalog/200x200/{{::item.image}}"
|
|
|
|
zoom-image="//verdnatura.es/vn-image-data/catalog/1600x900/{{::item.image}}"
|
|
|
|
on-error-src/>
|
|
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<h3>
|
|
|
|
{{::item.name}}
|
|
|
|
</h3>
|
|
|
|
<h4 class="ellipsize">
|
|
|
|
<span translate-attr="::{title: item.subName}">{{::item.subName}}</span>
|
|
|
|
</h4>
|
|
|
|
<div class="tags">
|
|
|
|
<vn-label-value
|
|
|
|
ng-if="::item.value5"
|
|
|
|
label="{{::item.tag5}}"
|
|
|
|
value="{{::item.value5}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value
|
|
|
|
ng-if="::item.value6"
|
|
|
|
label="{{::item.tag6}}"
|
|
|
|
value="{{::item.value6}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value
|
|
|
|
ng-if="::item.value7"
|
|
|
|
label="{{::item.tag7}}"
|
|
|
|
value="{{::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>{{::item.available}}</span>
|
|
|
|
<span translate>from</span>
|
|
|
|
<span>{{::item.price | currency:'EUR':2}}</span>
|
2019-02-22 13:34:11 +00:00
|
|
|
</div>
|
2019-02-22 15:15:54 +00:00
|
|
|
<vn-icon-button
|
|
|
|
icon="add_circle"
|
|
|
|
ng-click="$ctrl.preview($event, item)"
|
|
|
|
vn-tooltip="Add">
|
|
|
|
</vn-icon-button>
|
2019-02-22 13:34:11 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-02-22 15:15:54 +00:00
|
|
|
</vn-card>
|
|
|
|
</section>
|
|
|
|
</vn-horizontal>
|
2019-01-30 22:47:06 +00:00
|
|
|
<vn-pagination margin-small-v model="model"></vn-pagination>
|
|
|
|
</div>
|
2019-02-05 08:13:15 +00:00
|
|
|
<vn-side-menu side="right">
|
|
|
|
<vn-catalog-filter order="$ctrl.order"></vn-catalog-filter>
|
|
|
|
</vn-side-menu>
|
2018-08-21 11:38:16 +00:00
|
|
|
<vn-order-prices-popover
|
2018-09-17 12:30:39 +00:00
|
|
|
vn-id="pricesPopover"
|
|
|
|
order="$ctrl.order">
|
2018-08-21 11:38:16 +00:00
|
|
|
</vn-order-prices-popover>
|