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>
|
|
|
|
<vn-horizontal>
|
2019-03-26 06:29:45 +00:00
|
|
|
<vn-input-number vn-one vn-focus min="0"
|
|
|
|
display-controls="false"
|
2018-03-01 22:38:14 +00:00
|
|
|
label="Amount"
|
2019-03-26 06:29:45 +00:00
|
|
|
field="$ctrl.greuge.amount">
|
|
|
|
</vn-input-number>
|
2018-03-01 22:38:14 +00:00
|
|
|
<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>
|