improve view of filters

This commit is contained in:
Davide Alberani 2015-03-15 22:13:06 +01:00
parent 22da76e932
commit 6a50a4d965
2 changed files with 10 additions and 4 deletions

View file

@ -1,8 +1,8 @@
<div class="container-fluid">
<div class="row">
<div class="col-md-2">
<div class="col-md-10">
Search: <input ng-model="query2">
Search: <input ng-model="query">
Sort by:
<select ng-model="orderProp">
<option value="title">Alphabetical</option>
@ -10,10 +10,13 @@
</select>
</div>
</div>
<div class="row">
<div class="col-md-10">
<ul class="events">
<li ng-repeat="event in events | filter:query2 | orderBy:orderProp">
<li ng-repeat="event in events | filter:query | orderBy:orderProp">
<span>{{event.title}}</span>
<p>{{event['begin-datetime']}}</p>
</li>

View file

@ -1,6 +1,6 @@
<div class="container-fluid">
<div class="row">
<div class="col-md-2">
<div class="col-md-10">
Search: <input ng-model="query">
Sort by:
@ -10,6 +10,9 @@
</select>
</div>
</div>
<div class="row">
<div class="col-md-10">
<ul class="persons">