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

72 lines
2.4 KiB
HTML
Raw Normal View History

<div class="search-panel">
<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 claim by id or client name"
vn-focus>
</vn-textfield>
</vn-horizontal>
<vn-horizontal>
<vn-textfield
vn-one
label="Client"
2019-10-09 22:47:29 +00:00
ng-model="filter.client">
</vn-textfield>
</vn-horizontal>
<vn-horizontal>
<vn-textfield
vn-one
2018-09-05 05:54:45 +00:00
label="Claim Id"
2019-10-09 22:47:29 +00:00
ng-model="filter.id">
</vn-textfield>
<vn-textfield
vn-one
2018-09-05 05:54:45 +00:00
label="Client Id"
2019-10-09 22:47:29 +00:00
ng-model="filter.clientFk">
</vn-textfield>
</vn-horizontal>
<vn-horizontal>
<vn-autocomplete
vn-one
2019-10-09 22:47:29 +00:00
ng-model="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
2019-10-09 22:47:29 +00:00
ng-model="filter.attenderFk"
2018-12-12 08:20:31 +00:00
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"
2019-10-09 22:47:29 +00:00
ng-model="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"
2019-10-09 22:47:29 +00:00
ng-model="filter.created">
</vn-date-picker>
</vn-horizontal>
<vn-horizontal class="vn-mt-lg">
<vn-submit label="Search"></vn-submit>
</vn-horizontal>
</form>
</div>