101 lines
3.6 KiB
HTML
101 lines
3.6 KiB
HTML
<div class="vn-descriptor">
|
|
<div class="header">
|
|
<a translate-attr="{title: 'Return to module index'}" ui-sref="client.index">
|
|
<vn-icon icon="chevron_left"></vn-icon>
|
|
</a>
|
|
<a translate-attr="{title: 'Preview'}" ui-sref="client.card.summary({id: $ctrl.client.id})">
|
|
<vn-icon icon="desktop_windows"></vn-icon>
|
|
</a>
|
|
<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>
|
|
</div>
|
|
<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"
|
|
value="{{$ctrl.client.credit | currency: 'EUR': 2}}">
|
|
</vn-label-value>
|
|
<vn-label-value label="Secured credit"
|
|
value="{{$ctrl.client.creditInsurance | currency: 'EUR': 2}}">
|
|
</vn-label-value>
|
|
<vn-label-value label="Sales person"
|
|
value="{{$ctrl.client.salesPerson.user.nickname}}">
|
|
</vn-label-value>
|
|
</div>
|
|
<div class="icons">
|
|
<vn-icon
|
|
vn-tooltip="Client inactive"
|
|
icon="icon-disabled"
|
|
ng-class="{bright: $ctrl.client.isActive == false}">
|
|
</vn-icon>
|
|
<vn-icon
|
|
vn-tooltip="Client frozen"
|
|
icon="icon-frozen"
|
|
ng-class="{bright: $ctrl.client.isFreezed == true}">
|
|
</vn-icon>
|
|
<vn-icon
|
|
vn-tooltip="Web Account inactive"
|
|
icon="icon-noweb"
|
|
ng-class="{bright: $ctrl.client.account.active == false}">
|
|
</vn-icon>
|
|
<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>
|
|
<vn-quick-links
|
|
links="$ctrl.quicklinks">
|
|
</vn-quick-links>
|
|
</div>
|
|
</div>
|
|
<!-- SMS Dialog -->
|
|
<vn-client-sms vn-id="sms" sms="$ctrl.newSMS"></vn-client-sms>
|
|
<!-- SMS Dialog -->
|
|
<vn-dialog
|
|
vn-id="consumerReportDialog"
|
|
on-response="$ctrl.sendConsumerReport($response)">
|
|
<tpl-body>
|
|
<div>
|
|
<h5 style="text-align: center">
|
|
<span translate>Send consumer report</span>
|
|
</h5>
|
|
<vn-date-picker
|
|
vn-id="from"
|
|
vn-one
|
|
ng-model="$ctrl.from"
|
|
label="From date"
|
|
vn-focus>
|
|
</vn-date-picker>
|
|
<vn-date-picker
|
|
vn-id="to"
|
|
vn-one
|
|
ng-model="$ctrl.to"
|
|
label="To date">
|
|
</vn-date-picker>
|
|
</div>
|
|
</tpl-body>
|
|
<tpl-buttons>
|
|
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>
|
|
<button response="accept" translate>Accept</button>
|
|
</tpl-buttons>
|
|
</vn-dialog> |