101 lines
3.3 KiB
HTML
101 lines
3.3 KiB
HTML
|
<vn-crud-model auto-load="true"
|
||
|
vn-id="model"
|
||
|
url="SalesMonitors/clientsFilter"
|
||
|
limit="6"
|
||
|
order="dated DESC">
|
||
|
</vn-crud-model>
|
||
|
<vn-horizontal class="header">
|
||
|
<vn-one translate>
|
||
|
Clients on website
|
||
|
</vn-one>
|
||
|
<vn-none>
|
||
|
<vn-icon
|
||
|
icon="refresh"
|
||
|
vn-tooltip="Refresh"
|
||
|
ng-click="model.refresh()">
|
||
|
</vn-icon>
|
||
|
</vn-none>
|
||
|
</vn-horizontal>
|
||
|
<vn-card>
|
||
|
<vn-table model="model" class="fixed-header scrollable sm">
|
||
|
<vn-thead>
|
||
|
<vn-tr>
|
||
|
<vn-th field="dated">Hour</vn-th>
|
||
|
<vn-th field="salesPersonFk" class="expendable">Salesperson</vn-th>
|
||
|
<vn-th field="clientFk">Client</vn-th>
|
||
|
</vn-tr>
|
||
|
</vn-thead>
|
||
|
<vn-tbody>
|
||
|
<vn-tr ng-repeat="visit in model.data">
|
||
|
<vn-td shrink-date>
|
||
|
<span class="chip">
|
||
|
{{::visit.dated | date: 'HH:mm'}}
|
||
|
</span>
|
||
|
</vn-td>
|
||
|
<vn-td class="shrink expendable">
|
||
|
<span
|
||
|
title="{{::visit.salesPerson}}"
|
||
|
vn-click-stop="workerDescriptor.show($event, visit.salesPersonFk)"
|
||
|
class="link">
|
||
|
{{::visit.salesPerson | dashIfEmpty}}
|
||
|
</span>
|
||
|
</vn-td>
|
||
|
<vn-td>
|
||
|
<span
|
||
|
title="{{::visit.clientName}}"
|
||
|
vn-click-stop="clientDescriptor.show($event, visit.clientFk)"
|
||
|
class="link">
|
||
|
{{::visit.clientName}}
|
||
|
</span>
|
||
|
</vn-td>
|
||
|
</vn-tr>
|
||
|
</vn-tbody>
|
||
|
</vn-table>
|
||
|
<div
|
||
|
ng-if="!model.data.length"
|
||
|
class="empty-rows vn-pa-sm"
|
||
|
translate>
|
||
|
No results
|
||
|
</div>
|
||
|
<vn-pagination
|
||
|
model="model"
|
||
|
class="vn-pt-xs"
|
||
|
scroll-selector="vn-monitor-sales-clients vn-table"
|
||
|
scroll-offset="100">
|
||
|
</vn-pagination>
|
||
|
</vn-card>
|
||
|
<vn-worker-descriptor-popover
|
||
|
vn-id="workerDescriptor">
|
||
|
</vn-worker-descriptor-popover>
|
||
|
<vn-client-descriptor-popover
|
||
|
vn-id="clientDescriptor">
|
||
|
</vn-client-descriptor-popover>
|
||
|
<vn-contextmenu vn-id="contextmenu" targets="['vn-monitor-sales-clients vn-table']" model="model"
|
||
|
expr-builder="$ctrl.exprBuilder(param, value)">
|
||
|
<slot-menu>
|
||
|
<vn-item translate
|
||
|
ng-if="contextmenu.isFilterAllowed()"
|
||
|
ng-click="contextmenu.filterBySelection()">
|
||
|
Filter by selection
|
||
|
</vn-item>
|
||
|
<vn-item translate
|
||
|
ng-if="contextmenu.isFilterAllowed()"
|
||
|
ng-click="contextmenu.excludeSelection()">
|
||
|
Exclude selection
|
||
|
</vn-item>
|
||
|
<vn-item translate
|
||
|
ng-if="contextmenu.isFilterAllowed()"
|
||
|
ng-click="contextmenu.removeFilter()">
|
||
|
Remove filter
|
||
|
</vn-item>
|
||
|
<vn-item translate
|
||
|
ng-click="contextmenu.removeAllFilters()">
|
||
|
Remove all filters
|
||
|
</vn-item>
|
||
|
<vn-item translate
|
||
|
ng-if="contextmenu.isActionAllowed()"
|
||
|
ng-click="contextmenu.copyValue()">
|
||
|
Copy value
|
||
|
</vn-item>
|
||
|
</slot-menu>
|
||
|
</vn-contextmenu>
|