salix/modules/item/front/index/index.html

53 lines
1.7 KiB
HTML
Raw Normal View History

<vn-crud-model
vn-id="model"
2018-07-06 14:32:23 +00:00
url="/item/api/Items/filter"
limit="8"
order="isActive DESC, name, id"
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">
<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)"
param-builder="$ctrl.paramBuilder(param, value)"
vn-focus>
</vn-searchbar>
2017-12-19 11:29:35 +00:00
</vn-card>
<vn-card margin-medium-v>
2018-03-01 20:18:43 +00:00
<vn-item-product
2018-11-26 12:44:58 +00:00
ng-repeat="item in items track by item.id"
item="::item">
2018-03-01 20:18:43 +00:00
</vn-item-product>
<vn-empty-rows class="vn-list-item" style="text-align: center"
ng-if="model.data.length === 0" translate>
No results
</vn-empty-rows>
<vn-empty-rows class="vn-list-item" style="text-align: center"
ng-if="model.data === null" translate>
Enter a new search
</vn-empty-rows>
2017-12-19 11:29:35 +00:00
</vn-card>
<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>