129 lines
4.2 KiB
HTML
129 lines
4.2 KiB
HTML
<vn-descriptor-content module="client">
|
|
<slot-menu>
|
|
<ul class="vn-list">
|
|
<li>
|
|
<a class="vn-item"
|
|
ui-sref="ticket.create({clientFk: $ctrl.client.id})"
|
|
translate>
|
|
Simple ticket
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<div class="vn-item"
|
|
ng-click="$ctrl.showSMSDialog()"
|
|
translate>
|
|
Send SMS
|
|
</div>
|
|
</li>
|
|
<li>
|
|
<div class="vn-item"
|
|
ng-click="consumerReportDialog.show()"
|
|
translate>
|
|
Send consumer report
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</slot-menu>
|
|
<slot-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>
|
|
<div class="quicklinks">
|
|
<div ng-transclude="btnOne">
|
|
<vn-quick-link
|
|
tooltip="Client ticket list"
|
|
state="['ticket.index', {q: $ctrl.filter}]"
|
|
icon="icon-ticket">
|
|
</vn-quick-link>
|
|
</div>
|
|
<div ng-transclude="btnTwo">
|
|
<vn-quick-link
|
|
tooltip="New order"
|
|
state="['order.create', {clientFk: $ctrl.id}]"
|
|
icon="icon-basketadd">
|
|
</vn-quick-link>
|
|
</div>
|
|
<div ng-transclude="btnThree">
|
|
</div>
|
|
</div>
|
|
</slot-body>
|
|
</vn-descriptor-content>
|
|
<vn-client-sms
|
|
vn-id="sms"
|
|
sms="$ctrl.newSMS">
|
|
</vn-client-sms>
|
|
<vn-dialog
|
|
vn-id="consumerReportDialog"
|
|
on-accept="$ctrl.onConsumerReportAccept()">
|
|
<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> |