72 lines
2.4 KiB
HTML
72 lines
2.4 KiB
HTML
<div class="search-panel">
|
|
<form ng-submit="$ctrl.onSearch()">
|
|
<vn-horizontal>
|
|
<vn-textfield
|
|
vn-one
|
|
label="General search"
|
|
model="filter.search"
|
|
info="Search claim by id or client name"
|
|
vn-focus>
|
|
</vn-textfield>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-textfield
|
|
vn-one
|
|
label="Client"
|
|
model="filter.client">
|
|
</vn-textfield>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-textfield
|
|
vn-one
|
|
label="Claim Id"
|
|
model="filter.id">
|
|
</vn-textfield>
|
|
<vn-textfield
|
|
vn-one
|
|
label="Client Id"
|
|
model="filter.clientFk">
|
|
</vn-textfield>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-autocomplete
|
|
vn-one
|
|
field="filter.salesPersonFk"
|
|
url="/client/api/Clients/activeWorkersWithRole"
|
|
search-function="{firstName: $search}"
|
|
value-field="id"
|
|
where="{role: 'employee'}"
|
|
label="Salesperson">
|
|
<tpl-item>{{firstName}} {{name}}</tpl-item>
|
|
</vn-autocomplete>
|
|
<vn-autocomplete
|
|
vn-one
|
|
field="filter.attenderFk"
|
|
url="/client/api/Clients/activeWorkersWithRole"
|
|
search-function="{firstName: $search}"
|
|
value-field="id"
|
|
where="{role: 'employee'}"
|
|
label="Attended by">
|
|
<tpl-item>{{firstName}} {{name}}</tpl-item>
|
|
</vn-autocomplete>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-autocomplete vn-one
|
|
label="State"
|
|
field="filter.claimStateFk"
|
|
url="/claim/api/ClaimStates"
|
|
show-field="description"
|
|
value-field="id">
|
|
<tpl-item>{{description}}</tpl-item>
|
|
</vn-autocomplete>
|
|
<vn-date-picker
|
|
vn-one
|
|
label="Created"
|
|
model="filter.created">
|
|
</vn-date-picker>
|
|
</vn-horizontal>
|
|
<vn-horizontal margin-large-top>
|
|
<vn-submit label="Search"></vn-submit>
|
|
</vn-horizontal>
|
|
</form>
|
|
</div> |