2019-03-21 12:46:14 +00:00
|
|
|
<div class="search-panel">
|
|
|
|
<form ng-submit="$ctrl.onSearch()">
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="General search"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.search"
|
2019-04-12 12:33:08 +00:00
|
|
|
info="Search routes by id"
|
2019-03-21 12:46:14 +00:00
|
|
|
vn-focus>
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.workerFk"
|
2019-03-21 12:46:14 +00:00
|
|
|
url="/client/api/Clients/activeWorkersWithRole"
|
|
|
|
show-field="nickname"
|
|
|
|
search-function="{firstName: $search}"
|
|
|
|
value-field="id"
|
|
|
|
where="{role: 'employee'}"
|
|
|
|
label="Worker">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
label="Agency"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.agencyModeFk"
|
2019-03-21 12:46:14 +00:00
|
|
|
url="/agency/api/AgencyModes/isActive"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
2019-04-03 11:51:14 +00:00
|
|
|
<vn-horizontal>
|
2019-10-08 21:57:02 +00:00
|
|
|
<vn-date-picker
|
|
|
|
vn-one
|
2019-04-03 11:51:14 +00:00
|
|
|
label="From"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.from">
|
2019-04-03 11:51:14 +00:00
|
|
|
</vn-date-picker>
|
2019-10-08 21:57:02 +00:00
|
|
|
<vn-date-picker
|
|
|
|
vn-one
|
2019-04-03 11:51:14 +00:00
|
|
|
label="To"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.to">
|
2019-04-03 11:51:14 +00:00
|
|
|
</vn-date-picker>
|
|
|
|
</vn-horizontal>
|
2019-03-21 12:46:14 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
label="Vehicle"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.vehicleFk"
|
2019-03-21 12:46:14 +00:00
|
|
|
url="/route/api/Vehicles"
|
|
|
|
show-field="numberPlate"
|
|
|
|
value-field="id">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="m³"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.m3">
|
2019-03-21 12:46:14 +00:00
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2019-05-02 11:25:41 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
label="Warehouse"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.warehouseFk"
|
2019-05-02 11:25:41 +00:00
|
|
|
url="/route/api/Warehouses"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id">
|
|
|
|
</vn-autocomplete>
|
2019-03-21 12:46:14 +00:00
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Description"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.description">
|
2019-03-21 12:46:14 +00:00
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-horizontal class="vn-mt-lg">
|
2019-03-21 12:46:14 +00:00
|
|
|
<vn-submit label="Search"></vn-submit>
|
|
|
|
</vn-horizontal>
|
|
|
|
</form>
|
|
|
|
</div>
|