2019-01-30 23:33:43 +00:00
|
|
|
<div class="search-panel">
|
2019-02-05 08:13:15 +00:00
|
|
|
<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 client by id or name"
|
2019-02-05 08:13:15 +00:00
|
|
|
vn-focus>
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one label="Name"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.name">
|
2019-02-05 08:13:15 +00:00
|
|
|
</vn-textfield>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.salesPersonFk"
|
2021-04-13 12:08:10 +00:00
|
|
|
url="Workers/activeWithInheritedRole"
|
2019-02-05 08:13:15 +00:00
|
|
|
search-function="{firstName: $search}"
|
|
|
|
show-field="firstName"
|
|
|
|
value-field="id"
|
|
|
|
where="{role: 'salesPerson'}"
|
|
|
|
label="Salesperson">
|
|
|
|
<tpl-item>{{firstName}} {{name}}</tpl-item>
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2020-03-10 06:38:21 +00:00
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Tax number"
|
|
|
|
ng-model="filter.fi">
|
|
|
|
</vn-textfield>
|
2019-02-05 08:13:15 +00:00
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Social name"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.socialName">
|
2019-02-05 08:13:15 +00:00
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Town/City"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.city">
|
2019-02-05 08:13:15 +00:00
|
|
|
</vn-textfield>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Postcode"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.postcode">
|
2019-02-05 08:13:15 +00:00
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
2022-04-05 13:21:20 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
ng-model="filter.provinceFk"
|
|
|
|
url="Provinces"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
|
|
|
label="Province">
|
|
|
|
</vn-autocomplete>
|
2022-10-26 10:40:13 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
ng-model="filter.zoneFk"
|
|
|
|
url="Zones"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
|
|
|
label="Zone">
|
|
|
|
</vn-autocomplete>
|
2022-04-05 13:21:20 +00:00
|
|
|
</vn-horizontal>
|
2019-02-05 08:13:15 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Email"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.email">
|
2019-02-05 08:13:15 +00:00
|
|
|
</vn-textfield>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Phone"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.phone">
|
2019-02-05 08:13:15 +00:00
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-horizontal class="vn-mt-lg">
|
2019-02-05 08:13:15 +00:00
|
|
|
<vn-submit label="Search"></vn-submit>
|
|
|
|
</vn-horizontal>
|
|
|
|
</form>
|
2017-01-31 13:13:06 +00:00
|
|
|
</div>
|