Merge pull request #137 from dasJ/filter

Allow filtering containers and images
pull/2/head
Kevan Ahlquist 9 years ago
commit a96298db59

@ -17,8 +17,9 @@
</li> </li>
</ul> </ul>
<div class="pull-right"> <div class="pull-right form-inline">
<input type="checkbox" ng-model="displayAll" id="displayAll" ng-change="toggleGetAll()"/> <label for="displayAll">Display All</label> <input type="checkbox" ng-model="displayAll" id="displayAll" ng-change="toggleGetAll()"/> <label for="displayAll">Display All</label>&nbsp;
<input type="text" class="form-control" style="vertical-align: center" id="filter" placeholder="Filter" ng-model="filter"/> <label class="sr-only" for="filter">Filter</label>
</div> </div>
</div> </div>
<table class="table table-striped"> <table class="table table-striped">
@ -33,7 +34,7 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr ng-repeat="container in containers|orderBy:predicate"> <tr ng-repeat="container in containers | filter:filter | orderBy:predicate">
<td><input type="checkbox" ng-model="container.Checked" /></td> <td><input type="checkbox" ng-model="container.Checked" /></td>
<td><a href="#/containers/{{ container.Id }}/">{{ container|containername}}</a></td> <td><a href="#/containers/{{ container.Id }}/">{{ container|containername}}</a></td>
<td><a href="#/images/{{ container.Image }}/">{{ container.Image }}</a></td> <td><a href="#/images/{{ container.Image }}/">{{ container.Image }}</a></td>

@ -3,15 +3,21 @@
<h2>Images:</h2> <h2>Images:</h2>
<ul class="nav nav-pills"> <div>
<li class="dropdown"> <ul class="nav nav-pills pull-left">
<a class="dropdown-toggle" id="drop4" role="button" data-toggle="dropdown" data-target="#">Actions <b class="caret"></b></a> <li class="dropdown">
<ul id="menu1" class="dropdown-menu" role="menu" aria-labelledby="drop4"> <a class="dropdown-toggle" id="drop4" role="button" data-toggle="dropdown" data-target="#">Actions <b class="caret"></b></a>
<li><a tabindex="-1" href="" ng-click="removeAction()">Remove</a></li> <ul id="menu1" class="dropdown-menu" role="menu" aria-labelledby="drop4">
</ul> <li><a tabindex="-1" href="" ng-click="removeAction()">Remove</a></li>
</li> </ul>
<li><a data-toggle="modal" data-target="#pull-modal" href="">Pull</a></li> </li>
</ul> <li><a data-toggle="modal" data-target="#pull-modal" href="">Pull</a></li>
</ul>
<div class="pull-right form-inline">
<input type="text" class="form-control" id="filter" placeholder="Filter" ng-model="filter"/> <label class="sr-only" for="filter">Filter</label>
</div>
</div>
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
@ -23,7 +29,7 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr ng-repeat="image in images | orderBy:predicate"> <tr ng-repeat="image in images | filter:filter | orderBy:predicate">
<td><input type="checkbox" ng-model="image.Checked" /></td> <td><input type="checkbox" ng-model="image.Checked" /></td>
<td><a href="#/images/{{ image.Id }}/?tag={{ image|repotag }}">{{ image.Id|truncate:20}}</a></td> <td><a href="#/images/{{ image.Id }}/?tag={{ image|repotag }}">{{ image.Id|truncate:20}}</a></td>
<td>{{ image|repotag }}</td> <td>{{ image|repotag }}</td>

Loading…
Cancel
Save