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

54 lines
1.7 KiB
HTML
Raw Normal View History

2018-07-31 09:08:22 +00:00
<vn-crud-model
vn-id="model"
url="ClientSamples"
2018-07-31 09:08:22 +00:00
filter="::$ctrl.filter"
2020-03-17 10:17:50 +00:00
link="{clientFk: $ctrl.$params.id}"
2018-07-31 09:08:22 +00:00
limit="20"
2019-10-01 14:17:57 +00:00
data="samples"
2019-10-02 17:24:42 +00:00
order="created DESC"
auto-load="true">
2018-07-31 09:08:22 +00:00
</vn-crud-model>
2019-10-02 17:24:42 +00:00
<vn-data-viewer
model="model"
class="vn-w-md">
2019-10-01 14:17:57 +00:00
<vn-card>
<vn-table model="model">
<vn-thead>
<vn-tr>
2019-10-02 17:24:42 +00:00
<vn-th field="created">Sent</vn-th>
2019-10-01 14:17:57 +00:00
<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">
2021-08-15 06:35:14 +00:00
<vn-td shrink-datetime>{{::sample.created | date:'dd/MM/yyyy HH:mm' }}</vn-td>
<vn-td expand
2019-10-01 14:17:57 +00:00
title="{{::sample.type.description}}">
{{::sample.type.description}}
</vn-td>
<vn-td>
<span
ng-click="workerDescriptor.show($event, sample.worker.id)"
class="link">
2020-09-03 13:11:16 +00:00
{{::sample.worker.user.name}}
2019-10-01 14:17:57 +00:00
</span>
</vn-td>
<vn-td>{{::sample.company.code}}</vn-td>
</vn-tr>
</vn-tbody>
</vn-table>
2018-07-31 09:08:22 +00:00
</vn-card>
2019-10-02 17:24:42 +00:00
</vn-data-viewer>
2019-05-22 05:50:08 +00:00
<vn-worker-descriptor-popover
2020-04-25 09:50:04 +00:00
vn-id="workerDescriptor">
2019-05-22 05:50:08 +00:00
</vn-worker-descriptor-popover>
2019-10-02 17:24:42 +00:00
<a
ui-sref="client.card.sample.create"
vn-tooltip="Send sample"
vn-bind="+"
fixed-bottom-right>
2018-07-31 09:08:22 +00:00
<vn-float-button icon="add"></vn-float-button>
</a>