salix/client/client/src/recovery-create/recovery-create.html

43 lines
1.2 KiB
HTML
Raw Normal View History

<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 pad-medium name="form" ng-submit="$ctrl.onSubmit()">
2018-03-01 22:38:14 +00:00
<vn-card pad-large>
<vn-title>Add recovery</vn-title>
<vn-horizontal>
<vn-date-picker
vn-one
label="Since"
model="$ctrl.recovery.started"
ini-options="{dateFormat: 'd-m-Y'}"
vn-focus>
</vn-date-picker>
<vn-date-picker
vn-one
label="To"
model="$ctrl.recovery.finished"
ini-options="{dateFormat: 'd-m-Y'}">
</vn-date-picker>
<vn-textfield
vn-one
label="Amount"
field="$ctrl.recovery.amount"
type="number">
</vn-textfield>
<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-bar>
</form>