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

55 lines
1.7 KiB
HTML
Raw Normal View History

<vn-crud-model
vn-id="model"
url="ItemNiches"
fields="['id', 'itemFk', 'warehouseFk', 'code']"
link="{itemFk: $ctrl.$stateParams.id}"
data="niches"
auto-load="true">
</vn-crud-model>
2018-04-04 17:59:03 +00:00
<vn-watcher
vn-id="watcher"
data="niches"
2018-04-04 17:59:03 +00:00
form="form">
</vn-watcher>
2019-11-10 10:08:44 +00:00
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
<vn-card class="vn-pa-lg">
<vn-horizontal ng-repeat="niche in niches track by $index">
2018-04-04 17:59:03 +00:00
<vn-autocomplete
url="Warehouses"
2018-04-04 17:59:03 +00:00
show-field="name"
value-field="id"
2019-10-09 22:47:29 +00:00
ng-model="niche.warehouseFk"
2018-04-04 17:59:03 +00:00
label="Warehouse"
vn-acl="buyer,replenisher" vn-one vn-focus>
2018-04-04 17:59:03 +00:00
</vn-autocomplete>
<vn-textfield
2018-04-05 07:06:35 +00:00
vn-three
2018-04-04 17:59:03 +00:00
label="Code"
2019-10-09 22:47:29 +00:00
ng-model="niche.code"
2019-10-11 15:38:04 +00:00
rule="ItemNiche"
2018-04-04 17:59:03 +00:00
vn-acl="buyer,replenisher">
</vn-textfield>
<vn-none>
<vn-icon-button
vn-acl="buyer,replenisher"
pointer
vn-tooltip="Remove niche"
icon="delete"
ng-click="model.remove($index)">
</vn-icon-button>
</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 niche"
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>