2018-03-23 10:33:54 +00:00
|
|
|
<vn-vertical>
|
2018-12-14 11:56:21 +00:00
|
|
|
<vn-card pad-large compact>
|
2018-03-14 10:36:57 +00:00
|
|
|
<vn-title vn-one>Contract credit insurance</vn-title>
|
|
|
|
<vn-horizontal ng-repeat="classification in $ctrl.classifications track by classification.id" class="pad-medium-top" style="align-items: center;">
|
2018-06-04 09:57:27 +00:00
|
|
|
<vn-one border-radius class="pad-small border-solid" ng-class="{'bg-main': !classification.finished,'bg-opacity-item': classification.finished}">
|
2018-03-14 10:36:57 +00:00
|
|
|
<vn-horizontal style="align-items: center;">
|
2018-06-04 09:57:27 +00:00
|
|
|
<vn-none pad-medium-h orange>
|
2018-10-11 07:41:30 +00:00
|
|
|
<vn-icon-button icon="lock" orange
|
2018-03-14 10:36:57 +00:00
|
|
|
ng-if="!classification.finished"
|
2018-05-22 09:44:24 +00:00
|
|
|
vn-tooltip="Close contract"
|
2018-10-11 07:41:30 +00:00
|
|
|
ng-click="$ctrl.closeContract(classification)">
|
|
|
|
</vn-icon-button>
|
2018-03-14 10:36:57 +00:00
|
|
|
</vn-none>
|
|
|
|
<vn-one border-solid-right>
|
|
|
|
<div><vn-label translate>Since</vn-label> {{::classification.started | date:'dd/MM/yyyy'}}</div>
|
|
|
|
<div><vn-label translate>To</vn-label> {{classification.finished | date:'dd/MM/yyyy'}}</div>
|
|
|
|
</vn-one>
|
|
|
|
<vn-vertical vn-one pad-medium-h>
|
2018-07-09 11:01:46 +00:00
|
|
|
<vn-horizontal ng-repeat="insurance in classification.insurances track by insurance.id">
|
2018-03-28 13:07:48 +00:00
|
|
|
<vn-one>
|
2018-05-07 06:33:45 +00:00
|
|
|
<vn-label-value label="Credit"
|
|
|
|
value="{{::insurance.credit}}">
|
|
|
|
</vn-label-value>
|
2018-03-28 13:07:48 +00:00
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
2018-05-07 06:33:45 +00:00
|
|
|
<vn-label-value label="Grade"
|
|
|
|
value="{{::insurance.grade}}">
|
|
|
|
</vn-label-value>
|
2018-03-28 13:07:48 +00:00
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
2018-05-07 06:33:45 +00:00
|
|
|
<vn-label-value label="Date"
|
|
|
|
value="{{::insurance.created | date:'dd/MM/yyyy' }}">
|
|
|
|
</vn-label-value>
|
2018-03-28 13:07:48 +00:00
|
|
|
</vn-one>
|
|
|
|
</vn-horizontal>
|
2018-03-14 10:36:57 +00:00
|
|
|
</vn-vertical>
|
2018-05-23 12:26:51 +00:00
|
|
|
<a vn-auto ui-sref="client.card.creditInsurance.insurance.index({classificationId: {{classification.id}}})">
|
2018-05-31 05:59:42 +00:00
|
|
|
<vn-icon-button icon="desktop_windows" vn-tooltip="View credits"></vn-icon-button>
|
2018-03-14 10:36:57 +00:00
|
|
|
</a>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-one>
|
|
|
|
</vn-horizontal>
|
2018-08-03 05:52:37 +00:00
|
|
|
<vn-horizontal ng-if="model.data.length == 0">
|
|
|
|
<vn-one ad-small translate>
|
|
|
|
No results
|
|
|
|
</vn-one>
|
|
|
|
</vn-horizontal>
|
2018-03-14 10:36:57 +00:00
|
|
|
</vn-card>
|
|
|
|
<vn-float-button
|
|
|
|
ng-if="$ctrl.canCreateNew()"
|
2018-05-22 09:44:24 +00:00
|
|
|
vn-tooltip="New contract"
|
2018-03-14 10:36:57 +00:00
|
|
|
fixed-bottom-right
|
2018-05-23 12:26:51 +00:00
|
|
|
ui-sref="client.card.creditInsurance.create"
|
2018-03-14 10:36:57 +00:00
|
|
|
icon="add"
|
2018-04-23 09:17:30 +00:00
|
|
|
vn-bind="+"
|
2018-03-14 10:36:57 +00:00
|
|
|
label="Add">
|
|
|
|
</vn-float-button>
|
2018-03-28 13:07:48 +00:00
|
|
|
</vn-vertical>
|
|
|
|
<vn-confirm
|
|
|
|
vn-id="close-contract"
|
|
|
|
on-response="$ctrl.returnDialog(response)"
|
|
|
|
question="Close contract"
|
|
|
|
message="Are you sure you want to close this contract?">
|
|
|
|
</vn-confirm>
|