salix/modules/client/front/descriptor/index.html

140 lines
4.5 KiB
HTML
Raw Normal View History

2019-01-21 14:21:24 +00:00
<div class="vn-descriptor">
<div class="header">
<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>
<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>
2020-04-25 09:50:04 +00:00
<vn-icon-button
2019-01-07 07:49:01 +00:00
icon="more_vert"
2020-04-25 09:50:04 +00:00
vn-popover="menu">
</vn-icon-button>
</div>
2019-01-21 14:21:24 +00:00
<div class="body">
<div class="attributes">
<h5>{{$ctrl.client.name}}</h5>
2020-04-25 09:50:04 +00:00
<vn-label-value
label="Id"
2019-01-21 14:21:24 +00:00
value="{{$ctrl.client.id}}">
</vn-label-value>
2020-04-25 09:50:04 +00:00
<vn-label-value
label="Phone"
2019-01-21 14:21:24 +00:00
value="{{$ctrl.client.phone | phone}}">
</vn-label-value>
2020-04-25 09:50:04 +00:00
<vn-label-value
label="Credit"
value="{{$ctrl.client.credit | currency: 'EUR': 2}}">
2019-01-21 14:21:24 +00:00
</vn-label-value>
2020-04-25 09:50:04 +00:00
<vn-label-value
label="Secured credit"
value="{{$ctrl.client.creditInsurance | currency: 'EUR': 2}}">
2019-01-21 14:21:24 +00:00
</vn-label-value>
2020-04-25 09:50:04 +00:00
<vn-label-value
label="Sales person"
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>
2020-04-25 09:50:04 +00:00
<div class="quicklinks">
<a class="vn-button colored"
vn-tooltip="Client ticket list"
ui-sref="ticket.index({q: $ctrl.filter})">
<vn-icon icon="icon-ticket"></vn-icon>
</a>
<a class="vn-button colored"
vn-tooltip="New order"
ui-sref="order.create({clientFk: $ctrl.client.id})">
<vn-icon icon="icon-basketadd"></vn-icon>
</a>
</div>
<!--
2019-10-18 19:36:30 +00:00
<vn-quick-links
links="$ctrl.quicklinks">
</vn-quick-links>
2020-04-25 09:50:04 +00:00
-->
2019-01-21 14:21:24 +00:00
</div>
2019-11-21 13:00:27 +00:00
</div>
2020-04-25 09:50:04 +00:00
<vn-menu vn-id="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>
</vn-menu>
<vn-client-sms
vn-id="sms"
sms="$ctrl.newSMS">
</vn-client-sms>
2020-02-11 12:25:41 +00:00
<vn-dialog
vn-id="consumerReportDialog"
2020-04-25 09:50:04 +00:00
on-accept="$ctrl.onConsumerReportAccept()">
2020-02-11 12:25:41 +00:00
<tpl-body>
<div>
<h5 style="text-align: center">
2020-02-25 06:51:16 +00:00
<span translate>Send consumer report</span>
2020-02-11 12:25:41 +00:00
</h5>
<vn-date-picker
vn-id="from"
vn-one
ng-model="$ctrl.from"
2020-02-25 06:51:16 +00:00
label="From date"
2020-02-11 12:25:41 +00:00
vn-focus>
</vn-date-picker>
<vn-date-picker
vn-id="to"
vn-one
ng-model="$ctrl.to"
2020-02-25 06:51:16 +00:00
label="To date">
2020-02-11 12:25:41 +00:00
</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>