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

48 lines
1.3 KiB
HTML
Raw Normal View History

<vn-crud-model
vn-id="model"
url="/item/api/ItemBarcodes"
fields="['id', 'itemFk', 'code']"
link="{itemFk: $ctrl.$stateParams.id}"
data="barcodes"
auto-load="true">
</vn-crud-model>
<vn-watcher
vn-id="watcher"
data="barcodes"
form="form">
</vn-watcher>
2018-12-14 11:56:21 +00:00
<form name="form" ng-submit="$ctrl.onSubmit()" compact>
2018-04-04 17:59:03 +00:00
<vn-card pad-large>
<vn-horizontal ng-repeat="barcode in barcodes track by $index">
2018-04-04 17:59:03 +00:00
<vn-textfield
vn-three
label="Code"
model="barcode.code"
vn-acl="buyer, replenisher"
vn-focus>
2018-04-04 17:59:03 +00:00
</vn-textfield>
<vn-none>
2018-04-04 17:59:03 +00:00
<vn-icon
2018-04-05 07:06:35 +00:00
vn-acl="buyer,replenisher"
pointer
vn-tooltip="Remove barcode"
icon="delete"
ng-click="model.remove($index)">
2018-04-04 17:59:03 +00:00
</vn-icon>
</vn-none>
2018-04-04 17:59:03 +00:00
</vn-horizontal>
2018-04-05 07:06:35 +00:00
<vn-one>
<vn-icon-button
2018-04-05 07:06:35 +00:00
vn-acl="buyer, replenisher"
vn-tooltip="Add barcode"
vn-bind="+"
icon="add_circle"
ng-click="model.insert()">
</vn-icon-button>
2018-04-05 07:06:35 +00:00
</vn-one>
2018-04-04 17:59:03 +00:00
</vn-card>
<vn-button-bar>
<vn-submit label="Save"></vn-submit>
</vn-button-bar>
</form>