salix/modules/client/front/recovery/create/index.html

46 lines
1.2 KiB
HTML

<vn-watcher
vn-id="watcher"
url="Recoveries"
data="$ctrl.recovery"
insert-mode="true"
form="form">
</vn-watcher>
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
<vn-card class="vn-pa-lg">
<vn-horizontal>
<vn-date-picker
label="Since"
ng-model="$ctrl.recovery.started"
vn-focus>
</vn-date-picker>
<vn-date-picker
label="To"
ng-model="$ctrl.recovery.finished">
</vn-date-picker>
<vn-input-number
label="Amount"
ng-model="$ctrl.recovery.amount"
step="0.01"
rule
vn-focus>
</vn-input-number>
<vn-input-number
label="Period"
ng-model="$ctrl.recovery.period"
rule>
</vn-input-number>
</vn-horizontal>
</vn-card>
<vn-button-bar>
<vn-submit
disabled="!watcher.dataChanged()"
label="Save">
</vn-submit>
<vn-button
class="cancel"
label="Cancel"
ng-click="$ctrl.cancel()">
</vn-button>
</vn-button-bar>
</form>