salix/modules/client/front/credit-insurance/index/index.html

70 lines
3.2 KiB
HTML
Raw Normal View History

2019-01-20 17:48:03 +00:00
<div compact>
<vn-card pad-large>
2019-02-08 16:49:51 +00:00
<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="{'item-hightlight': !classification.finished,'item-disabled': classification.finished}">
<vn-horizontal style="align-items: center;">
2019-02-08 16:49:51 +00:00
<vn-none pad-medium-h>
<vn-icon-button
ng-if="!classification.finished"
icon="lock"
vn-tooltip="Close contract"
ng-click="$ctrl.closeContract(classification)">
</vn-icon-button>
</vn-none>
<vn-one border-solid-right>
2019-02-27 16:04:00 +00:00
<div><vn-label translate>Since</vn-label> {{::classification.started | dateTime:'dd/MM/yyyy'}}</div>
<div><vn-label translate>To</vn-label> {{classification.finished | dateTime:'dd/MM/yyyy'}}</div>
</vn-one>
<vn-vertical vn-one pad-medium-h>
<vn-horizontal ng-repeat="insurance in classification.insurances track by insurance.id">
2018-03-28 13:07:48 +00:00
<vn-one>
<vn-label-value label="Credit"
value="{{::insurance.credit}}">
</vn-label-value>
2018-03-28 13:07:48 +00:00
</vn-one>
<vn-one>
<vn-label-value label="Grade"
value="{{::insurance.grade}}">
</vn-label-value>
2018-03-28 13:07:48 +00:00
</vn-one>
<vn-one>
<vn-label-value label="Date"
2019-02-27 16:04:00 +00:00
value="{{::insurance.created | dateTime:'dd/MM/yyyy' }}">
</vn-label-value>
2018-03-28 13:07:48 +00:00
</vn-one>
</vn-horizontal>
</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>
</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>
</vn-card>
<vn-float-button
ng-if="$ctrl.canCreateNew()"
vn-tooltip="New contract"
fixed-bottom-right
2018-05-23 12:26:51 +00:00
ui-sref="client.card.creditInsurance.create"
icon="add"
vn-bind="+"
label="Add">
</vn-float-button>
2019-01-20 17:48:03 +00:00
</div>
2018-03-28 13:07:48 +00:00
<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>