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">
|
|
|
|
<vn-td>{{::sample.created | date:'dd/MM/yyyy HH:mm' }}</vn-td>
|
|
|
|
<vn-td>{{::sample.type.description}}</vn-td>
|
2019-01-31 13:14:39 +00:00
|
|
|
<vn-td>{{::sample.worker.user.nickname}}</vn-td>
|
2018-07-31 09:08:22 +00:00
|
|
|
<vn-td>{{::sample.company.code}}</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
<vn-empty-rows ng-if="model.data.length === 0" translate>
|
|
|
|
No results
|
|
|
|
</vn-empty-rows>
|
|
|
|
</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>
|
|
|
|
<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>
|
|
|
|
|