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

68 lines
2.0 KiB
HTML
Raw Normal View History

<vn-crud-model
vn-id="model"
url="Clients"
2018-07-26 05:46:25 +00:00
order="id DESC"
limit="8"
data="clients">
</vn-crud-model>
2019-11-10 10:08:44 +00:00
<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>
2019-11-10 10:08:44 +00:00
</vn-data-viewer>
<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>
2019-10-26 23:30:01 +00:00
<vn-popup vn-id="dialog-summary-client">
<vn-client-summary
client="$ctrl.clientSelected">
</vn-client-summary>
</vn-popup>
2019-09-05 11:06:40 +00:00
<vn-scroll-up></vn-scroll-up>