85 lines
3.0 KiB
HTML
85 lines
3.0 KiB
HTML
<vn-crud-model
|
|
vn-id="model"
|
|
url="/api/Routes/filter"
|
|
limit="20"
|
|
data="routes"
|
|
order="created DESC"
|
|
auto-load="true">
|
|
</vn-crud-model>
|
|
<div class="content-block">
|
|
<vn-card class="vn-pa-md vn-w-sm">
|
|
<vn-searchbar
|
|
filter="$ctrl.filter"
|
|
panel="vn-route-search-panel"
|
|
on-search="$ctrl.onSearch($params)"
|
|
info="Search routes by id"
|
|
vn-focus>
|
|
</vn-searchbar>
|
|
</vn-card>
|
|
<vn-data-viewer
|
|
model="model"
|
|
class="vn-w-lg vn-my-md vn-mb-xl">
|
|
<vn-card class="index">
|
|
<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 searchResult"
|
|
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>
|
|
</vn-card>
|
|
</vn-data-viewer>
|
|
</div>
|
|
<vn-dialog
|
|
vn-id="summary"
|
|
class="dialog-summary">
|
|
<tpl-body>
|
|
<vn-route-summary
|
|
route="$ctrl.routeSelected">
|
|
</vn-route-summary>
|
|
</tpl-body>
|
|
</vn-dialog>
|
|
<vn-worker-descriptor-popover
|
|
vn-id="workerDescriptor"
|
|
worker-fk="$ctrl.selectedWorker">
|
|
</vn-worker-descriptor-popover>
|
|
<a ui-sref="route.create"
|
|
vn-tooltip="New route"
|
|
vn-bind="+"
|
|
fixed-bottom-right>
|
|
<vn-float-button icon="add"></vn-float-button>
|
|
</a>
|
|
<vn-scroll-up></vn-scroll-up> |