eventman/angular_app/events-list.html

51 lines
2.4 KiB
HTML
Raw Normal View History

2015-04-05 22:16:11 +02:00
<!-- show the list of Events -->
2015-03-22 17:08:25 +01:00
<div class="container">
2015-04-05 18:54:51 +02:00
<h1>{{'Events' | translate}}
<button ng-click="$state.go('event.new')" class="btn btn-success">
<span class="glyphicon glyphicon-plus-sign"></span>
{{'Add event' | translate}}
</button>
</h1>
<div class="panel panel-primary table-striped top5">
<div class="panel-heading">{{'Events' | translate}}</div>
<div class="panel-body">
<form class="form-inline">
<div class="form-group">
<label for="query-events">{{'Search:' | translate}}</label>
2015-04-05 18:54:51 +02:00
<input type="text" id="query-events" class="form-control" placeholder="{{'Event title' | translate}}" ng-model="query">
</div>
<div class="form-group">
<label for="events-order">Sort by:</label>
<select id="events-order" class="form-control" ng-model="eventsOrderProp">
<option value="title">{{'Title' | translate}}</option>
<option value="-title">{{'Title (descending)' | translate}}</option>
<option value="begin-date">{{'Date' | translate}}</option>
<option value="-begin-date">{{'Date (descending)' | translate}}</option>
2015-04-05 18:54:51 +02:00
</select>
</div>
</form>
2015-03-15 22:13:06 +01:00
2015-04-05 18:54:51 +02:00
<table class="table table-striped">
<thead>
<tr>
<td><strong>{{'Event' | translate}}</strong></td>
2015-04-08 22:06:11 +02:00
<td><strong>{{'Delete' | translate}}</strong></td>
2015-04-05 18:54:51 +02:00
</tr>
</thead>
<tbody>
<tr ng-repeat="event in events | splittedFilter:query | orderBy:eventsOrderProp">
2015-04-05 18:54:51 +02:00
<td>
<span><strong><a ui-sref="event.info({id: event._id})">{{event.title}}</a></strong></span>
<p>{{'Begins:' | translate}} {{event['begin-date']}}<br/>
{{'Ends:' | translate}} {{event['end-date']}}</p>
</td>
<td>
<button ng-click="remove(event._id)" type="button" class="btn btn-link glyphicon glyphicon-trash"></button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
2015-03-22 09:08:38 +01:00
</div>