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

67 lines
2.1 KiB
HTML
Raw Permalink Normal View History

2020-03-13 19:33:12 +00:00
2019-11-10 10:08:44 +00:00
<vn-auto-search
2020-03-13 19:33:12 +00:00
model="model">
2019-11-10 10:08:44 +00:00
</vn-auto-search>
<vn-data-viewer
model="model"
class="vn-w-sm">
<vn-card>
<div class="vn-list separated">
<a
2020-03-13 19:33:12 +00:00
ng-repeat="client in model.data track by client.id"
2019-11-10 10:08:44 +00:00
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>
2020-01-17 06:24:57 +00:00
<vn-label-value
label="Phone"
value="{{::client.phone | phone}}">
</vn-label-value>
2019-11-10 10:08:44 +00:00
<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-show="client.isActive == false"
vn-tooltip="Client inactive"
icon="icon-disabled">
</vn-icon-button>
<vn-icon-button ng-show="client.isActive && client.isFreezed == true"
vn-tooltip="Client frozen"
icon="icon-frozen">
</vn-icon-button>
<vn-icon-button vn-anchor="{state: 'ticket.index', params: {q: {clientFk: client.id}}}"
2019-11-10 10:08:44 +00:00
vn-tooltip="Client tickets"
icon="icon-ticket">
</vn-icon-button>
<vn-icon-button
ng-click="$ctrl.openSummary(client, $event)"
vn-tooltip="Preview"
2020-11-24 07:22:54 +00:00
icon="preview">
2019-11-10 10:08:44 +00:00
</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>