2019-03-22 10:07:44 +00:00
|
|
|
<div class="vn-descriptor">
|
|
|
|
<div class="header">
|
|
|
|
<a translate-attr="{title: 'Return to module index'}" ui-sref="route.index">
|
|
|
|
<vn-icon icon="chevron_left"></vn-icon>
|
|
|
|
</a>
|
|
|
|
<a translate-attr="{title: 'Preview'}" ui-sref="route.card.summary({id: $ctrl.route.id})">
|
|
|
|
<vn-icon icon="desktop_windows"></vn-icon>
|
|
|
|
</a>
|
2019-04-15 12:34:33 +00:00
|
|
|
<vn-icon-menu
|
|
|
|
vn-id="more-button"
|
|
|
|
icon="more_vert"
|
|
|
|
show-filter="false"
|
|
|
|
value-field="callback"
|
|
|
|
translate-fields="['name']"
|
|
|
|
data="$ctrl.moreOptions"
|
2019-06-05 11:51:34 +00:00
|
|
|
on-change="$ctrl.onMoreChange(value)"
|
|
|
|
on-open="$ctrl.onMoreOpen()">
|
2019-04-15 12:34:33 +00:00
|
|
|
</vn-icon-menu>
|
2019-03-22 10:07:44 +00:00
|
|
|
</div>
|
|
|
|
<div class="body">
|
|
|
|
<div class="attributes">
|
|
|
|
<h5>{{$ctrl.route.name}}</h5>
|
|
|
|
<vn-label-value label="Id"
|
|
|
|
value="{{$ctrl.route.id}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Date"
|
|
|
|
value="{{$ctrl.route.created | dateTime: 'dd/MM/yyyy'}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Agency"
|
|
|
|
value="{{$ctrl.route.agencyMode.name}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Volume"
|
|
|
|
value="{{$ctrl.route.m3 | dashIfEmpty}} / {{$ctrl.route.vehicle.m3 | dashIfEmpty}} m³">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Description"
|
|
|
|
value="{{$ctrl.route.description}}">
|
|
|
|
</vn-label-value>
|
|
|
|
</div>
|
|
|
|
<div class="icons">
|
|
|
|
<vn-icon
|
|
|
|
vn-tooltip="Volume exceded"
|
|
|
|
icon="icon-volume"
|
2019-09-30 06:26:51 +00:00
|
|
|
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">
|
|
|
|
<a ng-if="$ctrl.quicklinks.btnOne"
|
|
|
|
vn-tooltip="{{::$ctrl.quicklinks.btnOne.tooltip}}"
|
|
|
|
ui-sref="{{::$ctrl.quicklinks.btnOne.state}}" target="_blank">
|
|
|
|
<vn-icon
|
|
|
|
class="mdl-button mdl-js-button mdl-button--colored"
|
|
|
|
icon="{{::$ctrl.quicklinks.btnOne.icon}}">
|
|
|
|
</vn-icon>
|
|
|
|
</a>
|
|
|
|
<a ng-if="$ctrl.quicklinks.btnTwo"
|
|
|
|
vn-tooltip="{{::$ctrl.quicklinks.btnTwo.tooltip}}"
|
|
|
|
ui-sref="{{::$ctrl.quicklinks.btnTwo.state}}" target="_blank">
|
|
|
|
<vn-icon
|
|
|
|
class="mdl-button mdl-js-button mdl-button--colored"
|
|
|
|
icon="{{::$ctrl.quicklinks.btnTwo.icon}}">
|
|
|
|
</vn-icon>
|
|
|
|
</a>
|
|
|
|
<a ng-if="$ctrl.quicklinks.btnThree"
|
|
|
|
vn-tooltip="{{::$ctrl.quicklinks.btnThree.tooltip}}"
|
|
|
|
ui-sref="{{::$ctrl.quicklinks.btnThree.state}}" target="_blank">
|
|
|
|
<vn-icon
|
|
|
|
class="mdl-button mdl-js-button mdl-button--colored"
|
|
|
|
icon="{{::$ctrl.quicklinks.btnThree.icon}}">
|
|
|
|
</vn-icon>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-06-05 11:51:34 +00:00
|
|
|
</div>
|
|
|
|
<vn-confirm
|
|
|
|
vn-id="updateVolumeConfirmation"
|
|
|
|
on-response="$ctrl.updateVolume(response)"
|
2019-09-30 06:26:51 +00:00
|
|
|
question="Are you sure you want to update the volume?">
|
2019-06-05 11:51:34 +00:00
|
|
|
</vn-confirm>
|