2019-03-21 12:46:14 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2019-04-25 06:28:08 +00:00
|
|
|
url="/api/Routes/filter"
|
2019-03-21 12:46:14 +00:00
|
|
|
limit="20"
|
|
|
|
data="routes"
|
2019-04-02 08:56:24 +00:00
|
|
|
order="created DESC">
|
2019-03-21 12:46:14 +00:00
|
|
|
</vn-crud-model>
|
|
|
|
<div class="content-block">
|
|
|
|
<div class="vn-list">
|
|
|
|
<vn-card pad-medium-h>
|
|
|
|
<vn-searchbar
|
2019-05-02 11:25:41 +00:00
|
|
|
filter="$ctrl.filter"
|
2019-03-21 12:46:14 +00:00
|
|
|
panel="vn-route-search-panel"
|
2019-04-25 06:28:08 +00:00
|
|
|
on-search="$ctrl.onSearch($params)"
|
2019-04-12 12:33:08 +00:00
|
|
|
info="Search routes by id"
|
2019-03-21 12:46:14 +00:00
|
|
|
vn-focus>
|
|
|
|
</vn-searchbar>
|
|
|
|
</vn-card>
|
|
|
|
</div>
|
2019-05-15 11:07:32 +00:00
|
|
|
<vn-card margin-medium-v margin-huge-bottom class="index">
|
2019-03-21 12:46:14 +00:00
|
|
|
<vn-table model="model" auto-load="false">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th field="id" number>id</vn-th>
|
|
|
|
<vn-th th-id="worker">Worker</vn-th>
|
|
|
|
<vn-th th-id="agency">Agency</vn-th>
|
|
|
|
<vn-th th-id="vehicle">Vehicle</vn-th>
|
2019-04-02 08:05:56 +00:00
|
|
|
<vn-th th-id="created">Date</vn-th>
|
2019-03-21 12:46:14 +00:00
|
|
|
<vn-th th-id="m3" number>m³</vn-th>
|
|
|
|
<vn-th th-id="description">Description</vn-th>
|
|
|
|
<vn-th></vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<a ng-repeat="route in routes"
|
|
|
|
class="clickable vn-tr searchResult"
|
|
|
|
ui-sref="route.card.summary({id: {{::route.id}}})">
|
|
|
|
<vn-td number>{{::route.id | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td expand>
|
|
|
|
<span
|
|
|
|
class="link"
|
2019-04-25 06:28:08 +00:00
|
|
|
ng-click="$ctrl.showWorkerDescriptor($event, route.workerFk)">
|
|
|
|
{{::route.workerNickname}}
|
2019-03-21 12:46:14 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
2019-04-25 06:28:08 +00:00
|
|
|
<vn-td>{{::route.agencyName | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td>{{::route.vehiclePlateNumber | dashIfEmpty}}</vn-td>
|
2019-03-21 12:46:14 +00:00
|
|
|
<vn-td>{{::route.created | dateTime:'dd/MM/yyyy' | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td number>{{::route.m3 | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td>{{::route.description | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td>
|
|
|
|
<vn-icon-button
|
|
|
|
ng-click="$ctrl.preview($event, route)"
|
|
|
|
vn-tooltip="Preview"
|
|
|
|
icon="desktop_windows">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-td>
|
|
|
|
</a>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</vn-card>
|
|
|
|
<vn-pagination model="model"></vn-pagination>
|
|
|
|
</div>
|
|
|
|
<vn-dialog
|
|
|
|
vn-id="summary"
|
|
|
|
class="dialog-summary">
|
|
|
|
<tpl-body>
|
2019-03-22 11:34:42 +00:00
|
|
|
<vn-route-summary route="$ctrl.routeSelected"></vn-route-summary>
|
2019-03-21 12:46:14 +00:00
|
|
|
</tpl-body>
|
|
|
|
</vn-dialog>
|
|
|
|
<vn-worker-descriptor-popover
|
|
|
|
vn-id="workerDescriptor"
|
2019-04-25 06:28:08 +00:00
|
|
|
worker-fk="$ctrl.selectedWorker">
|
2019-03-21 12:46:14 +00:00
|
|
|
</vn-worker-descriptor-popover>
|
2019-03-22 13:08:01 +00:00
|
|
|
<a ui-sref="route.create" vn-tooltip="New route" vn-bind="+" fixed-bottom-right>
|
|
|
|
<vn-float-button icon="add"></vn-float-button>
|
|
|
|
</a>
|