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

57 lines
1.7 KiB
HTML
Raw Normal View History

<vn-crud-model
vn-id="model"
url="/item/api/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>
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="niche in niches track by $index">
2018-04-04 17:59:03 +00:00
<vn-autocomplete
url="/item/api/Warehouses"
2018-04-04 17:59:03 +00:00
show-field="name"
value-field="id"
field="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"
model="niche.code"
2018-04-04 17:59:03 +00:00
rule="itemNiche.code"
vn-acl="buyer,replenisher">
</vn-textfield>
<vn-none>
<vn-icon
medium-grey
margin-medium-v
vn-acl="buyer,replenisher"
pointer
vn-tooltip="Remove niche"
icon="delete"
ng-click="model.remove($index)">
</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 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>