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

76 lines
2.9 KiB
HTML
Raw Normal View History

2019-01-28 15:24:45 +00:00
<vn-crud-model
vn-id="model"
2019-04-15 09:06:42 +00:00
url="/worker/api/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-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>
2019-03-12 14:04:09 +00:00
<vn-horizontal>
<vn-searchbar
style="width: 100%"
panel="vn-worker-search-panel"
on-search="$ctrl.onSearch($params)"
2019-04-12 12:33:08 +00:00
info="Search workers by id, firstName, lastName or user name"
2019-03-12 14:04:09 +00:00
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>
2019-01-28 15:24:45 +00:00
</vn-card>
<vn-card margin-medium-v>
2019-03-08 13:46:01 +00:00
<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'}"
2019-03-08 13:46:01 +00:00
class="vn-list-item searchResult">
2019-01-30 12:32:25 +00:00
<vn-horizontal>
2019-01-28 15:24:45 +00:00
<vn-one>
2019-03-11 07:00:49 +00:00
<h6>{{::worker.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"
2019-03-11 07:00:49 +00:00
value="{{::worker.userName}}">
2019-01-29 15:37:59 +00:00
</vn-label-value>
<vn-label-value label="Email"
2019-03-15 11:58:26 +00:00
value="{{::worker.email}}">
2019-01-29 15:37:59 +00:00
</vn-label-value>
<vn-label-value label="Department"
2019-03-11 07:00:49 +00:00
value="{{::worker.department}}">
2019-01-28 15:24:45 +00:00
</vn-label-value>
</vn-one>
<vn-horizontal class="buttons">
<vn-icon-button
2019-01-28 15:24:45 +00:00
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>
</vn-horizontal>
</a>
2019-02-21 09:10:38 +00:00
<vn-empty-rows translate ng-if="model.data.length === 0">
No results
</vn-empty-rows>
<vn-empty-rows translate ng-if="model.data === null">
Enter a new search
</vn-empty-rows>
2019-01-28 15:24:45 +00:00
</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>
2019-09-05 11:06:40 +00:00
</vn-dialog>
<vn-scroll-up></vn-scroll-up>