42 lines
1.3 KiB
HTML
42 lines
1.3 KiB
HTML
<mg-ajax path="/client/api/recoveries" options="vnPost"></mg-ajax>
|
|
<vn-watcher
|
|
vn-id="watcher"
|
|
data="$ctrl.recovery"
|
|
form="form"
|
|
save="post">
|
|
</vn-watcher>
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" compact>
|
|
<vn-card pad-large>
|
|
<vn-horizontal>
|
|
<vn-date-picker
|
|
vn-one
|
|
label="Since"
|
|
model="$ctrl.recovery.started"
|
|
vn-focus
|
|
ini-options="{enableTime: true}">
|
|
</vn-date-picker>
|
|
<vn-date-picker
|
|
vn-one
|
|
label="To"
|
|
model="$ctrl.recovery.finished"
|
|
ini-options="{enableTime: true}">
|
|
</vn-date-picker>
|
|
<vn-input-number vn-one vn-focus
|
|
display-controls="false"
|
|
label="Amount"
|
|
field="$ctrl.recovery.amount">
|
|
</vn-input-number>
|
|
<vn-textfield
|
|
vn-one
|
|
label="Period"
|
|
field="$ctrl.recovery.period"
|
|
type="number">
|
|
</vn-textfield>
|
|
</vn-horizontal>
|
|
</vn-card>
|
|
<vn-button-bar>
|
|
<vn-submit label="Save"></vn-submit>
|
|
<vn-button ng-click="$ctrl.cancel()" label="Cancel"></vn-button>
|
|
</vn-button-bar>
|
|
</form>
|