68 lines
2.0 KiB
HTML
68 lines
2.0 KiB
HTML
<vn-crud-model
|
|
vn-id="model"
|
|
url="Clients"
|
|
order="id DESC"
|
|
limit="8"
|
|
data="clients">
|
|
</vn-crud-model>
|
|
<vn-auto-search
|
|
model="model"
|
|
expr-builder="$ctrl.exprBuilder(param, value)">
|
|
</vn-auto-search>
|
|
<vn-data-viewer
|
|
model="model"
|
|
class="vn-w-sm">
|
|
<vn-card>
|
|
<div class="vn-list separated">
|
|
<a
|
|
ng-repeat="client in clients track by client.id"
|
|
ui-sref="client.card.summary(::{id: client.id})"
|
|
translate-attr="{title: 'View client'}"
|
|
class="vn-item search-result">
|
|
<vn-item-section>
|
|
<h6>{{::client.name}}</h6>
|
|
<vn-label-value
|
|
label="Id"
|
|
value="{{::client.id}}">
|
|
</vn-label-value>
|
|
<vn-label-value
|
|
label="Phone"
|
|
value="{{::client.phone | phone}}">
|
|
</vn-label-value>
|
|
<vn-label-value
|
|
label="Town/City"
|
|
value="{{::client.city}}">
|
|
</vn-label-value>
|
|
<vn-label-value
|
|
label="Email"
|
|
value="{{::client.email}}">
|
|
</vn-label-value>
|
|
</vn-item-section>
|
|
<vn-item-section side>
|
|
<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-item-section>
|
|
</a>
|
|
</div>
|
|
</vn-card>
|
|
</vn-data-viewer>
|
|
<a ui-sref="client.create"
|
|
vn-tooltip="New client"
|
|
vn-bind="+"
|
|
fixed-bottom-right>
|
|
<vn-float-button icon="person_add"></vn-float-button>
|
|
</a>
|
|
<vn-popup vn-id="dialog-summary-client">
|
|
<vn-client-summary
|
|
client="$ctrl.clientSelected">
|
|
</vn-client-summary>
|
|
</vn-popup>
|
|
<vn-scroll-up></vn-scroll-up> |