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

136 lines
4.8 KiB
HTML
Raw Normal View History

2019-11-10 10:08:44 +00:00
<vn-auto-search
2020-03-13 19:33:12 +00:00
model="model">
2019-11-10 10:08:44 +00:00
</vn-auto-search>
<vn-data-viewer
model="model"
class="vn-w-lg vn-mb-xl">
<vn-card>
<vn-table model="model">
<vn-thead>
<vn-tr>
2020-08-25 08:00:21 +00:00
<vn-th shrink>
<vn-multi-check
model="model">
</vn-multi-check>
</vn-th>
2019-11-10 10:08:44 +00:00
<vn-th field="id" number>Id</vn-th>
2022-06-14 10:34:32 +00:00
<vn-th field="workerFk">Worker</vn-th>
<vn-th field="agencyName">Agency</vn-th>
<vn-th field="vehiclePlateNumber">Vehicle</vn-th>
<vn-th field="created" shrink-date>Date</vn-th>
<vn-th field="m3" number></vn-th>
<vn-th field="description">Description</vn-th>
<vn-th field="started">Start</vn-th>
<vn-th field="finished">Finish</vn-th>
2019-11-10 10:08:44 +00:00
<vn-th shrink></vn-th>
</vn-tr>
</vn-thead>
<vn-tbody>
2020-03-13 19:33:12 +00:00
<a ng-repeat="route in model.data"
2019-11-10 10:08:44 +00:00
class="clickable vn-tr search-result"
ui-sref="route.card.summary({id: {{::route.id}}})"
ng-attr-id="{{::route.id}}" vn-droppable="$ctrl.onDrop($event)">
2020-08-25 08:00:21 +00:00
<vn-td shrink>
<vn-check
ng-model="route.checked"
vn-click-stop>
</vn-check>
</vn-td>
2019-11-10 10:08:44 +00:00
<vn-td number>{{::route.id | dashIfEmpty}}</vn-td>
<vn-td expand>
<span
class="link"
vn-click-stop="workerDescriptor.show($event, route.workerFk)">
2020-09-03 13:11:16 +00:00
{{::route.workerUserName}}
2019-11-10 10:08:44 +00:00
</span>
</vn-td>
<vn-td>{{::route.agencyName | dashIfEmpty}}</vn-td>
<vn-td>{{::route.vehiclePlateNumber | dashIfEmpty}}</vn-td>
2021-02-16 14:40:20 +00:00
<vn-td shrink-date>{{::route.created | dashIfEmpty | date:'dd/MM/yyyy'}}</vn-td>
2019-11-10 10:08:44 +00:00
<vn-td number>{{::route.m3 | dashIfEmpty}}</vn-td>
<vn-td>{{::route.description | dashIfEmpty}}</vn-td>
2022-06-14 10:34:32 +00:00
<vn-td expand>{{::route.started | dashIfEmpty | date:'dd/MM/yyyy HH:mm'}}</vn-td>
<vn-td expand>{{::route.finished | dashIfEmpty | date:'dd/MM/yyyy HH:mm'}}</vn-td>
2019-11-10 10:08:44 +00:00
<vn-td>
<vn-icon-button
vn-click-stop="$ctrl.showTicketPopup(route)"
vn-tooltip="Añadir tickets"
icon="icon-ticketAdd">
</vn-icon-button>
2019-11-10 10:08:44 +00:00
<vn-icon-button
vn-click-stop="$ctrl.preview(route)"
2019-11-10 10:08:44 +00:00
vn-tooltip="Preview"
2020-11-24 07:22:54 +00:00
icon="preview">
2019-11-10 10:08:44 +00:00
</vn-icon-button>
</vn-td>
</a>
</vn-tbody>
</vn-table>
</vn-card>
2019-11-10 10:08:44 +00:00
</vn-data-viewer>
2020-12-24 10:31:20 +00:00
2019-10-26 23:30:01 +00:00
<vn-popup vn-id="summary">
<vn-route-summary
route="$ctrl.routeSelected">
</vn-route-summary>
</vn-popup>
<vn-route-ticket-popup
vn-id="ticketPopup"
route="$ctrl.routeSelected">
</vn-route-ticket-popup>
2020-12-24 10:31:20 +00:00
2019-03-21 12:46:14 +00:00
<vn-worker-descriptor-popover
2020-04-25 09:50:04 +00:00
vn-id="workerDescriptor">
2019-03-21 12:46:14 +00:00
</vn-worker-descriptor-popover>
<vn-ticket-descriptor-popover
vn-id="ticketDescriptor">
</vn-ticket-descriptor-popover>
<vn-client-descriptor-popover
vn-id="clientDescriptor">
</vn-client-descriptor-popover>
2020-08-25 08:00:21 +00:00
<div fixed-bottom-right>
<vn-vertical style="align-items: center;">
2020-12-24 10:31:20 +00:00
<vn-button class="round sm vn-mb-sm"
icon="icon-clone"
ng-show="$ctrl.totalChecked > 0"
ng-click="$ctrl.openClonationDialog()"
vn-tooltip="Clone selected routes"
tooltip-position="left">
</vn-button>
2020-08-25 08:00:21 +00:00
<vn-button class="round sm vn-mb-sm"
icon="cloud_download"
ng-show="$ctrl.totalChecked > 0"
ng-click="$ctrl.showRouteReport()"
vn-tooltip="Download selected routes as PDF"
tooltip-position="left">
</vn-button>
2020-09-02 12:08:56 +00:00
<a ui-sref="route.create" vn-bind="+">
2020-08-25 08:00:21 +00:00
<vn-button class="round md vn-mb-sm"
icon="add"
vn-tooltip="New route"
tooltip-position="left">
</vn-button>
</a>
</vn-vertical>
2020-12-24 10:31:20 +00:00
</div>
<!-- Clonation dialog -->
<vn-dialog class="edit"
vn-id="clonationDialog"
on-accept="$ctrl.cloneSelectedRoutes()"
message="Select the starting date">
<tpl-body>
<vn-horizontal>
<vn-date-picker
2021-03-30 07:55:51 +00:00
label="Starting date"
ng-model="$ctrl.createdDate">
2020-12-24 10:31:20 +00:00
</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>