2019-10-08 09:48:13 +00:00
|
|
|
<vn-crud-model vn-id="model"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Tickets/{{$ctrl.$stateParams.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"
|
2019-10-08 09:41:17 +00:00
|
|
|
on-open="model.refresh()">
|
2019-01-18 12:36:13 +00:00
|
|
|
<tpl-body>
|
2019-12-17 07:38:36 +00:00
|
|
|
<section class="add-stowaway header vn-pa-md">
|
2019-01-18 12:36:13 +00:00
|
|
|
<h5><span translate>Stowaways to add</span></h5>
|
2019-10-14 06:52:31 +00:00
|
|
|
</section>
|
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>
|
2019-10-18 23:18:25 +00:00
|
|
|
<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>
|
|
|
|
<vn-td>{{ticket.state.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>
|