salix/client/ticket/src/tracking/index/index.html

42 lines
1.5 KiB
HTML
Raw Normal View History

2018-07-17 06:44:31 +00:00
<vn-crud-model
vn-id="model"
url="/ticket/api/TicketTrackings"
filter="::$ctrl.filter"
link="{ticketFk: $ctrl.$stateParams.id}"
limit="20"
data="trackings">
</vn-crud-model>
<vn-vertical>
2018-03-21 11:56:18 +00:00
<vn-card pad-large>
<vn-vertical>
<vn-title>Tracking</vn-title>
2018-07-17 06:44:31 +00:00
<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" default-order="DESC">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>{{::tracking.worker.firstName}} {{ticket.worker.name}}</vn-td>
<vn-td>{{::tracking.created | date:'dd/MM/yyyy HH:mm'}}</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>
2018-07-17 06:44:31 +00:00
<vn-pagination
model="model"
scroll-selector="ui-view">
</vn-pagination>
2018-03-21 11:56:18 +00:00
</vn-card>
2018-07-17 06:44:31 +00:00
</vn-vertical>
<a ui-sref="ticket.card.tracking.edit" vn-bind="+" vn-visible-by="production" fixed-bottom-right>
2018-03-21 11:56:18 +00:00
<vn-float-button icon="add"></vn-float-button>
</a>