2020-05-06 12:38:09 +00:00
|
|
|
<vn-descriptor-content
|
|
|
|
module="route"
|
2022-04-11 06:02:05 +00:00
|
|
|
description="$ctrl.route.name"
|
|
|
|
summary="$ctrl.$.summary">
|
2020-04-30 10:48:52 +00:00
|
|
|
<slot-menu>
|
2020-05-06 12:38:09 +00:00
|
|
|
<vn-item
|
|
|
|
ng-click="$ctrl.showRouteReport()"
|
|
|
|
translate>
|
|
|
|
Show route report
|
|
|
|
</vn-item>
|
|
|
|
<vn-item
|
|
|
|
ng-click="$ctrl.sendRouteReport()"
|
|
|
|
translate>
|
|
|
|
Send route report
|
|
|
|
</vn-item>
|
|
|
|
<vn-item
|
|
|
|
ng-click="updateVolumeConfirmation.show()"
|
2023-06-21 11:34:27 +00:00
|
|
|
vn-acl="deliveryAssistant"
|
2020-05-06 12:38:09 +00:00
|
|
|
vn-acl-action="remove"
|
|
|
|
translate>
|
|
|
|
Update volume
|
|
|
|
</vn-item>
|
2022-11-15 07:24:10 +00:00
|
|
|
<vn-item
|
|
|
|
ng-click="$ctrl.deleteCurrentRoute()"
|
2023-06-21 11:34:27 +00:00
|
|
|
vn-acl="deliveryAssistant"
|
2022-11-15 07:24:10 +00:00
|
|
|
vn-acl-action="remove"
|
|
|
|
translate>
|
|
|
|
Delete route
|
|
|
|
</vn-item>
|
2020-04-30 10:48:52 +00:00
|
|
|
</slot-menu>
|
|
|
|
<slot-body>
|
2019-03-22 10:07:44 +00:00
|
|
|
<div class="attributes">
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
2023-06-12 12:58:28 +00:00
|
|
|
label="Date"
|
2024-11-28 16:29:39 +00:00
|
|
|
value="{{$ctrl.route.dated | date: 'dd/MM/yyyy'}}">
|
2019-03-22 10:07:44 +00:00
|
|
|
</vn-label-value>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
2023-06-12 12:58:28 +00:00
|
|
|
label="Agency"
|
2019-03-22 10:07:44 +00:00
|
|
|
value="{{$ctrl.route.agencyMode.name}}">
|
|
|
|
</vn-label-value>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
2023-06-12 12:58:28 +00:00
|
|
|
label="Zone"
|
2019-10-16 05:18:05 +00:00
|
|
|
value="{{$ctrl.route.zone.name}}">
|
|
|
|
</vn-label-value>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
2023-06-12 12:58:28 +00:00
|
|
|
label="Volume"
|
2019-03-22 10:07:44 +00:00
|
|
|
value="{{$ctrl.route.m3 | dashIfEmpty}} / {{$ctrl.route.vehicle.m3 | dashIfEmpty}} m³">
|
|
|
|
</vn-label-value>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
2023-06-12 12:58:28 +00:00
|
|
|
label="Description"
|
2019-03-22 10:07:44 +00:00
|
|
|
value="{{$ctrl.route.description}}">
|
|
|
|
</vn-label-value>
|
|
|
|
</div>
|
|
|
|
<div class="icons">
|
|
|
|
<vn-icon
|
|
|
|
vn-tooltip="Volume exceded"
|
|
|
|
icon="icon-volume"
|
2020-12-04 12:40:58 +00:00
|
|
|
ng-if="$ctrl.route.m3 > $ctrl.route.vehicle.m3 && $ctrl.route.vehicle.m3 != NULL">
|
2019-03-22 10:07:44 +00:00
|
|
|
</vn-icon>
|
|
|
|
</div>
|
2020-04-30 10:48:52 +00:00
|
|
|
<div class="quicklinks">
|
|
|
|
<div ng-transclude="btnOne"></div>
|
|
|
|
<div ng-transclude="btnTwo"></div>
|
|
|
|
<div ng-transclude="btnThree"></div>
|
|
|
|
</div>
|
2019-03-22 10:07:44 +00:00
|
|
|
</div>
|
2019-06-05 11:51:34 +00:00
|
|
|
</div>
|
|
|
|
<vn-confirm
|
|
|
|
vn-id="updateVolumeConfirmation"
|
2020-04-30 10:48:52 +00:00
|
|
|
on-accept="$ctrl.updateVolume()"
|
2019-09-30 06:26:51 +00:00
|
|
|
question="Are you sure you want to update the volume?">
|
2022-04-11 06:02:05 +00:00
|
|
|
</vn-confirm>
|
|
|
|
<vn-popup vn-id="summary">
|
|
|
|
<vn-route-summary route="$ctrl.route"></vn-route-summary>
|
2023-06-12 12:58:28 +00:00
|
|
|
</vn-popup>
|