59 lines
2.2 KiB
HTML
59 lines
2.2 KiB
HTML
|
<vn-crud-model
|
||
|
vn-id="model"
|
||
|
url="/agency/api/Workers"
|
||
|
filter="::$ctrl.filter"
|
||
|
limit="20"
|
||
|
data="workers"
|
||
|
auto-load="true">
|
||
|
</vn-crud-model>
|
||
|
<div class="index-block">
|
||
|
<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"
|
||
|
ui-sref="worker.card.summary({ id: {{::worker.id}} })"
|
||
|
translate-attr="{title: 'View worker'}"
|
||
|
class="vn-list-item">
|
||
|
<vn-horizontal ng-click="$ctrl.onClick($event)">
|
||
|
<vn-one>
|
||
|
<h6>{{::$ctrl.worker.name}}</h6>
|
||
|
<vn-label-value label="Id"
|
||
|
value="{{::worker.id}}">
|
||
|
</vn-label-value>
|
||
|
<vn-label-value label="Name"
|
||
|
value="{{::worker.name}}">
|
||
|
</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-empty-rows class="vn-list-item" style="text-align: center"
|
||
|
ng-if="model.data.length === 0" translate>
|
||
|
No results
|
||
|
</vn-empty-rows>
|
||
|
<vn-empty-rows class="vn-list-item" style="text-align: center"
|
||
|
ng-if="model.data === null" translate>
|
||
|
Enter a new search
|
||
|
</vn-empty-rows>
|
||
|
</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>
|