salix/client/item/src/index/index.html

43 lines
1.2 KiB
HTML
Raw Normal View History

<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">
<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>
<vn-card margin-medium-v>
2018-03-01 20:18:43 +00:00
<vn-item-product
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>
<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>
<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>