salix/modules/worker/front/index/index.html

59 lines
2.3 KiB
HTML
Raw Normal View History

2019-01-28 15:24:45 +00:00
<vn-crud-model
vn-id="model"
url="/agency/api/Workers"
2019-01-29 15:37:59 +00:00
include="::$ctrl.include"
2019-01-28 15:24:45 +00:00
limit="20"
2019-01-30 12:32:25 +00:00
data="workers">
2019-01-28 15:24:45 +00:00
</vn-crud-model>
2019-01-30 22:47:06 +00:00
<div class="content-block">
2019-01-28 15:24:45 +00:00
<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"
2019-01-29 20:00:27 +00:00
ui-sref="worker.card.summary({id: worker.id})"
2019-01-28 15:24:45 +00:00
translate-attr="{title: 'View worker'}"
class="vn-list-item">
2019-01-30 12:32:25 +00:00
<vn-horizontal>
2019-01-28 15:24:45 +00:00
<vn-one>
<h6>{{::worker.user.nickname}}</h6>
2019-01-28 15:24:45 +00:00
<vn-label-value label="Id"
value="{{::worker.id}}">
</vn-label-value>
2019-01-29 15:37:59 +00:00
<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}}">
2019-01-28 15:24:45 +00:00
</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-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>