salix/modules/client/front/sample/index/index.html

52 lines
1.9 KiB
HTML
Raw Normal View History

2018-07-31 09:08:22 +00:00
<vn-crud-model
vn-id="model"
url="/client/api/ClientSamples"
filter="::$ctrl.filter"
link="{clientFk: $ctrl.$stateParams.id}"
limit="20"
2018-11-27 14:02:54 +00:00
data="samples" auto-load="false">
2018-07-31 09:08:22 +00:00
</vn-crud-model>
2018-12-17 12:52:16 +00:00
<vn-vertical compact>
2018-07-31 09:08:22 +00:00
<vn-card pad-large>
<vn-horizontal>
</vn-horizontal>
<vn-vertical>
<vn-table model="model">
<vn-thead>
<vn-tr>
<vn-th field="created" default-order="DESC">Sent</vn-th>
<vn-th>Description</vn-th>
<vn-th field="workerFk">Worker</vn-th>
<vn-th field="companyFk">Company</vn-th>
</vn-tr>
</vn-thead>
<vn-tbody>
<vn-tr ng-repeat="sample in samples">
2019-02-27 16:04:00 +00:00
<vn-td>{{::sample.created | dateTime:'dd/MM/yyyy HH:mm' }}</vn-td>
2019-05-22 05:50:08 +00:00
<vn-td
title="{{::sample.type.description}}">
{{::sample.type.description}}
</vn-td>
<vn-td>
<span class="link"
ng-click="$ctrl.showWorkerDescriptor($event, sample.worker.id)">
{{::sample.worker.user.nickname}}
</span>
</vn-td>
2018-07-31 09:08:22 +00:00
<vn-td>{{::sample.company.code}}</vn-td>
</vn-tr>
</vn-tbody>
</vn-table>
</vn-vertical>
2019-01-20 17:48:03 +00:00
<vn-pagination model="model"></vn-pagination>
2018-07-31 09:08:22 +00:00
</vn-card>
</vn-vertical>
2019-05-22 05:50:08 +00:00
<vn-worker-descriptor-popover
vn-id="workerDescriptor"
worker-fk="$ctrl.selectedWorker">
</vn-worker-descriptor-popover>
2018-07-31 09:08:22 +00:00
<a ui-sref="client.card.sample.create" vn-tooltip="Send sample"
vn-bind="+" fixed-bottom-right>
<vn-float-button icon="add"></vn-float-button>
</a>