salix/modules/route/front/descriptor/index.html

73 lines
2.4 KiB
HTML
Raw Normal View History

<vn-descriptor-content module="route">
<slot-menu>
<ul class="vn-list">
<li>
<div class="vn-item"
ng-click="$ctrl.showRouteReport()"
translate>
Show route report
</div>
</li>
<li>
<div class="vn-item"
ng-click="$ctrl.sendRouteReport()"
translate>
Send route report
</div>
</li>
<li vn-acl="deliveryBoss">
<div class="vn-item"
ng-click="updateVolumeConfirmation.show()"
translate>
Update volume
</div>
</li>
</ul>
</slot-menu>
<slot-body>
2019-03-22 10:07:44 +00:00
<div class="attributes">
<h5>{{$ctrl.route.name}}</h5>
<vn-label-value
label="Id"
2019-03-22 10:07:44 +00:00
value="{{$ctrl.route.id}}">
</vn-label-value>
<vn-label-value
label="Date"
value="{{$ctrl.route.created | date: 'dd/MM/yyyy'}}">
2019-03-22 10:07:44 +00:00
</vn-label-value>
<vn-label-value
label="Agency"
2019-03-22 10:07:44 +00:00
value="{{$ctrl.route.agencyMode.name}}">
</vn-label-value>
<vn-label-value
label="Zone"
2019-10-16 05:18:05 +00:00
value="{{$ctrl.route.zone.name}}">
</vn-label-value>
<vn-label-value
label="Volume"
2019-03-22 10:07:44 +00:00
value="{{$ctrl.route.m3 | dashIfEmpty}} / {{$ctrl.route.vehicle.m3 | dashIfEmpty}} m³">
</vn-label-value>
<vn-label-value
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"
ng-class="{bright: $ctrl.route.m3 > $ctrl.route.vehicle.m3 && $ctrl.route.vehicle.m3 != NULL}">
2019-03-22 10:07:44 +00:00
</vn-icon>
</div>
<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>
</div>
<vn-confirm
vn-id="updateVolumeConfirmation"
on-accept="$ctrl.updateVolume()"
question="Are you sure you want to update the volume?">
</vn-confirm>