2018-05-31 09:52:39 +00:00
|
|
|
<vn-crud-model
|
2019-10-24 22:53:53 +00:00
|
|
|
url="TaxClasses"
|
2018-05-31 09:52:39 +00:00
|
|
|
fields="['id', 'description', 'code']"
|
2018-12-19 14:59:35 +00:00
|
|
|
data="classes"
|
|
|
|
auto-load="true">
|
2018-05-31 09:52:39 +00:00
|
|
|
</vn-crud-model>
|
2019-09-18 07:41:25 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.taxes"
|
2019-09-19 07:05:11 +00:00
|
|
|
form="form">
|
2019-09-18 07:41:25 +00:00
|
|
|
</vn-watcher>
|
2019-11-10 10:08:44 +00:00
|
|
|
<form name="form" ng-submit="$ctrl.submit()" class="vn-w-md">
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2019-10-08 15:27:27 +00:00
|
|
|
<vn-horizontal ng-repeat="tax in $ctrl.taxes">
|
2019-10-09 22:47:29 +00:00
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
2018-03-01 22:38:14 +00:00
|
|
|
label="Country"
|
2024-04-25 10:35:21 +00:00
|
|
|
ng-model="tax.country.name"
|
2018-03-01 22:38:14 +00:00
|
|
|
disabled="true">
|
|
|
|
</vn-textfield>
|
2019-10-09 22:47:29 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
2018-03-01 22:38:14 +00:00
|
|
|
label="Class"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="tax.taxClassFk"
|
2018-05-31 09:52:39 +00:00
|
|
|
data="classes"
|
2018-03-01 22:38:14 +00:00
|
|
|
show-field="description">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
2018-02-23 12:04:44 +00:00
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
2020-12-13 12:54:17 +00:00
|
|
|
<vn-submit
|
2020-12-15 15:07:34 +00:00
|
|
|
disabled="!watcher.dataChanged()"
|
2020-12-13 12:54:17 +00:00
|
|
|
label="Save">
|
|
|
|
</vn-submit>
|
|
|
|
<!-- # #2680 Undo changes button bugs -->
|
|
|
|
<!-- <vn-button
|
2020-12-15 15:07:34 +00:00
|
|
|
class="cancel"
|
2020-12-13 12:54:17 +00:00
|
|
|
label="Undo changes"
|
2020-12-15 15:07:34 +00:00
|
|
|
disabled="!watcher.dataChanged()"
|
2020-12-13 12:54:17 +00:00
|
|
|
ng-click="watcher.loadOriginalData()">
|
|
|
|
</vn-button> -->
|
2018-02-23 12:04:44 +00:00
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|