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

45 lines
1.3 KiB
HTML
Raw Normal View History

2017-12-04 07:17:29 +00:00
<mg-ajax path="/client/api/greuges" options="vnPost"></mg-ajax>
<vn-watcher
vn-id="watcher"
data="$ctrl.greuge"
form="form"
save="post">
</vn-watcher>
2018-12-14 11:56:21 +00:00
<form name="form" ng-submit="$ctrl.onSubmit()" compact>
<vn-card class="vn-pa-lg">
2018-03-01 22:38:14 +00:00
<vn-horizontal>
<vn-input-number
vn-one
vn-focus
2018-03-01 22:38:14 +00:00
label="Amount"
field="$ctrl.greuge.amount"
step="0.01"
rule>
</vn-input-number>
<vn-date-picker
vn-one
label="Date"
field="$ctrl.greuge.shipped">
2018-03-01 22:38:14 +00:00
</vn-date-picker>
</vn-horizontal>
<vn-horizontal>
<vn-textfield
vn-one
2018-03-01 22:38:14 +00:00
label="Comment"
field="$ctrl.greuge.description"
rule>
2018-03-01 22:38:14 +00:00
</vn-textfield>
<vn-autocomplete
vn-one
field="$ctrl.greuge.greugeTypeFk"
url="/client/api/greugeTypes"
label="Type"
rule>
2018-03-01 22:38:14 +00:00
</vn-autocomplete>
</vn-horizontal>
2017-12-04 07:17:29 +00:00
</vn-card>
<vn-button-bar>
<vn-submit label="Save"></vn-submit>
<vn-button ng-click="$ctrl.cancel()" label="Cancel"></vn-button>
2017-12-04 07:17:29 +00:00
</vn-button-bar>
</form>