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

38 lines
1.7 KiB
HTML
Raw Normal View History

2019-10-08 09:48:13 +00:00
<vn-crud-model vn-id="model"
2019-09-25 09:26:12 +00:00
url="/api/Tickets/{{$ctrl.$stateParams.id}}/getPossibleStowaways"
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-10-08 09:41:17 +00:00
<vn-horizontal class="header vn-pa-md vn-w-lg">
2019-01-18 12:36:13 +00:00
<h5><span translate>Stowaways to add</span></h5>
</vn-horizontal>
2019-10-08 09:41:17 +00:00
<vn-horizontal class="vn-pa-md vn-w-lg">
<vn-data-viewer class="vn-w-xs" model="model">
<vn-table model="model" auto-load="false">
<vn-thead>
<vn-tr>
<vn-th number>Ticket id</vn-th>
<vn-th number>Shipped</vn-th>
<vn-th number>Agency</vn-th>
<vn-th number>Warehouse</vn-th>
<vn-th number>State</vn-th>
</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 number>{{ticket.landed | dateTime: 'dd/MM/yyyy'}}</vn-td>
<vn-td number>{{ticket.agencyMode.name}}</vn-td>
<vn-td number>{{ticket.warehouse.name}}</vn-td>
<vn-td number>{{ticket.state.state.name}}</vn-td>
</vn-tr>
</vn-tbody>
</vn-table>
</vn-data-viewer>
2019-01-18 12:36:13 +00:00
</vn-horizontal>
</tpl-body>
</vn-dialog>