2022-05-24 10:50:22 +00:00
|
|
|
<mg-ajax path="Shelvings/{{patch.params.id}}" options="vnPatch"></mg-ajax>
|
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.shelving"
|
|
|
|
form="form"
|
|
|
|
save="patch">
|
|
|
|
</vn-watcher>
|
|
|
|
<form name="form" ng-submit="watcher.submit()" class="vn-w-md">
|
|
|
|
<vn-card class="vn-pa-lg">
|
|
|
|
<vn-vertical>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
label="Code"
|
2022-07-14 07:54:28 +00:00
|
|
|
ng-model="$ctrl.shelving.code"
|
2022-05-24 10:50:22 +00:00
|
|
|
rule
|
|
|
|
vn-focus>
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
url="Parkings"
|
|
|
|
label="Parking"
|
2022-06-07 11:26:55 +00:00
|
|
|
show-field="code"
|
2022-05-24 10:50:22 +00:00
|
|
|
value-field="id"
|
|
|
|
ng-model="$ctrl.shelving.parkingFk">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2022-06-07 11:26:55 +00:00
|
|
|
<vn-input-number vn-one
|
|
|
|
label="Priority"
|
2022-05-24 10:50:22 +00:00
|
|
|
ng-model="$ctrl.shelving.priority"
|
|
|
|
rule>
|
2022-06-07 11:26:55 +00:00
|
|
|
</vn-input-number>
|
2022-05-24 10:50:22 +00:00
|
|
|
<vn-check
|
|
|
|
label="Recyclable"
|
|
|
|
ng-model="$ctrl.shelving.isRecyclable">
|
|
|
|
</vn-check>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-vertical>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit
|
|
|
|
disabled="!watcher.dataChanged()"
|
|
|
|
label="Save">
|
|
|
|
</vn-submit>
|
|
|
|
<vn-button
|
|
|
|
class="cancel"
|
|
|
|
label="Undo changes"
|
|
|
|
disabled="!watcher.dataChanged()"
|
|
|
|
ng-click="watcher.loadOriginalData()">
|
|
|
|
</vn-button>
|
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|