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

77 lines
2.0 KiB
HTML
Raw Normal View History

<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="Client id"
2019-10-09 22:47:29 +00:00
ng-model="filter.id">
2019-02-05 08:13:15 +00:00
</vn-textfield>
<vn-textfield
vn-one
label="Tax number"
2019-10-09 22:47:29 +00:00
ng-model="filter.fi">
2019-02-05 08:13:15 +00:00
</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"
2019-02-05 08:13:15 +00:00
url="/client/api/Clients/activeWorkersWithRole"
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>
<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>
<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>
<vn-horizontal class="vn-mt-lg">
2019-02-05 08:13:15 +00:00
<vn-submit label="Search"></vn-submit>
</vn-horizontal>
</form>
</div>