2019-01-21 14:21:24 +00:00
|
|
|
<div class="vn-descriptor">
|
|
|
|
<div class="header">
|
2018-05-25 08:03:45 +00:00
|
|
|
<a translate-attr="{title: 'Return to module index'}" ui-sref="client.index">
|
2018-03-01 15:52:35 +00:00
|
|
|
<vn-icon icon="chevron_left"></vn-icon>
|
|
|
|
</a>
|
2018-07-27 07:44:25 +00:00
|
|
|
<a translate-attr="{title: 'Preview'}" ui-sref="client.card.summary({id: $ctrl.client.id})">
|
2018-03-01 22:38:14 +00:00
|
|
|
<vn-icon icon="desktop_windows"></vn-icon>
|
2018-03-01 15:52:35 +00:00
|
|
|
</a>
|
2019-01-07 07:49:01 +00:00
|
|
|
<vn-icon-menu
|
|
|
|
vn-id="more-button"
|
|
|
|
icon="more_vert"
|
|
|
|
show-filter="false"
|
|
|
|
value-field="callback"
|
|
|
|
translate-fields="['name']"
|
|
|
|
data="$ctrl.moreOptions"
|
|
|
|
on-change="$ctrl.onMoreChange(value)"
|
|
|
|
on-open="$ctrl.onMoreOpen()">
|
|
|
|
</vn-icon-menu>
|
2018-02-12 12:16:49 +00:00
|
|
|
</div>
|
2019-01-21 14:21:24 +00:00
|
|
|
<div class="body">
|
|
|
|
<div class="attributes">
|
|
|
|
<h5>{{$ctrl.client.name}}</h5>
|
|
|
|
<vn-label-value label="Id"
|
|
|
|
value="{{$ctrl.client.id}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Phone"
|
|
|
|
value="{{$ctrl.client.phone | phone}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Credit"
|
2019-01-31 10:44:03 +00:00
|
|
|
value="{{$ctrl.client.credit | currency: 'EUR': 2}}">
|
2019-01-21 14:21:24 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Secured credit"
|
2019-01-31 10:44:03 +00:00
|
|
|
value="{{$ctrl.client.creditInsurance | currency: 'EUR': 2}}">
|
2019-01-21 14:21:24 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Sales person"
|
2019-01-31 13:14:39 +00:00
|
|
|
value="{{$ctrl.client.salesPerson.user.nickname}}">
|
2019-01-21 14:21:24 +00:00
|
|
|
</vn-label-value>
|
|
|
|
</div>
|
|
|
|
<div class="icons">
|
|
|
|
<vn-icon
|
|
|
|
vn-tooltip="Client inactive"
|
|
|
|
icon="icon-disabled"
|
|
|
|
ng-class="{bright: $ctrl.client.isActive == false}">
|
2018-09-04 09:49:00 +00:00
|
|
|
</vn-icon>
|
2019-01-21 14:21:24 +00:00
|
|
|
<vn-icon
|
2019-01-30 13:13:47 +00:00
|
|
|
vn-tooltip="Client frozen"
|
2019-01-21 14:21:24 +00:00
|
|
|
icon="icon-frozen"
|
|
|
|
ng-class="{bright: $ctrl.client.isFreezed == true}">
|
2018-09-04 09:49:00 +00:00
|
|
|
</vn-icon>
|
2019-01-21 14:21:24 +00:00
|
|
|
<vn-icon
|
|
|
|
vn-tooltip="Web Account inactive"
|
|
|
|
icon="icon-noweb"
|
|
|
|
ng-class="{bright: $ctrl.client.account.active == false}">
|
2018-09-04 09:49:00 +00:00
|
|
|
</vn-icon>
|
2019-01-21 14:21:24 +00:00
|
|
|
<vn-icon
|
|
|
|
vn-tooltip="Client has debt"
|
|
|
|
icon="icon-risk"
|
|
|
|
ng-class="{bright: $ctrl.client.debt > $ctrl.client.credit}">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon
|
|
|
|
vn-tooltip="Client not checked"
|
|
|
|
icon="icon-no036"
|
|
|
|
ng-class="{bright: $ctrl.client.isTaxDataChecked == false}">
|
|
|
|
</vn-icon>
|
|
|
|
</div>
|
2019-10-18 19:36:30 +00:00
|
|
|
<vn-quick-links
|
|
|
|
links="$ctrl.quicklinks">
|
|
|
|
</vn-quick-links>
|
2019-01-21 14:21:24 +00:00
|
|
|
</div>
|
2019-11-21 13:00:27 +00:00
|
|
|
</div>
|
|
|
|
<!-- SMS Dialog -->
|
|
|
|
<vn-client-sms vn-id="sms" sms="$ctrl.newSMS"></vn-client-sms>
|
|
|
|
<!-- SMS Dialog -->
|