58 lines
1.9 KiB
HTML
58 lines
1.9 KiB
HTML
|
<vn-watcher
|
||
|
vn-id="watcher"
|
||
|
data="$ctrl.item"
|
||
|
form="form">
|
||
|
</vn-watcher>
|
||
|
<form name="form" ng-submit="$ctrl.submit()">
|
||
|
<vn-card pad-large>
|
||
|
<vn-title>Item niches</vn-title>
|
||
|
<vn-horizontal ng-repeat="itemNiche in $ctrl.niches track by $index">
|
||
|
<vn-autocomplete
|
||
|
ng-if="!itemNiche.id"
|
||
|
vn-one
|
||
|
data="$ctrl.warehouses"
|
||
|
show-field="name"
|
||
|
value-field="id"
|
||
|
initial-data="itemNiche.warehouse"
|
||
|
field="itemNiche.warehouseFk"
|
||
|
label="Warehouse"
|
||
|
vn-acl="buyer,replenisher">
|
||
|
</vn-autocomplete>
|
||
|
<vn-textfield
|
||
|
ng-if="itemNiche.id"
|
||
|
vn-one
|
||
|
label="Warehouse"
|
||
|
model="itemNiche.warehouse.name"
|
||
|
disabled="true">
|
||
|
</vn-textfield>
|
||
|
<vn-textfield
|
||
|
vn-two
|
||
|
label="Code"
|
||
|
model="itemNiche.code"
|
||
|
rule="itemNiche.code"
|
||
|
vn-acl="buyer,replenisher">
|
||
|
</vn-textfield>
|
||
|
<vn-one pad-medium-top>
|
||
|
<vn-icon
|
||
|
vn-acl="buyer,replenisher"
|
||
|
pointer
|
||
|
medium-grey
|
||
|
icon="remove_circle_outline"
|
||
|
ng-click="$ctrl.removeNiche($index)">
|
||
|
</vn-icon>
|
||
|
<vn-icon
|
||
|
vn-acl="buyer, replenisher"
|
||
|
pointer
|
||
|
margin-medium-left
|
||
|
orange
|
||
|
icon="add_circle"
|
||
|
ng-if="itemNiche.showAddIcon"
|
||
|
ng-click="$ctrl.addNiche()">
|
||
|
</vn-icon>
|
||
|
</vn-one>
|
||
|
</vn-horizontal>
|
||
|
</vn-card>
|
||
|
<vn-button-bar>
|
||
|
<vn-submit label="Save"></vn-submit>
|
||
|
</vn-button-bar>
|
||
|
</form>
|