2018-06-07 21:47:19 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2018-07-06 14:32:23 +00:00
|
|
|
url="/item/api/Items/filter"
|
2018-06-08 11:26:06 +00:00
|
|
|
limit="8"
|
2018-09-05 11:01:21 +00:00
|
|
|
order="isActive DESC, name"
|
2018-06-07 21:47:19 +00:00
|
|
|
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"
|
2018-09-05 11:01:21 +00:00
|
|
|
expr-builder="$ctrl.exprBuilder(param, value)"
|
2018-09-17 12:54:38 +00:00
|
|
|
param-builder="$ctrl.paramBuilder(param, value)"
|
|
|
|
vn-focus>
|
2018-06-07 21:47:19 +00:00
|
|
|
</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>
|
2018-11-21 13:30:32 +00:00
|
|
|
<vn-empty-rows class="vn-list-item" style="text-align: center"
|
|
|
|
ng-if="!model.data || model.data.length === 0" translate>
|
|
|
|
Enter a new search
|
|
|
|
</vn-empty-rows>
|
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-07-25 13:14:03 +00:00
|
|
|
<a ui-sref="item.create" vn-tooltip="New item" 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>
|