2018-06-07 21:47:19 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Clients"
|
2018-07-26 05:46:25 +00:00
|
|
|
order="id DESC"
|
2018-06-08 11:26:06 +00:00
|
|
|
limit="8"
|
2019-10-02 19:02:49 +00:00
|
|
|
data="clients">
|
2018-06-07 21:47:19 +00:00
|
|
|
</vn-crud-model>
|
2019-10-02 19:02:49 +00:00
|
|
|
<div class="content-block vn-w-sm">
|
2019-10-18 19:54:13 +00:00
|
|
|
<vn-card class="vn-pa-md">
|
2019-10-02 19:02:49 +00:00
|
|
|
<vn-searchbar
|
|
|
|
panel="vn-client-search-panel"
|
|
|
|
model="model"
|
|
|
|
expr-builder="$ctrl.exprBuilder(param, value)"
|
|
|
|
info="Search client by id or name"
|
|
|
|
vn-focus>
|
|
|
|
</vn-searchbar>
|
|
|
|
</vn-card>
|
|
|
|
<vn-data-viewer
|
|
|
|
model="model"
|
2019-10-04 22:16:57 +00:00
|
|
|
class="vn-my-md">
|
2019-10-02 19:02:49 +00:00
|
|
|
<vn-card>
|
|
|
|
<div class="vn-list">
|
|
|
|
<a
|
|
|
|
ng-repeat="client in clients track by client.id"
|
2019-10-26 10:04:48 +00:00
|
|
|
ui-sref="client.card.summary(::{id: client.id})"
|
2019-10-02 19:02:49 +00:00
|
|
|
translate-attr="{title: 'View client'}"
|
|
|
|
class="vn-list-item searchResult">
|
|
|
|
<vn-horizontal ng-click="$ctrl.onClick($event)">
|
|
|
|
<vn-one>
|
|
|
|
<h6>{{::client.name}}</h6>
|
2019-10-26 10:04:48 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Id"
|
2019-10-02 19:02:49 +00:00
|
|
|
value="{{::client.id}}">
|
|
|
|
</vn-label-value>
|
2019-10-26 10:04:48 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Phone"
|
2019-10-02 19:02:49 +00:00
|
|
|
value="{{::client.phone | phone}}">
|
|
|
|
</vn-label-value>
|
2019-10-26 10:04:48 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Town/City"
|
2019-10-02 19:02:49 +00:00
|
|
|
value="{{::client.city}}">
|
|
|
|
</vn-label-value>
|
2019-10-26 10:04:48 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Email"
|
2019-10-02 19:02:49 +00:00
|
|
|
value="{{::client.email}}">
|
|
|
|
</vn-label-value>
|
|
|
|
</vn-one>
|
|
|
|
<vn-horizontal class="buttons">
|
|
|
|
<vn-icon-button
|
|
|
|
ng-click="$ctrl.filterTickets(client, $event)"
|
|
|
|
vn-tooltip="Client tickets"
|
|
|
|
icon="icon-ticket">
|
|
|
|
</vn-icon-button>
|
|
|
|
<vn-icon-button
|
|
|
|
ng-click="$ctrl.openSummary(client, $event)"
|
|
|
|
vn-tooltip="Preview"
|
|
|
|
icon="desktop_windows">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-horizontal>
|
|
|
|
</a>
|
|
|
|
</div>
|
2017-01-31 13:13:06 +00:00
|
|
|
</vn-card>
|
2019-10-02 19:02:49 +00:00
|
|
|
</vn-data-viewer>
|
2017-01-31 13:13:06 +00:00
|
|
|
</div>
|
2019-10-02 19:02:49 +00:00
|
|
|
<a ui-sref="client.create"
|
|
|
|
vn-tooltip="New client"
|
|
|
|
vn-bind="+"
|
|
|
|
fixed-bottom-right>
|
2018-03-01 20:18:43 +00:00
|
|
|
<vn-float-button icon="person_add"></vn-float-button>
|
|
|
|
</a>
|
|
|
|
<vn-dialog class="dialog-summary"
|
|
|
|
vn-id="dialog-summary-client">
|
|
|
|
<tpl-body>
|
2019-10-02 19:02:49 +00:00
|
|
|
<vn-client-summary
|
|
|
|
client="$ctrl.clientSelected">
|
|
|
|
</vn-client-summary>
|
2018-03-01 20:18:43 +00:00
|
|
|
</tpl-body>
|
2019-09-05 11:06:40 +00:00
|
|
|
</vn-dialog>
|
|
|
|
<vn-scroll-up></vn-scroll-up>
|