2017-12-04 07:17:29 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
2020-03-09 08:00:03 +00:00
|
|
|
url="Greuges"
|
2017-12-04 07:17:29 +00:00
|
|
|
data="$ctrl.greuge"
|
|
|
|
form="form"
|
2020-03-09 08:00:03 +00:00
|
|
|
insert-mode="true">
|
2017-12-04 07:17:29 +00:00
|
|
|
</vn-watcher>
|
2020-09-17 18:12:52 +00:00
|
|
|
<vn-crud-model
|
|
|
|
auto-load="true"
|
|
|
|
url="greugeTypes"
|
|
|
|
data="greugeTypes">
|
|
|
|
</vn-crud-model>
|
2019-11-10 10:08:44 +00:00
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2018-03-01 22:38:14 +00:00
|
|
|
<vn-horizontal>
|
2019-10-08 21:57:02 +00:00
|
|
|
<vn-input-number
|
|
|
|
vn-focus
|
2018-03-01 22:38:14 +00:00
|
|
|
label="Amount"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.greuge.amount"
|
2019-10-08 21:57:02 +00:00
|
|
|
step="0.01"
|
|
|
|
rule>
|
2019-03-26 06:29:45 +00:00
|
|
|
</vn-input-number>
|
2019-10-08 21:57:02 +00:00
|
|
|
<vn-date-picker
|
|
|
|
label="Date"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.greuge.shipped">
|
2018-03-01 22:38:14 +00:00
|
|
|
</vn-date-picker>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
label="Comment"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.greuge.description"
|
2019-10-08 21:57:02 +00:00
|
|
|
rule>
|
2018-03-01 22:38:14 +00:00
|
|
|
</vn-textfield>
|
|
|
|
<vn-autocomplete
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.greuge.greugeTypeFk"
|
2020-09-17 18:12:52 +00:00
|
|
|
data="greugeTypes"
|
2019-10-08 21:57:02 +00:00
|
|
|
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>
|
2020-12-13 13:57:42 +00:00
|
|
|
<vn-submit
|
|
|
|
ng-if="watcher.dataChanged()"
|
|
|
|
label="Save">
|
|
|
|
</vn-submit>
|
|
|
|
<vn-button
|
|
|
|
ng-click="$ctrl.goToIndex()"
|
|
|
|
label="Cancel">
|
|
|
|
</vn-button>
|
2017-12-04 07:17:29 +00:00
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|