2017-12-19 11:29:35 +00:00
|
|
|
<mg-ajax path="/item/api/Items/filter" options="mgIndex"></mg-ajax>
|
|
|
|
<div margin-medium>
|
|
|
|
<div style="max-width: 40em; margin: 0 auto;">
|
|
|
|
<vn-card>
|
|
|
|
<vn-horizontal pad-medium>
|
|
|
|
<vn-searchbar vn-one
|
|
|
|
index="index"
|
|
|
|
on-search="$ctrl.search(index)"
|
|
|
|
advanced="true"
|
2017-12-20 11:20:59 +00:00
|
|
|
popover="vn-item-filter-panel"
|
2018-02-14 10:33:21 +00:00
|
|
|
ignore-keys = "['page', 'size', 'search']">
|
2017-12-19 11:29:35 +00:00
|
|
|
</vn-searchbar>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
<vn-card margin-medium-top>
|
2018-02-21 08:28:17 +00:00
|
|
|
<vn-auto class="item-product-link" ng-repeat="item in index.model.instances">
|
2018-02-22 07:18:57 +00:00
|
|
|
<vn-item-product item="item"></vn-item-product>
|
2018-02-21 08:28:17 +00:00
|
|
|
</vn-auto>
|
2017-12-19 11:29:35 +00:00
|
|
|
</vn-card>
|
|
|
|
<vn-paging index="index" total="index.model.count"></vn-paging>
|
|
|
|
</div>
|
|
|
|
<a ui-sref="item.create" fixed-bottom-right>
|
|
|
|
<vn-float-button icon="add"></vn-float-button>
|
|
|
|
</a>
|
2018-03-01 11:51:35 +00:00
|
|
|
<vn-dialog vn-id="preview" class="dialog-summary">
|
|
|
|
<tpl-body>
|
2018-02-22 07:18:57 +00:00
|
|
|
<vn-item-summary item="$ctrl.itemSelected"></vn-item-summary>
|
|
|
|
</tpl-body>
|
|
|
|
</vn-dialog>
|
2018-02-22 12:40:23 +00:00
|
|
|
|
|
|
|
<vn-dialog
|
|
|
|
vn-id="clone"
|
|
|
|
on-response="$ctrl.onCloneAccept(response)">
|
|
|
|
<tpl-body>
|
|
|
|
<p translate>Do you want to clone this item?</p>
|
|
|
|
</tpl-body>
|
|
|
|
<tpl-buttons>
|
|
|
|
<button response="CANCEL" translate>Cancel</button>
|
|
|
|
<button response="ACCEPT" translate>Yes, clone</button>
|
|
|
|
</tpl-buttons>
|
|
|
|
</vn-dialog>
|
2017-12-19 11:29:35 +00:00
|
|
|
</div>
|