2019-10-02 17:24:42 +00:00
|
|
|
<vn-data-viewer
|
|
|
|
data="$ctrl.classifications"
|
|
|
|
class="vn-w-md">
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-md">
|
2019-10-02 17:24:42 +00:00
|
|
|
<vn-horizontal
|
|
|
|
ng-repeat="classification in $ctrl.classifications track by classification.id"
|
2019-10-04 22:16:57 +00:00
|
|
|
class="vn-pb-md insurance"
|
2019-10-02 17:24:42 +00:00
|
|
|
style="align-items: center;">
|
|
|
|
<vn-one
|
2019-10-06 18:13:24 +00:00
|
|
|
class="vn-pa-sm border-solid border-radius"
|
2019-10-02 17:24:42 +00:00
|
|
|
ng-class="{'item-hightlight': !classification.finished,'item-disabled': classification.finished}">
|
|
|
|
<vn-horizontal style="align-items: center;">
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-none class="vn-px-md">
|
2019-10-02 17:24:42 +00:00
|
|
|
<vn-icon-button
|
|
|
|
ng-if="!classification.finished"
|
|
|
|
icon="lock"
|
|
|
|
vn-tooltip="Close contract"
|
|
|
|
ng-click="$ctrl.closeContract(classification)">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-none>
|
2019-10-06 18:13:24 +00:00
|
|
|
<vn-one class="border-solid-right">
|
2019-10-18 23:18:25 +00:00
|
|
|
<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>
|
2019-10-02 17:24:42 +00:00
|
|
|
</vn-one>
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-vertical vn-one class="vn-px-md">
|
2019-10-02 17:24:42 +00:00
|
|
|
<vn-horizontal ng-repeat="insurance in classification.insurances track by insurance.id">
|
|
|
|
<vn-one>
|
|
|
|
<vn-label-value label="Credit"
|
|
|
|
value="{{::insurance.credit}}">
|
|
|
|
</vn-label-value>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
|
|
|
<vn-label-value label="Grade"
|
|
|
|
value="{{::insurance.grade}}">
|
|
|
|
</vn-label-value>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
|
|
|
<vn-label-value label="Date"
|
2019-10-18 23:18:25 +00:00
|
|
|
value="{{::insurance.created | date:'dd/MM/yyyy' }}">
|
2019-10-02 17:24:42 +00:00
|
|
|
</vn-label-value>
|
|
|
|
</vn-one>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-vertical>
|
|
|
|
<a vn-auto ui-sref="client.card.creditInsurance.insurance.index({classificationId: {{classification.id}}})">
|
|
|
|
<vn-icon-button icon="desktop_windows" vn-tooltip="View credits"></vn-icon-button>
|
|
|
|
</a>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-one>
|
|
|
|
</vn-horizontal>
|
2018-03-14 10:36:57 +00:00
|
|
|
</vn-card>
|
2019-10-02 17:24:42 +00:00
|
|
|
</vn-data-viewer>
|
2019-10-01 14:17:57 +00:00
|
|
|
<vn-float-button
|
|
|
|
ng-if="$ctrl.canCreateNew()"
|
|
|
|
vn-tooltip="New contract"
|
|
|
|
fixed-bottom-right
|
|
|
|
ui-sref="client.card.creditInsurance.create"
|
|
|
|
icon="add"
|
|
|
|
vn-bind="+"
|
|
|
|
label="Add">
|
|
|
|
</vn-float-button>
|
2018-03-28 13:07:48 +00:00
|
|
|
<vn-confirm
|
|
|
|
vn-id="close-contract"
|
2020-07-29 08:47:48 +00:00
|
|
|
on-accept="$ctrl.returnDialog()"
|
2018-03-28 13:07:48 +00:00
|
|
|
question="Close contract"
|
|
|
|
message="Are you sure you want to close this contract?">
|
|
|
|
</vn-confirm>
|