113 lines
4.0 KiB
HTML
113 lines
4.0 KiB
HTML
<vn-auto-search
|
|
model="model">
|
|
</vn-auto-search>
|
|
<vn-data-viewer
|
|
model="model"
|
|
class="vn-w-lg">
|
|
<vn-card class="vn-pa-md vn-w-lg">
|
|
<vn-tool-bar class="vn-ma-md">
|
|
<vn-button
|
|
disabled="$ctrl.totalChecked == 0"
|
|
ng-click="$ctrl.openClonationDialog()"
|
|
icon="icon-clone"
|
|
vn-tooltip="Clone selected roadmaps">
|
|
</vn-button>
|
|
<vn-button
|
|
disabled="$ctrl.totalChecked == 0"
|
|
ng-click="deleteRoadmaps.show()"
|
|
vn-tooltip="Delete roadmap(s)"
|
|
icon="delete">
|
|
</vn-button>
|
|
</vn-tool-bar>
|
|
<vn-table model="model">
|
|
<vn-thead>
|
|
<vn-tr>
|
|
<vn-th shrink>
|
|
<vn-multi-check
|
|
model="model">
|
|
</vn-multi-check>
|
|
</vn-th>
|
|
<vn-th field="description">Roadmap</vn-th>
|
|
<vn-th field="etd" expand date>ETD</vn-th>
|
|
<vn-th field="supplierFk">Carrier</vn-th>
|
|
<vn-th field="plate">Plate</vn-th>
|
|
<vn-th field="price">Price</vn-th>
|
|
<vn-th field="observations" expand>Observations</vn-th>
|
|
<vn-th></vn-th>
|
|
</vn-tr>
|
|
</vn-thead>
|
|
<vn-tbody>
|
|
<a ng-repeat="roadmap in model.data"
|
|
class="clickable vn-tr search-result"
|
|
ui-sref="route.roadmap.card.summary({id: {{::roadmap.id}}})">
|
|
<vn-td>
|
|
<vn-check
|
|
ng-model="roadmap.checked"
|
|
vn-click-stop>
|
|
</vn-check>
|
|
</vn-td>
|
|
<vn-td>{{::roadmap.name}}</vn-td>
|
|
<vn-td expand date>{{::roadmap.etd | date:'dd/MM/yyyy HH:mm'}}</vn-td>
|
|
<vn-td expand>
|
|
<span
|
|
class="link"
|
|
vn-click-stop="supplierDescriptor.show($event, roadmap.supplierFk)">
|
|
{{::roadmap.supplier.nickname}}
|
|
</span>
|
|
</vn-td>
|
|
<vn-td>{{::roadmap.tractorPlate | dashIfEmpty}}</vn-td>
|
|
<vn-td expand>{{::roadmap.price | currency: 'EUR':2 | dashIfEmpty}}</vn-td>
|
|
<vn-td expand>{{::roadmap.observations | dashIfEmpty}}</vn-td>
|
|
<vn-td shrink>
|
|
<vn-icon-button
|
|
vn-click-stop="$ctrl.preview(roadmap)"
|
|
vn-tooltip="Preview"
|
|
icon="preview">
|
|
</vn-icon-button>
|
|
</vn-td>
|
|
</a>
|
|
</vn-tbody>
|
|
</vn-table>
|
|
</vn-card>
|
|
</vn-data-viewer>
|
|
<a
|
|
ui-sref="route.roadmap.create"
|
|
vn-tooltip="Create roadmap"
|
|
vn-bind="+"
|
|
fixed-bottom-right>
|
|
<vn-float-button icon="add"></vn-float-button>
|
|
</a>
|
|
<vn-popup vn-id="summary">
|
|
<vn-roadmap-summary
|
|
roadmap="$ctrl.roadmapSelected">
|
|
</vn-roadmap-summary>
|
|
</vn-popup>
|
|
<vn-supplier-descriptor-popover
|
|
vn-id="supplierDescriptor">
|
|
</vn-supplier-descriptor-popover>
|
|
|
|
<!-- Clonation dialog -->
|
|
<vn-dialog class="edit"
|
|
vn-id="clonationDialog"
|
|
on-accept="$ctrl.cloneSelectedRoadmaps()"
|
|
message="Select the estimated time of departure (ETD)">
|
|
<tpl-body>
|
|
<vn-horizontal>
|
|
<vn-date-picker
|
|
label="ETD"
|
|
ng-model="$ctrl.etd">
|
|
</vn-date-picker>
|
|
</vn-horizontal>
|
|
</tpl-body>
|
|
<tpl-buttons>
|
|
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>
|
|
<button response="accept" translate>Clone</button>
|
|
</tpl-buttons>
|
|
</vn-dialog>
|
|
<vn-confirm
|
|
vn-id="deleteRoadmaps"
|
|
question="Are you sure you want to continue?"
|
|
message="Selected roadmaps will be removed"
|
|
on-accept="$ctrl.deleteRoadmaps()">
|
|
</vn-confirm>
|