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

62 lines
2.3 KiB
HTML
Raw Normal View History

2019-01-28 15:24:45 +00:00
<vn-crud-model
vn-id="model"
2019-03-11 07:00:49 +00:00
url="/agency/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>
<vn-searchbar
panel="vn-worker-search-panel"
2019-03-11 07:00:49 +00:00
on-search="$ctrl.onSearch($params)"
2019-01-28 15:24:45 +00:00
vn-focus>
</vn-searchbar>
</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-11 07:00:49 +00:00
value="{{::worker.userName}}@verdnatura.es">
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>
</vn-dialog>