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-01-16 12:56:09 +00:00
|
|
|
|
2018-01-16 12:54:21 +00:00
|
|
|
<form pad-medium name="form" ng-submit="$ctrl.onSubmit()">
|
2017-12-04 07:17:29 +00:00
|
|
|
<vn-card>
|
|
|
|
<vn-vertical pad-medium>
|
|
|
|
<vn-title vn-one margin-large-bottom>Add Greuge</vn-title>
|
|
|
|
<vn-horizontal>
|
2018-02-23 11:51:36 +00:00
|
|
|
<vn-textfield vn-one margin-medium-right label="Amount" field="$ctrl.greuge.amount" step="1" vn-focus></vn-textfield>
|
2018-01-10 09:48:02 +00:00
|
|
|
<vn-date-picker vn-one
|
|
|
|
label="Date"
|
|
|
|
model="$ctrl.greuge.shipped"
|
2018-03-01 10:55:28 +00:00
|
|
|
ini-options="{enableTime: true, dateFormat: 'd-m-Y h:i', time_24hr: true}">
|
2018-01-10 09:48:02 +00:00
|
|
|
</vn-date-picker>
|
2017-12-04 07:17:29 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield vn-one margin-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>
|
|
|
|
</vn-vertical>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Save"></vn-submit>
|
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|