1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-13 23:48:55 +01:00
fab-manager/app/assets/templates/admin/events/index.html.erb

81 lines
3.2 KiB
Plaintext
Raw Normal View History

2015-05-05 03:10:25 +02:00
<section class="heading b-b">
<div class="row no-gutter b-b">
<div class="col-xs-2 col-sm-2 col-md-1">
<section class="heading-btn">
<a href="#" ng-click="backPrevLocation($event)"><i class="fa fa-long-arrow-left "></i></a>
</section>
</div>
<div class="col-xs-10 col-sm-10 col-md-8 b-l b-r-md">
<section class="heading-title">
2016-03-23 18:39:41 +01:00
<h1 translate>{{ 'fablab_courses_and_workshops' }}</h1>
2015-05-05 03:10:25 +02:00
</section>
</div>
<div class="col-xs-12 col-sm-12 col-md-3 b-t hide-b-md" ng-if="isAuthorized(['admin'])">
<section class="heading-actions wrapper">
2016-03-23 18:39:41 +01:00
<a class="btn btn-lg btn-warning bg-white b-2x rounded m-t-sm upper text-sm" ui-sref="app.admin.events_new" role="button" translate>{{ 'add_an_event' }}</a>
2015-05-05 03:10:25 +02:00
</section>
</div>
</div>
<section class="m-lg">
<div class="row">
<div class="col-md-12">
<div class="col-md-6 m-b">
<select ng-model="selectedTimezone" class="form-control">
2016-03-23 18:39:41 +01:00
<option value="" translate>{{ 'all_events' }}</option>
<option value="passed" translate>{{ 'passed_events' }}</option>
<option value="future" translate>{{ 'events_to_come' }}</option>
2015-05-05 03:10:25 +02:00
</select>
</div>
<table class="table">
<thead>
<tr>
2016-03-23 18:39:41 +01:00
<th style="width:30%" translate>{{ 'title' }}</th>
<th style="width:30%" translate>{{ 'dates' }}</th>
2015-05-05 03:10:25 +02:00
<th style="width:40%"></th>
</tr>
</thead>
<tbody>
2016-03-23 18:39:41 +01:00
<tr ng-repeat="event in filtered = (events | eventsReservationsFilter:selectedTimezone)">
2015-05-05 03:10:25 +02:00
<td>
<a ui-sref="app.public.events_show({id: event.id})">{{ event.title }} </a>
</td>
<td>
2016-03-23 18:39:41 +01:00
<span> {{ 'from_DATE' | translate:{DATE:(event.start_date | amDateFormat:'LL')} }} <span class="text-sm font-thin" translate>{{ 'to_date' }}</span>{{event.end_date | amDateFormat:'LL'}}</span>
2015-05-05 03:10:25 +02:00
<br/>
2016-03-23 18:39:41 +01:00
<span ng-if="event.all_day == 'true'" translate>{{ 'all_day' }}</span>
2015-05-05 03:10:25 +02:00
<span ng-if="event.all_day == 'false'">
2016-03-23 18:39:41 +01:00
{{ 'from_TIME' | translate:{TIME:(event.start_date | amDateFormat:'LT')} }}
<span class="text-sm font-thin" translate>{{ 'to_time' }}</span>
{{event.end_date | amDateFormat:'LT'}}
2015-05-05 03:10:25 +02:00
</span>
</td>
<td>
<div class="buttons">
2016-03-23 18:39:41 +01:00
<button class="btn btn-default" ui-sref="app.admin.event_reservations({id: event.id})">
<i class="fa fa-bookmark"></i> {{ 'view_reservations' | translate }}
</button>
2015-05-05 03:10:25 +02:00
<button class="btn btn-default" ui-sref="app.admin.events_edit({id: event.id})">
2016-03-23 18:39:41 +01:00
<i class="fa fa-edit"></i> {{ 'edit' | translate }}
2015-05-05 03:10:25 +02:00
</button>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="row">
<div class="col-lg-12 text-center">
2016-03-23 18:39:41 +01:00
<a class="btn btn-warning" ng-click="loadMoreEvents()" ng-if="paginateActive" translate>{{ 'load_the_next_courses_and_workshops' }}</a>
2015-05-05 03:10:25 +02:00
</div>
</div>
</section>
</section>