salix/modules/ticket/front/descriptor/addStowaway.html

36 lines
1.5 KiB
HTML
Raw Normal View History

2019-10-08 09:48:13 +00:00
<vn-crud-model vn-id="model"
2020-03-18 07:35:59 +00:00
url="Tickets/{{$ctrl.$params.id}}/getPossibleStowaways"
2019-09-25 09:26:12 +00:00
data="possibleStowaways">
</vn-crud-model>
2019-01-18 12:36:13 +00:00
<vn-dialog
vn-id="dialog"
2019-01-23 11:46:45 +00:00
class="modal-form"
2020-05-06 12:38:09 +00:00
on-open="model.refresh()"
message="Stowaways to add">
2019-01-18 12:36:13 +00:00
<tpl-body>
2019-12-17 07:38:36 +00:00
<vn-horizontal class="add-stowaway vn-pa-md">
2019-10-10 06:07:11 +00:00
<vn-data-viewer model="model">
2019-10-08 09:41:17 +00:00
<vn-table model="model" auto-load="false">
<vn-thead>
<vn-tr>
<vn-th number>Ticket id</vn-th>
2019-10-10 06:07:11 +00:00
<vn-th>Shipped</vn-th>
<vn-th>Agency</vn-th>
<vn-th>Warehouse</vn-th>
<vn-th>State</vn-th>
2019-10-08 09:41:17 +00:00
</vn-tr>
</vn-thead>
<vn-tbody>
<vn-tr ng-repeat="ticket in possibleStowaways" class="clickable" ng-click="$ctrl.addStowaway(ticket)">
<vn-td number>{{ticket.id}}</vn-td>
<vn-td>{{ticket.landed | date: 'dd/MM/yyyy'}}</vn-td>
2019-10-10 06:07:11 +00:00
<vn-td>{{ticket.agencyMode.name}}</vn-td>
<vn-td>{{ticket.warehouse.name}}</vn-td>
2020-06-23 11:40:49 +00:00
<vn-td>{{ticket.ticketState.state.name}}</vn-td>
2019-10-08 09:41:17 +00:00
</vn-tr>
</vn-tbody>
</vn-table>
</vn-data-viewer>
2019-01-18 12:36:13 +00:00
</vn-horizontal>
</tpl-body>
</vn-dialog>