67 lines
2.7 KiB
HTML
67 lines
2.7 KiB
HTML
<vn-crud-model
|
|
vn-id="model"
|
|
url="/agency/api/Workers"
|
|
include="::$ctrl.include"
|
|
limit="20"
|
|
data="workers">
|
|
</vn-crud-model>
|
|
<div class="content-block">
|
|
<div class="vn-list">
|
|
<vn-card pad-medium-h>
|
|
<vn-searchbar
|
|
panel="vn-worker-search-panel"
|
|
model="model"
|
|
expr-builder="$ctrl.exprBuilder(param, value)"
|
|
vn-focus>
|
|
</vn-searchbar>
|
|
</vn-card>
|
|
<vn-card margin-medium-v>
|
|
<a ng-repeat="worker in workers track by worker.id"
|
|
ui-sref="worker.card.summary({id: worker.id})"
|
|
translate-attr="{title: 'View worker'}"
|
|
class="vn-list-item">
|
|
<vn-horizontal>
|
|
<vn-one>
|
|
<h6>{{::worker.firstName}} {{::worker.name}}</h6>
|
|
<vn-label-value label="Id"
|
|
value="{{::worker.id}}">
|
|
</vn-label-value>
|
|
<vn-label-value label="User"
|
|
value="{{::worker.user.name}}">
|
|
</vn-label-value>
|
|
<vn-label-value label="Email"
|
|
value="{{::worker.user.email}}">
|
|
</vn-label-value>
|
|
<vn-label-value label="Fiscal identifier"
|
|
value="{{::worker.client.fi}}">
|
|
</vn-label-value>
|
|
<vn-label-value label="Department"
|
|
value="{{::worker.department.department}}">
|
|
</vn-label-value>
|
|
</vn-one>
|
|
<vn-horizontal class="buttons">
|
|
<vn-icon
|
|
ng-click="$ctrl.preview($event, worker)"
|
|
vn-tooltip="Preview"
|
|
icon="desktop_windows">
|
|
</vn-icon>
|
|
</vn-horizontal>
|
|
</vn-horizontal>
|
|
</a>
|
|
<vn-empty-rows class="vn-list-item" style="text-align: center"
|
|
ng-if="model.data.length === 0" translate>
|
|
No results
|
|
</vn-empty-rows>
|
|
<vn-empty-rows class="vn-list-item" style="text-align: center"
|
|
ng-if="model.data === null" translate>
|
|
Enter a new search
|
|
</vn-empty-rows>
|
|
</vn-card>
|
|
<vn-pagination model="model"></vn-pagination>
|
|
</div>
|
|
</div>
|
|
<vn-dialog vn-id="preview" class="dialog-summary">
|
|
<tpl-body>
|
|
<vn-worker-summary worker="$ctrl.selectedWorker"></vn-worker-summary>
|
|
</tpl-body>
|
|
</vn-dialog> |