salix/modules/item/front/tax/index.html

28 lines
874 B
HTML

<vn-crud-model
url="/item/api/TaxClasses"
fields="['id', 'description', 'code']"
data="classes"
auto-load="true">
</vn-crud-model>
<form name="form" ng-submit="$ctrl.submit()" compact>
<vn-card pad-large>
<vn-title>Tax</vn-title>
<vn-horizontal ng-repeat="tax in $ctrl.taxes track by $index">
<vn-textfield vn-one
label="Country"
model="tax.country.country"
disabled="true">
</vn-textfield>
<vn-autocomplete vn-one
label="Class"
field="tax.taxClassFk"
data="classes"
value-field="id"
show-field="description">
</vn-autocomplete>
</vn-horizontal>
</vn-card>
<vn-button-bar>
<vn-submit label="Save"></vn-submit>
</vn-button-bar>
</form>