43 lines
1.3 KiB
HTML
43 lines
1.3 KiB
HTML
<mg-ajax path="CreditClassifications/{{post.params.classificationId}}/insurances" options="vnPost"></mg-ajax>
|
|
<vn-watcher
|
|
vn-id="watcher"
|
|
data="$ctrl.insurance"
|
|
form="form"
|
|
save="post">
|
|
</vn-watcher>
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
|
<vn-card class="vn-pa-lg">
|
|
<vn-horizontal>
|
|
<vn-input-number
|
|
vn-one
|
|
min="0"
|
|
label="Credit"
|
|
ng-model="$ctrl.insurance.credit"
|
|
rule="CreditInsurance"
|
|
vn-focus>
|
|
</vn-input-number>
|
|
<vn-date-picker
|
|
vn-one
|
|
label="Date"
|
|
ng-model="$ctrl.insurance.created">
|
|
</vn-date-picker>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-input-number
|
|
vn-one
|
|
min="0"
|
|
step="1"
|
|
label="Grade"
|
|
ng-model="$ctrl.insurance.grade"
|
|
rule="CreditInsurance">
|
|
</vn-input-number>
|
|
</vn-horizontal>
|
|
</vn-card>
|
|
<vn-button-bar>
|
|
<vn-submit label="Save"></vn-submit>
|
|
<vn-button
|
|
label="Cancel"
|
|
ui-sref="client.card.creditInsurance.insurance.index({classificationId: post.params.classificationId})">
|
|
</vn-button>
|
|
</vn-button-bar>
|
|
</form> |