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

63 lines
1.9 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-worker-autocomplete
vn-one
ng-model="$ctrl.supplier.workerFk"
show-field="nickname"
2021-02-08 09:14:41 +00:00
label="Responsible"
info="Responsible for approving invoices">
</vn-worker-autocomplete>
2020-10-31 10:22:56 +00:00
</vn-horizontal>
<vn-horizontal>
<vn-check
label="Verified"
ng-model="$ctrl.supplier.isReal">
2020-10-31 10:22:56 +00:00
</vn-check>
<vn-check
label="Active"
2020-10-31 10:22:56 +00:00
ng-model="$ctrl.supplier.isActive">
</vn-check>
<vn-check
label="PayMethodChecked"
ng-model="$ctrl.supplier.isPayMethodChecked"
vn-acl="financial">
</vn-check>
2020-10-31 10:22:56 +00:00
</vn-horizontal>
<vn-horizontal>
<vn-textarea
vn-one
label="Notes"
2020-10-31 10:22:56 +00:00
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>