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

144 lines
4.8 KiB
HTML
Raw Normal View History

<div class="search-panel">
2021-01-11 13:54:24 +00:00
<form id="manifold-form" ng-submit="$ctrl.onSearch()">
2021-01-08 13:32:48 +00:00
<vn-horizontal class="vn-px-lg vn-pt-lg">
<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>
2021-01-08 13:32:48 +00:00
<vn-horizontal class="vn-px-lg">
<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="Order id"
2019-10-09 22:47:29 +00:00
ng-model="filter.orderFk">
</vn-textfield>
</vn-horizontal>
2021-01-08 13:32:48 +00:00
<section class="vn-px-md">
2021-01-11 13:54:24 +00:00
<vn-horizontal class="manifold-panel vn-pa-md">
2021-01-08 13:32:48 +00:00
<vn-date-picker
vn-one
label="From"
ng-model="filter.from"
2021-01-11 13:54:24 +00:00
on-change="$ctrl.from = value">
2021-01-08 13:32:48 +00:00
</vn-date-picker>
<vn-date-picker
vn-one
label="To"
ng-model="filter.to"
2021-01-11 13:54:24 +00:00
on-change="$ctrl.to = value">
2021-01-08 13:32:48 +00:00
</vn-date-picker>
2021-01-22 11:02:03 +00:00
<vn-none class="or vn-px-md" translate>Or</vn-none>
2021-01-08 13:32:48 +00:00
<vn-input-number
vn-one
min="0"
step="1"
label="Days onward"
ng-model="filter.scopeDays"
on-change="$ctrl.scopeDays = value"
display-controls="true">
</vn-input-number>
<vn-icon color-marginal
icon="info"
vn-tooltip="Cannot choose a range of dates and days onward at the same time">
</vn-icon>
2021-01-08 13:32:48 +00:00
</vn-horizontal>
</section>
<vn-horizontal class="vn-px-lg">
<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="Workers/activeWithInheritedRole"
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>
2021-01-08 13:32:48 +00:00
<vn-horizontal class="vn-px-lg">
<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
data="$ctrl.groupedStates"
label="Grouped States"
value-field="id"
show-field="name"
ng-model="filter.alertLevel">
<tpl-item>
{{name}}
</tpl-item>
</vn-autocomplete>
</vn-horizontal>
2021-01-08 13:32:48 +00:00
<vn-horizontal class="vn-px-lg">
<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-textfield
vn-one
label="Collection"
ng-model="filter.collectionFk">
</vn-textfield>
</vn-horizontal>
2021-01-08 13:32:48 +00:00
<vn-horizontal class="vn-px-lg">
2020-02-06 06:37:41 +00:00
<vn-check
vn-one
label="My team"
ng-model="filter.myTeam"
triple-state="true">
</vn-check>
<vn-check
vn-one
2020-03-02 10:35:43 +00:00
label="With problems"
2020-02-06 06:37:41 +00:00
ng-model="filter.problems"
triple-state="true">
</vn-check>
2020-03-02 10:35:43 +00:00
<vn-check
vn-one
label="Pending"
ng-model="filter.pending"
triple-state="true">
</vn-check>
2020-02-06 06:37:41 +00:00
</vn-horizontal>
2021-01-08 13:32:48 +00:00
<vn-horizontal class="vn-px-lg vn-pb-lg vn-mt-lg">
<vn-submit label="Search"></vn-submit>
</vn-horizontal>
</form>
</div>