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>
|
2018-03-01 22:38:14 +00:00
|
|
|
<vn-card pad-large>
|
2018-07-25 13:14:03 +00:00
|
|
|
<vn-title>New greuge</vn-title>
|
2018-03-01 22:38:14 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
margin-medium-right
|
|
|
|
label="Amount"
|
|
|
|
field="$ctrl.greuge.amount"
|
|
|
|
step="1"
|
|
|
|
vn-focus>
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-date-picker vn-one
|
|
|
|
label="Date"
|
|
|
|
model="$ctrl.greuge.shipped"
|
|
|
|
ini-options="{enableTime: true, dateFormat: 'd-m-Y h:i', time_24hr: true}">
|
|
|
|
</vn-date-picker>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
argin-medium-right
|
|
|
|
label="Comment"
|
|
|
|
field="$ctrl.greuge.description">
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
field="$ctrl.greuge.greugeTypeFk"
|
|
|
|
url="/client/api/greugeTypes"
|
|
|
|
label="Type">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
2017-12-04 07:17:29 +00:00
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Save"></vn-submit>
|
2018-10-17 07:28:38 +00:00
|
|
|
<vn-button ng-click="$ctrl.cancel()" label="Cancel"></vn-button>
|
2017-12-04 07:17:29 +00:00
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|