2019-10-11 15:38:04 +00:00
|
|
|
<vn-crud-model
|
2018-07-17 06:44:31 +00:00
|
|
|
vn-id="model"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="TicketTrackings"
|
2018-07-17 06:44:31 +00:00
|
|
|
filter="::$ctrl.filter"
|
2020-03-18 07:35:59 +00:00
|
|
|
link="{ticketFk: $ctrl.$params.id}"
|
2018-07-17 06:44:31 +00:00
|
|
|
limit="20"
|
2019-10-11 15:38:04 +00:00
|
|
|
data="trackings"
|
|
|
|
order="created DESC"
|
|
|
|
auto-load="true">
|
2018-07-17 06:44:31 +00:00
|
|
|
</vn-crud-model>
|
2019-10-11 15:38:04 +00:00
|
|
|
<vn-data-viewer model="model">
|
|
|
|
<vn-card class="vn-w-md">
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th field="state">State</vn-th>
|
|
|
|
<vn-th field="worker">Worker</vn-th>
|
|
|
|
<vn-th field="created">Created</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="tracking in trackings">
|
|
|
|
<vn-td>{{::tracking.state.name}}</vn-td>
|
|
|
|
<vn-td expand>
|
|
|
|
<span
|
2020-12-22 13:56:21 +00:00
|
|
|
ng-class="{'link': tracking.worker.id}"
|
2020-04-28 12:26:02 +00:00
|
|
|
ng-click="workerDescriptor.show($event, tracking.worker.user.id)">
|
2020-12-22 13:56:21 +00:00
|
|
|
{{::tracking.worker.user.name || 'System' | translate}}
|
2019-10-11 15:38:04 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
2021-08-15 06:35:14 +00:00
|
|
|
<vn-td shrink-datetime>{{::tracking.created | date:'dd/MM/yyyy HH:mm'}}</vn-td>
|
2019-10-11 15:38:04 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
2018-03-21 11:56:18 +00:00
|
|
|
</vn-card>
|
2019-10-11 15:38:04 +00:00
|
|
|
</vn-data-viewer>
|
2019-02-05 11:20:03 +00:00
|
|
|
<a ui-sref="ticket.card.tracking.edit" vn-bind="+" fixed-bottom-right>
|
2018-03-21 11:56:18 +00:00
|
|
|
<vn-float-button icon="add"></vn-float-button>
|
2019-02-15 11:39:21 +00:00
|
|
|
</a>
|
|
|
|
<vn-worker-descriptor-popover
|
2020-04-25 09:50:04 +00:00
|
|
|
vn-id="workerDescriptor">
|
2019-02-15 11:39:21 +00:00
|
|
|
</vn-worker-descriptor-popover>
|