mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 13:05:49 +00:00
add filter for owner
This commit is contained in:
parent
1adafc5b0b
commit
5f0f721837
1 changed files with 9 additions and 1 deletions
|
@ -1,4 +1,12 @@
|
|||
<h2>Owners</h2>
|
||||
|
||||
<form onsubmit="javascript:void(0)">
|
||||
<div class="form-group ">
|
||||
<label>Seach</label>
|
||||
<input type="text" class="form-control" placeholder="Filter" ng-model="$ctrl.query" />
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -10,7 +18,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
|
||||
<tr ng-repeat="owner in $ctrl.owners">
|
||||
<tr ng-repeat="owner in $ctrl.owners | filter:$ctrl.query">
|
||||
<td>
|
||||
<a href="#!/owners/{{owner.id}}">
|
||||
{{owner.firstName}} {{owner.lastName}}
|
||||
|
|
Loading…
Reference in a new issue