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

126 lines
3.8 KiB
HTML
Raw Normal View History

<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 ticket by id or alias"
vn-focus>
</vn-textfield>
</vn-horizontal>
<vn-horizontal>
<vn-textfield
vn-one
label="Client id"
2019-10-09 22:47:29 +00:00
ng-model="filter.clientFk">
</vn-textfield>
<vn-textfield
vn-one
label="Ticket id"
2019-10-09 22:47:29 +00:00
ng-model="filter.id">
</vn-textfield>
<vn-textfield
vn-one
label="Order id"
2019-10-09 22:47:29 +00:00
ng-model="filter.orderFk">
</vn-textfield>
</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-input-number
vn-one
min="0"
step="1"
label="Days onward"
2019-10-09 22:47:29 +00:00
ng-model="filter.scopeDays"
display-controls="true">
</vn-input-number>
</vn-horizontal>
<vn-horizontal>
<vn-textfield
vn-one
label="Nickname"
2019-10-09 22:47:29 +00:00
ng-model="filter.nickname">
</vn-textfield>
<vn-autocomplete
vn-one
2019-10-09 22:47:29 +00:00
ng-model="filter.salesPersonFk"
url="Clients/activeWorkersWithRole"
search-function="{firstName: $search}"
value-field="id"
where="{role: 'employee'}"
label="Sales person">
<tpl-item>{{firstName}} {{name}}</tpl-item>
</vn-autocomplete>
<vn-textfield
vn-one
label="Invoice"
2019-10-09 22:47:29 +00:00
ng-model="filter.refFk">
</vn-textfield>
</vn-horizontal>
<vn-horizontal>
<vn-autocomplete
vn-one
label="Agency"
2019-10-09 22:47:29 +00:00
ng-model="filter.agencyModeFk"
url="AgencyModes/isActive">
</vn-autocomplete>
<vn-autocomplete
vn-one
label="State"
2019-10-09 22:47:29 +00:00
ng-model="filter.stateFk"
url="States">
</vn-autocomplete>
<vn-autocomplete
vn-one
label="Grouped States"
value-field="alertLevel"
show-field="code"
2019-10-09 22:47:29 +00:00
ng-model="filter.alertLevel"
url="AlertLevels">
</vn-autocomplete>
</vn-horizontal>
2018-12-12 13:30:48 +00:00
<vn-horizontal>
<vn-autocomplete
vn-one
label="Warehouse"
2019-10-09 22:47:29 +00:00
ng-model="filter.warehouseFk"
url="Warehouses">
</vn-autocomplete>
<vn-autocomplete
vn-one
label="Province"
2019-10-09 22:47:29 +00:00
ng-model="filter.provinceFk"
url="Provinces">
</vn-autocomplete>
</vn-horizontal>
2020-02-06 06:37:41 +00:00
<vn-horizontal>
<vn-check
vn-one
label="My team"
ng-model="filter.myTeam"
triple-state="true">
</vn-check>
<vn-check
vn-one
label="Problems"
ng-model="filter.problems"
triple-state="true">
</vn-check>
</vn-horizontal>
<vn-horizontal class="vn-mt-lg">
<vn-submit label="Search"></vn-submit>
</vn-horizontal>
</form>
</div>