mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-12 23:09:03 +01:00
85 lines
4.0 KiB
HTML
85 lines
4.0 KiB
HTML
<div class="col-md-6 m-b m-t">
|
|
<select ng-model="eventsScope.selected" class="form-control events-list-filter" ng-change="changeScope()">
|
|
<option value="" translate>{{ 'app.admin.events.all_events' }}</option>
|
|
<option value="passed" translate>{{ 'app.admin.events.passed_events' }}</option>
|
|
<option value="future" translate>{{ 'app.admin.events.events_to_come' }}</option>
|
|
<option value="future_asc" translate>{{ 'app.admin.events.events_to_come_asc' }}</option>
|
|
</select>
|
|
</div>
|
|
|
|
<table class="table events-list">
|
|
<thead>
|
|
<tr>
|
|
<th style="width:30%" translate>{{ 'app.admin.events.title' }}</th>
|
|
<th style="width:30%" translate>{{ 'app.admin.events.dates' }}</th>
|
|
<th style="width:15%" translate>{{ 'app.admin.events.types' }}</th>
|
|
<th style="width:10%" translate>{{ 'app.admin.events.booking' }}</th>
|
|
<th style="width:15%"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr height="80px" ng-repeat="event in events">
|
|
|
|
<td style="vertical-align:middle">
|
|
<a ui-sref="app.public.events_show({id: event.id})">{{ event.title }} </a>
|
|
</td>
|
|
|
|
<td style="vertical-align:middle">
|
|
|
|
<!--One day event-->
|
|
<span ng-if="(event.start_date | amDateFormat:'LL')==(event.end_date | amDateFormat:'LL')">
|
|
{{ 'app.admin.events.on_DATE' | translate:{DATE:(event.start_date | amDateFormat:'LL')} }}
|
|
<span ng-if="event.all_day === false">
|
|
{{ 'app.admin.events.from_TIME' | translate:{TIME:event.start_time} }}
|
|
<span class="text-sm font-thin" translate>{{ 'app.admin.events.to_time' }}</span>
|
|
{{event.end_time}}
|
|
</span>
|
|
</span>
|
|
|
|
<!--Multiple days event-->
|
|
<span ng-if="(event.start_date | amDateFormat:'LL')!=(event.end_date | amDateFormat:'LL')">
|
|
{{'app.admin.events.from_DATE' | translate:{DATE:(event.start_date | amDateFormat:'LL')} }}
|
|
{{'app.admin.events.to_date' | translate}} {{event.end_date | amDateFormat:'LL'}}
|
|
<br ng-if="event.all_day === false"/>
|
|
<span ng-if="event.all_day === false">
|
|
{{ 'app.admin.events.from_TIME' | translate:{TIME:event.start_time} }}
|
|
<span class="text-sm font-thin" translate>{{ 'app.admin.events.to_time' }}</span>
|
|
{{event.end_time}}
|
|
</span>
|
|
</span>
|
|
</td>
|
|
|
|
<td>
|
|
<span ng-if="event.event_type === 'standard'" class="v-middle badge text-sm bg-stage" translate="">{{ 'app.admin.events.event_type.standard' }}</span>
|
|
<span ng-if="event.event_type === 'nominative'" class="v-middle badge text-sm bg-event" translate="">{{ 'app.admin.events.event_type.nominative' }}</span>
|
|
<span ng-if="event.event_type === 'family'" class="v-middle badge text-sm bg-atelier" translate="">{{ 'app.admin.events.event_type.family' }}</span>
|
|
<span ng-if="event.pre_registration" class="v-middle badge text-sm bg-info" translate="">{{ 'app.admin.events.pre_registration' }}</span>
|
|
</td>
|
|
|
|
<td style="vertical-align:middle">
|
|
<span class="ng-binding" ng-if="event.nb_total_places > 0">{{ event.nb_total_places - event.nb_free_places }} / {{ event.nb_total_places }}</span>
|
|
<div class="ng-binding" ng-if="event.pre_registration">{{'app.admin.events.NUMBER_pre_registered' | translate:{NUMBER:event.nb_places_for_pre_registration} }}</div>
|
|
<span class="badge font-sbold cancelled" ng-if="event.nb_total_places == -1" translate>{{ 'app.admin.events.cancelled' }}</span>
|
|
<span class="badge font-sbold" ng-if="!event.nb_total_places" translate>{{ 'app.admin.events.without_reservation' }}</span>
|
|
</td>
|
|
|
|
<td style="vertical-align:middle">
|
|
<div class="buttons">
|
|
<a class="btn btn-default" ui-sref="app.admin.event_reservations({id: event.id})">
|
|
<i class="fa fa-eye"></i>
|
|
</a>
|
|
<a class="btn btn-default" ui-sref="app.admin.events_edit({id: event.id})">
|
|
<i class="fa fa-edit"></i>
|
|
</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12 text-center">
|
|
<a class="btn btn-warning" ng-click="loadMoreEvents()" ng-if="paginateActive" translate>{{ 'app.admin.events.load_the_next_events' }}</a>
|
|
</div>
|
|
</div>
|