Skip to content

Commit f6672b0

Browse files
committed
add filter to jobList
1 parent bb42b74 commit f6672b0

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

Views/joinUs/jobList.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,20 @@
22
<div class="row" ng-controller="jobListCtrl">
33
<div class="col-md-offset-1 col-md-10">
44
<h3>加入我们</h3><hr />
5+
<div class="row">
6+
<div class="col-md-3">
7+
<input class="form-control" placeholder="过滤:输入关键词试试......" ng-model="searchText" />
8+
</div>
9+
</div><br />
510
<table class="table table-bordered table-hover text-center">
611
<tr>
712
<td>职位名称</td><td>职位性质</td><td>工作地点</td><td>发布日期</td>
813
</tr>
9-
<tr ng-repeat="job in jobs">
10-
<td class="job"><a href="#/joinUs/{{job.id}}">{{job.name}}</a></td><td>{{job.type}}</td><td>{{job.location}}</td><td>{{publishDate}}</td>
14+
<tr ng-repeat="job in jobs | filter:searchText">
15+
<td class="job"><a href="#/joinUs/{{job.id}}">{{job.name}}</a></td>
16+
<td>{{job.type}}</td>
17+
<td>{{job.location}}</td>
18+
<td>{{publishDate}}</td>
1119
</tr>
1220
</table>
1321
</div>

0 commit comments

Comments
 (0)