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

58 lines
1.9 KiB
HTML
Raw Normal View History

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">
2023-01-03 07:09:46 +00:00
<a
2020-03-13 19:33:12 +00:00
ng-repeat="worker in model.data track by worker.id"
2019-11-10 10:08:44 +00:00
ui-sref="worker.card.summary({id: worker.id})"
translate-attr="{title: 'View worker'}"
class="vn-item search-result">
<vn-item-section>
<h6>{{::worker.nickname}}</h6>
2023-01-03 07:09:46 +00:00
<vn-label-value label="Id"
2019-11-10 10:08:44 +00:00
value="{{::worker.id}}">
</vn-label-value>
2023-01-03 07:09:46 +00:00
<vn-label-value label="User"
2019-11-10 10:08:44 +00:00
value="{{::worker.userName}}">
</vn-label-value>
2023-01-03 07:09:46 +00:00
<vn-label-value label="Email"
2019-11-10 10:08:44 +00:00
value="{{::worker.email}}">
</vn-label-value>
2023-01-03 07:09:46 +00:00
<vn-label-value label="Department"
2019-11-10 10:08:44 +00:00
value="{{::worker.department}}">
</vn-label-value>
</vn-item-section>
<vn-item-section side>
2020-02-03 13:03:09 +00:00
<vn-icon-button
ng-click="$ctrl.goToTimeControl($event, worker.id)"
vn-tooltip="Time control"
2020-02-03 13:03:09 +00:00
icon="access_time">
</vn-icon-button>
2019-11-10 10:08:44 +00:00
<vn-icon-button
ng-click="$ctrl.preview($event, worker)"
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>
2023-01-03 07:09:46 +00:00
<a ui-sref="worker.create"
vn-tooltip="New worker"
vn-bind="+"
vn-acl="hr"
vn-acl-action="remove"
2022-11-14 14:19:16 +00:00
fixed-bottom-right>
<vn-float-button icon="person_add"></vn-float-button>
</a>
2019-10-26 23:30:01 +00:00
<vn-popup vn-id="preview">
<vn-worker-summary
worker="$ctrl.selectedWorker">
</vn-worker-summary>
2023-01-03 07:09:46 +00:00
</vn-popup>