salix/modules/route/front/search-panel/index.html

79 lines
2.4 KiB
HTML
Raw Normal View History

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"
url="Clients/activeWorkersWithRole"
2019-03-21 12:46:14 +00:00
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"
url="AgencyModes/isActive"
2019-03-21 12:46:14 +00:00
show-field="name"
value-field="id">
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
<vn-date-picker
vn-one
label="From"
2019-10-09 22:47:29 +00:00
ng-model="filter.from">
</vn-date-picker>
<vn-date-picker
vn-one
label="To"
2019-10-09 22:47:29 +00:00
ng-model="filter.to">
</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"
url="Vehicles"
2019-03-21 12:46:14 +00:00
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"
url="Warehouses"
2019-05-02 11:25:41 +00:00
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>
<vn-horizontal class="vn-mt-lg">
2019-03-21 12:46:14 +00:00
<vn-submit label="Search"></vn-submit>
</vn-horizontal>
</form>
</div>