2019-03-21 12:46:14 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Routes/filter"
|
2019-03-21 12:46:14 +00:00
|
|
|
limit="20"
|
|
|
|
data="routes"
|
2019-10-02 19:02:49 +00:00
|
|
|
order="created DESC"
|
|
|
|
auto-load="true">
|
2019-03-21 12:46:14 +00:00
|
|
|
</vn-crud-model>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-auto-search
|
|
|
|
on-search="$ctrl.onSearch($params)">
|
|
|
|
</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>
|
|
|
|
<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>
|
|
|
|
<vn-th th-id="created">Date</vn-th>
|
|
|
|
<vn-th th-id="m3" number>m³</vn-th>
|
|
|
|
<vn-th th-id="description">Description</vn-th>
|
|
|
|
<vn-th shrink></vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<a ng-repeat="route in routes"
|
|
|
|
class="clickable vn-tr search-result"
|
|
|
|
ui-sref="route.card.summary({id: {{::route.id}}})">
|
|
|
|
<vn-td number>{{::route.id | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td expand>
|
|
|
|
<span
|
|
|
|
class="link"
|
|
|
|
ng-click="$ctrl.showWorkerDescriptor($event, route.workerFk)">
|
|
|
|
{{::route.workerNickname}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>{{::route.agencyName | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td>{{::route.vehiclePlateNumber | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td>{{::route.created | date:'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>
|
2019-10-02 19:02:49 +00:00
|
|
|
</vn-card>
|
2019-11-10 10:08:44 +00:00
|
|
|
</vn-data-viewer>
|
2019-10-26 23:30:01 +00:00
|
|
|
<vn-popup vn-id="summary">
|
|
|
|
<vn-route-summary
|
|
|
|
route="$ctrl.routeSelected">
|
|
|
|
</vn-route-summary>
|
|
|
|
</vn-popup>
|
2019-03-21 12:46:14 +00:00
|
|
|
<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-10-02 19:02:49 +00:00
|
|
|
<a ui-sref="route.create"
|
|
|
|
vn-tooltip="New route"
|
|
|
|
vn-bind="+"
|
|
|
|
fixed-bottom-right>
|
2019-03-22 13:08:01 +00:00
|
|
|
<vn-float-button icon="add"></vn-float-button>
|
2019-09-05 11:06:40 +00:00
|
|
|
</a>
|
|
|
|
<vn-scroll-up></vn-scroll-up>
|