2018-03-23 10:33:54 +00:00
|
|
|
<vn-vertical>
|
2018-03-14 10:36:57 +00:00
|
|
|
<vn-card pad-large>
|
|
|
|
<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;">
|
|
|
|
<vn-one border-radius class="pad-small border-solid" ng-class="{'bg-dark-item': !classification.finished,'bg-opacity-item': classification.finished}">
|
|
|
|
<vn-horizontal style="align-items: center;">
|
|
|
|
<vn-none pad-medium-h style="color:#FFA410;">
|
|
|
|
<i class="material-icons pointer"
|
|
|
|
ng-if="!classification.finished"
|
|
|
|
vn-tooltip="Close contract"
|
|
|
|
tooltip-position="left"
|
|
|
|
ng-click="$ctrl.closeContract(classification)">lock_outline</i>
|
|
|
|
</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>
|
|
|
|
<vn-one ng-repeat="insurance in classification.creditInsurances track by insurance.id">
|
|
|
|
<vn-label translate>Credit</vn-label> <span>{{insurance.credit}}</span>
|
|
|
|
<vn-label translate>Grade</vn-label>
|
|
|
|
<span ng-if="!insurance.grade">-</span>
|
|
|
|
<span ng-if="insurance.grade">{{insurance.grade}}</span>
|
|
|
|
<vn-label translate>Date</vn-label> <span>{{insurance.created | date:'dd/MM/yyyy' }}</span>
|
|
|
|
</vn-one>
|
|
|
|
</vn-vertical>
|
|
|
|
<a vn-auto ui-sref="clientCard.creditInsurance.list({classificationId: {{classification.id}}})">
|
|
|
|
<vn-icon-button icon="edit" vn-tooltip="Edit contract" tooltip-position="left"></vn-icon-button>
|
|
|
|
</a>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-one>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
<vn-float-button
|
|
|
|
ng-if="$ctrl.canCreateNew()"
|
|
|
|
vn-tooltip="New contract"
|
|
|
|
tooltip-position="left"
|
|
|
|
fixed-bottom-right
|
|
|
|
ui-sref="clientCard.creditClassification.create"
|
|
|
|
icon="add"
|
|
|
|
label="Add">
|
|
|
|
</vn-float-button>
|
|
|
|
</vn-vertical>
|