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

75 lines
2.9 KiB
HTML
Raw Normal View History

<vn-crud-model
vn-id="model"
url="/item/api/Clients"
2018-07-26 05:46:25 +00:00
order="id DESC"
limit="8"
data="clients"
auto-load="false">
</vn-crud-model>
2019-01-30 22:47:06 +00:00
<div class="content-block">
2018-03-01 20:18:43 +00:00
<div class="vn-list">
<vn-card pad-medium-h>
<vn-searchbar
panel="vn-client-search-panel"
model="model"
expr-builder="$ctrl.exprBuilder(param, value)"
2019-04-12 12:33:08 +00:00
info="Search client by id or name"
vn-focus>
</vn-searchbar>
</vn-card>
<vn-card margin-medium-v>
2019-02-21 09:10:38 +00:00
<a
ng-repeat="client in clients track by client.id"
2019-02-21 09:10:38 +00:00
ui-sref="client.card.summary({ id: {{::client.id}} })"
translate-attr="{title: 'View client'}"
class="vn-list-item searchResult">
<vn-horizontal ng-click="$ctrl.onClick($event)">
<vn-one>
<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-one>
<vn-horizontal class="buttons">
2019-02-21 10:53:19 +00:00
<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)"
2019-02-21 09:10:38 +00:00
vn-tooltip="Preview"
icon="desktop_windows">
2019-02-21 10:53:19 +00:00
</vn-icon-button>
2019-02-21 09:10:38 +00:00
</vn-horizontal>
</vn-horizontal>
</a>
<vn-empty-rows translate ng-if="model.data.length === 0">
No results
</vn-empty-rows>
<vn-empty-rows translate ng-if="model.data === null">
Enter a new search
</vn-empty-rows>
</vn-card>
2019-01-20 17:48:03 +00:00
<vn-pagination model="model"></vn-pagination>
</div>
</div>
2018-07-25 13:14:03 +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>
<vn-client-summary client="$ctrl.clientSelected"></vn-client-summary>
</tpl-body>
2019-09-05 11:06:40 +00:00
</vn-dialog>
<vn-scroll-up></vn-scroll-up>