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-title vn-two>Samples</vn-title>
|
|
|
|
</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>
|
|
|
|
<vn-td>{{::sample.worker.firstName}} {{::sample.worker.name}}</vn-td>
|
|
|
|
<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>
|
|
|
|
<vn-pagination
|
|
|
|
model="model"
|
|
|
|
scroll-selector="ui-view">
|
|
|
|
</vn-pagination>
|
|
|
|
</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>
|
|
|
|
|