salix/modules/client/front/greuge/create/index.html

46 lines
1.3 KiB
HTML

<vn-watcher
vn-id="watcher"
url="Greuges"
data="$ctrl.greuge"
form="form"
insert-mode="true">
</vn-watcher>
<vn-crud-model
auto-load="true"
url="greugeTypes"
data="greugeTypes">
</vn-crud-model>
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
<vn-card class="vn-pa-lg">
<vn-horizontal>
<vn-input-number
vn-focus
label="Amount"
ng-model="$ctrl.greuge.amount"
step="0.01"
rule>
</vn-input-number>
<vn-date-picker
label="Date"
ng-model="$ctrl.greuge.shipped">
</vn-date-picker>
</vn-horizontal>
<vn-horizontal>
<vn-textfield
label="Comment"
ng-model="$ctrl.greuge.description"
rule>
</vn-textfield>
<vn-autocomplete
ng-model="$ctrl.greuge.greugeTypeFk"
data="greugeTypes"
label="Type"
rule>
</vn-autocomplete>
</vn-horizontal>
</vn-card>
<vn-button-bar>
<vn-submit label="Save"></vn-submit>
<vn-button ng-click="$ctrl.goToIndex()" label="Cancel"></vn-button>
</vn-button-bar>
</form>