2019-01-28 15:24:45 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Workers/filter"
|
2019-01-28 15:24:45 +00:00
|
|
|
limit="20"
|
2019-03-11 07:00:49 +00:00
|
|
|
order="id"
|
2019-01-30 12:32:25 +00:00
|
|
|
data="workers">
|
2019-01-28 15:24:45 +00:00
|
|
|
</vn-crud-model>
|
2019-10-02 19:02:49 +00:00
|
|
|
<div class="content-block vn-w-sm">
|
2019-10-18 19:54:13 +00:00
|
|
|
<vn-card class="vn-pa-md">
|
2019-10-18 19:36:30 +00:00
|
|
|
<vn-horizontal style="align-items: center;">
|
2019-10-02 19:02:49 +00:00
|
|
|
<vn-searchbar
|
|
|
|
panel="vn-worker-search-panel"
|
|
|
|
on-search="$ctrl.onSearch($params)"
|
|
|
|
info="Search workers by id, firstName, lastName or user name"
|
|
|
|
vn-focus>
|
|
|
|
</vn-searchbar>
|
|
|
|
<vn-icon-menu
|
|
|
|
vn-id="more-button"
|
|
|
|
icon="more_vert"
|
|
|
|
show-filter="false"
|
|
|
|
value-field="callback"
|
|
|
|
translate-fields="['name']"
|
|
|
|
data="$ctrl.moreOptions"
|
|
|
|
on-change="$ctrl.onMoreChange(value)">
|
|
|
|
</vn-icon-menu>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
<vn-data-viewer
|
|
|
|
model="model"
|
2019-10-04 22:16:57 +00:00
|
|
|
class="vn-my-md">
|
2019-10-02 19:02:49 +00:00
|
|
|
<vn-card>
|
|
|
|
<div class="vn-list">
|
|
|
|
<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 searchResult">
|
2019-03-12 14:04:09 +00:00
|
|
|
<vn-horizontal>
|
2019-10-02 19:02:49 +00:00
|
|
|
<vn-one>
|
|
|
|
<h6>{{::worker.nickname}}</h6>
|
|
|
|
<vn-label-value label="Id"
|
|
|
|
value="{{::worker.id}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="User"
|
|
|
|
value="{{::worker.userName}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Email"
|
|
|
|
value="{{::worker.email}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Department"
|
|
|
|
value="{{::worker.department}}">
|
|
|
|
</vn-label-value>
|
|
|
|
</vn-one>
|
|
|
|
<vn-horizontal class="buttons">
|
|
|
|
<vn-icon-button
|
|
|
|
ng-click="$ctrl.preview($event, worker)"
|
|
|
|
vn-tooltip="Preview"
|
|
|
|
icon="desktop_windows">
|
|
|
|
</vn-icon-button>
|
2019-01-28 15:24:45 +00:00
|
|
|
</vn-horizontal>
|
2019-10-02 19:02:49 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
</a>
|
|
|
|
</vn-card>
|
|
|
|
</vn-data-viewer>
|
2019-01-28 15:24:45 +00:00
|
|
|
</div>
|
|
|
|
<vn-dialog vn-id="preview" class="dialog-summary">
|
|
|
|
<tpl-body>
|
2019-10-02 19:02:49 +00:00
|
|
|
<vn-worker-summary
|
|
|
|
worker="$ctrl.selectedWorker">
|
|
|
|
</vn-worker-summary>
|
2019-01-28 15:24:45 +00:00
|
|
|
</tpl-body>
|
2019-09-05 11:06:40 +00:00
|
|
|
</vn-dialog>
|
|
|
|
<vn-scroll-up></vn-scroll-up>
|