2018-08-30 06:50:03 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
|
|
|
url="/item/api/ItemBarcodes"
|
|
|
|
fields="['id', 'itemFk', 'code']"
|
|
|
|
link="{itemFk: $ctrl.$stateParams.id}"
|
|
|
|
data="barcodes">
|
|
|
|
</vn-crud-model>
|
2018-05-31 09:52:39 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
2018-08-30 06:50:03 +00:00
|
|
|
data="barcodes"
|
2018-05-31 09:52:39 +00:00
|
|
|
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>
|
2018-07-25 13:14:03 +00:00
|
|
|
<vn-title>Barcodes</vn-title>
|
2018-08-30 06:50:03 +00:00
|
|
|
<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"
|
2018-04-19 12:46:06 +00:00
|
|
|
vn-acl="buyer, replenisher"
|
|
|
|
vn-focus>
|
2018-04-04 17:59:03 +00:00
|
|
|
</vn-textfield>
|
2018-08-30 06:50:03 +00:00
|
|
|
<vn-none>
|
2018-04-04 17:59:03 +00:00
|
|
|
<vn-icon
|
2018-08-30 06:50:03 +00:00
|
|
|
medium-grey
|
|
|
|
margin-medium-v
|
2018-04-05 07:06:35 +00:00
|
|
|
vn-acl="buyer,replenisher"
|
|
|
|
pointer
|
2018-04-19 12:46:06 +00:00
|
|
|
vn-tooltip="Remove barcode"
|
2018-12-11 07:50:54 +00:00
|
|
|
icon="delete"
|
2018-08-30 06:50:03 +00:00
|
|
|
ng-click="model.remove($index)">
|
2018-04-04 17:59:03 +00:00
|
|
|
</vn-icon>
|
2018-08-30 06:50:03 +00:00
|
|
|
</vn-none>
|
2018-04-04 17:59:03 +00:00
|
|
|
</vn-horizontal>
|
2018-04-05 07:06:35 +00:00
|
|
|
<vn-one>
|
2018-04-19 12:46:06 +00:00
|
|
|
<vn-icon-button
|
2018-04-05 07:06:35 +00:00
|
|
|
vn-acl="buyer, replenisher"
|
2018-04-19 12:46:06 +00:00
|
|
|
vn-tooltip="Add barcode"
|
2018-04-23 09:17:30 +00:00
|
|
|
vn-bind="+"
|
2018-05-22 09:44:24 +00:00
|
|
|
icon="add_circle"
|
2018-08-30 06:50:03 +00:00
|
|
|
ng-click="model.insert()">
|
2018-04-19 12:46:06 +00:00
|
|
|
</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>
|