2018-06-07 21:47:19 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
|
|
|
url="/item/api/Items"
|
|
|
|
filter="::$ctrl.filter"
|
|
|
|
limit="4"
|
|
|
|
data="items"
|
|
|
|
auto-load="false">
|
|
|
|
</vn-crud-model>
|
2017-12-19 11:29:35 +00:00
|
|
|
<div margin-medium>
|
2018-03-01 20:18:43 +00:00
|
|
|
<div class="vn-list">
|
2018-06-07 21:47:19 +00:00
|
|
|
<vn-card pad-medium-h>
|
|
|
|
<vn-searchbar
|
|
|
|
panel="vn-item-search-panel"
|
|
|
|
model="model"
|
|
|
|
expr-builder="$ctrl.exprBuilder(param, value)">
|
|
|
|
</vn-searchbar>
|
2017-12-19 11:29:35 +00:00
|
|
|
</vn-card>
|
2018-06-07 21:47:19 +00:00
|
|
|
<vn-card margin-medium-v>
|
2018-03-01 20:18:43 +00:00
|
|
|
<vn-item-product
|
2018-06-07 21:47:19 +00:00
|
|
|
ng-repeat="item in items track by item.id"
|
|
|
|
item="::item">
|
2018-03-01 20:18:43 +00:00
|
|
|
</vn-item-product>
|
2017-12-19 11:29:35 +00:00
|
|
|
</vn-card>
|
2018-06-07 21:47:19 +00:00
|
|
|
<vn-pagination
|
|
|
|
model="model"
|
|
|
|
scroll-selector="ui-view">
|
|
|
|
</vn-pagination>
|
2017-12-19 11:29:35 +00:00
|
|
|
</div>
|
2018-03-01 20:18:43 +00:00
|
|
|
</div>
|
2018-04-23 09:17:30 +00:00
|
|
|
<a ui-sref="item.create" vn-bind="+" fixed-bottom-right>
|
2018-03-01 20:18:43 +00:00
|
|
|
<vn-float-button icon="add"></vn-float-button>
|
|
|
|
</a>
|
|
|
|
<vn-dialog vn-id="preview" class="dialog-summary">
|
|
|
|
<tpl-body>
|
|
|
|
<vn-item-summary item="$ctrl.itemSelected"></vn-item-summary>
|
|
|
|
</tpl-body>
|
|
|
|
</vn-dialog>
|
|
|
|
<vn-confirm
|
|
|
|
vn-id="clone"
|
|
|
|
on-response="$ctrl.onCloneAccept(response)"
|
|
|
|
question="Do you want to clone this item?"
|
|
|
|
message="All it's properties will be copied">
|
|
|
|
</vn-confirm>
|