salix/modules/supplier/front/basic-data/index.html

61 lines
1.8 KiB
HTML
Raw Normal View History

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>
<vn-autocomplete
vn-one
ng-model="$ctrl.supplier.workerFk"
url="Clients/activeWorkersWithRole"
search-function="{firstName: $search}"
show-field="nickname"
value-field="id"
where="{role: 'employee'}"
label="Sales person"
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>