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

45 lines
1.3 KiB
HTML

<mg-ajax path="greuges" options="vnPost"></mg-ajax>
<vn-watcher
vn-id="watcher"
data="$ctrl.greuge"
form="form"
save="post">
</vn-watcher>
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
<vn-card class="vn-pa-lg">
<vn-horizontal>
<vn-input-number
vn-one
vn-focus
label="Amount"
ng-model="$ctrl.greuge.amount"
step="0.01"
rule>
</vn-input-number>
<vn-date-picker
vn-one
label="Date"
ng-model="$ctrl.greuge.shipped">
</vn-date-picker>
</vn-horizontal>
<vn-horizontal>
<vn-textfield
vn-one
label="Comment"
ng-model="$ctrl.greuge.description"
rule>
</vn-textfield>
<vn-autocomplete
vn-one
ng-model="$ctrl.greuge.greugeTypeFk"
url="greugeTypes"
label="Type"
rule>
</vn-autocomplete>
</vn-horizontal>
</vn-card>
<vn-button-bar>
<vn-submit label="Save"></vn-submit>
<vn-button ng-click="$ctrl.cancel()" label="Cancel"></vn-button>
</vn-button-bar>
</form>