mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-02 13:24:20 +01:00
81 lines
2.9 KiB
Plaintext
81 lines
2.9 KiB
Plaintext
|
<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">
|
||
|
<h1>Les Stages et ateliers du Fab Lab</h1>
|
||
|
</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">
|
||
|
<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">Ajouter un évènement</a>
|
||
|
</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">
|
||
|
<option value="">Tous les évènements</option>
|
||
|
<option value="passed">Les évènements déjà passés</option>
|
||
|
<option value="future">Les évènements à venir</option>
|
||
|
</select>
|
||
|
</div>
|
||
|
|
||
|
<table class="table">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th style="width:30%">Titre</th>
|
||
|
<th style="width:30%">Dates</th>
|
||
|
<th style="width:40%"></th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<tr ng-repeat="event in filtered = (events | eventsFilter:selectedTimezone)">
|
||
|
<td>
|
||
|
<a ui-sref="app.public.events_show({id: event.id})">{{ event.title }} </a>
|
||
|
</td>
|
||
|
<td>
|
||
|
<span>Du {{event.start_date | amDateFormat:'DD/MM/YYYY'}}<span class="text-sm font-thin"> au </span>{{event.end_date | amDateFormat:'DD/MM/YYYY'}}</span>
|
||
|
<br/>
|
||
|
<span ng-if="event.all_day == 'true'">Toute la journée</span>
|
||
|
<span ng-if="event.all_day == 'false'">
|
||
|
De {{event.start_date | date:'HH:mm'}}
|
||
|
<span class="text-sm font-thin"> à </span>
|
||
|
{{event.end_date | date:'HH:mm'}}
|
||
|
</span>
|
||
|
</td>
|
||
|
<td>
|
||
|
<div class="buttons">
|
||
|
<button class="btn btn-default" ui-sref="app.admin.events_edit({id: event.id})">
|
||
|
<i class="fa fa-edit"></i> Éditer
|
||
|
</button>
|
||
|
<%#<button class="btn" ng-click="removeEvent(event)">
|
||
|
<i class="fa fa-trash-o"></i>
|
||
|
</button>%>
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="col-lg-12 text-center">
|
||
|
<a class="btn btn-warning" ng-click="loadMoreEvents()" ng-if="paginateActive">Charger les stages et ateliers suivants ...</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</section>
|
||
|
</section>
|
||
|
|
||
|
|