43 lines
1.5 KiB
HTML
43 lines
1.5 KiB
HTML
<mg-ajax path="/client/api/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()" compact>
|
|
<vn-card pad-large>
|
|
<vn-horizontal>
|
|
<vn-textfield
|
|
vn-one
|
|
margin-medium-right
|
|
label="Credit"
|
|
model="$ctrl.insurance.credit",
|
|
rule="CreditInsurance.credit"
|
|
step="1"
|
|
vn-focus>
|
|
</vn-textfield>
|
|
<vn-date-picker vn-one
|
|
label="Date"
|
|
model="$ctrl.insurance.created"
|
|
ini-options="{enableTime: true, dateFormat: 'd-m-Y', time_24hr: true}">
|
|
</vn-date-picker>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-textfield
|
|
vn-one
|
|
argin-medium-right
|
|
label="Grade"
|
|
model="$ctrl.insurance.grade"
|
|
rule="CreditInsurance.grade">
|
|
</vn-textfield>
|
|
</vn-horizontal>
|
|
</vn-card>
|
|
<vn-button-bar>
|
|
<vn-submit label="Save"></vn-submit>
|
|
<button
|
|
class="mdl-button mdl-button--raised mdl-button--colored"
|
|
translate
|
|
ui-sref="client.card.creditInsurance.insurance.index({classificationId: post.params.classificationId})">Cancel</button>
|
|
</vn-button-bar>
|
|
</form> |