2020-10-31 10:22:56 +00:00
|
|
|
<mg-ajax path="Suppliers/{{patch.params.id}}" options="vnPatch"></mg-ajax>
|
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.supplier"
|
|
|
|
form="form"
|
|
|
|
save="patch">
|
|
|
|
</vn-watcher>
|
|
|
|
<form name="form" ng-submit="watcher.submit()" class="vn-w-md">
|
|
|
|
<vn-card class="vn-pa-lg">
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Alias"
|
|
|
|
ng-model="$ctrl.supplier.nickname"
|
|
|
|
rule
|
|
|
|
vn-focus>
|
|
|
|
</vn-textfield>
|
2021-02-05 14:26:49 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
ng-model="$ctrl.supplier.workerFk"
|
2021-04-13 12:08:10 +00:00
|
|
|
url="Workers/activeWithInheritedRole"
|
2021-02-05 14:26:49 +00:00
|
|
|
search-function="{firstName: $search}"
|
|
|
|
show-field="nickname"
|
|
|
|
value-field="id"
|
|
|
|
where="{role: 'employee'}"
|
2021-02-08 09:14:41 +00:00
|
|
|
label="Responsible"
|
2021-02-05 14:26:49 +00:00
|
|
|
info="Responsible for approving invoices">
|
|
|
|
</vn-autocomplete>
|
2020-10-31 10:22:56 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-check
|
2020-11-18 10:47:23 +00:00
|
|
|
label="Verified"
|
|
|
|
ng-model="$ctrl.supplier.isSerious">
|
2020-10-31 10:22:56 +00:00
|
|
|
</vn-check>
|
|
|
|
<vn-check
|
2020-11-05 12:59:24 +00:00
|
|
|
label="Active"
|
2020-10-31 10:22:56 +00:00
|
|
|
ng-model="$ctrl.supplier.isActive">
|
|
|
|
</vn-check>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textarea
|
|
|
|
vn-one
|
|
|
|
label="Notes"
|
|
|
|
ng-model="$ctrl.supplier.note"
|
|
|
|
rule>
|
|
|
|
</vn-textarea>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
2020-12-15 16:09:05 +00:00
|
|
|
<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>
|
2020-10-31 10:22:56 +00:00
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|