eventman/angular_app/events-list.html

29 lines
683 B
HTML
Raw Normal View History

2015-03-15 18:00:08 +01:00
<div class="container-fluid">
<div class="row">
2015-03-15 22:13:06 +01:00
<div class="col-md-10">
2015-03-15 18:00:08 +01:00
2015-03-15 22:13:06 +01:00
Search: <input ng-model="query">
2015-03-15 18:00:08 +01:00
Sort by:
<select ng-model="orderProp">
<option value="title">Alphabetical</option>
<option value="begin-datetime">Date</option>
</select>
</div>
2015-03-15 22:13:06 +01:00
</div>
<div class="row">
2015-03-15 18:00:08 +01:00
<div class="col-md-10">
<ul class="events">
2015-03-15 22:13:06 +01:00
<li ng-repeat="event in events | filter:query | orderBy:orderProp">
2015-03-15 23:05:59 +01:00
<span><a href="/#/events/{{event.id}}">{{event.title}}</a></span>
2015-03-15 18:00:08 +01:00
<p>{{event['begin-datetime']}}</p>
</li>
</ul>
</div>
</div>
</div>