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"
|
|
|
|
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"
|
|
|
|
model="filter.id">
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Tax number"
|
|
|
|
model="filter.fi">
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one label="Name"
|
|
|
|
model="filter.name">
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
field="filter.salesPersonFk"
|
|
|
|
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"
|
|
|
|
model="filter.socialName">
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Town/City"
|
|
|
|
model="filter.city">
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Postcode"
|
|
|
|
model="filter.postcode">
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Email"
|
|
|
|
model="filter.email">
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Phone"
|
|
|
|
model="filter.phone">
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal margin-large-top>
|
|
|
|
<vn-submit label="Search"></vn-submit>
|
|
|
|
</vn-horizontal>
|
|
|
|
</form>
|
2017-01-31 13:13:06 +00:00
|
|
|
</div>
|