2016-03-23 18:39:41 +01: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">
|
2022-01-11 11:03:27 +01:00
|
|
|
<a ng-click="backPrevLocation($event)"><i class="fas fa-long-arrow-alt-left "></i></a>
|
2016-03-23 18:39:41 +01:00
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-10 col-sm-10 col-md-8 b-l">
|
|
|
|
<section class="heading-title">
|
2019-12-17 18:06:56 +01:00
|
|
|
<h1>{{ 'app.admin.event_reservations.the_reservations' | translate }} {{event.title}}</h1>
|
2016-03-23 18:39:41 +01:00
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<section class="m-lg">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
|
|
|
|
|
|
|
<table class="table" ng-if="reservations.length > 0">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2023-06-26 16:02:54 +02:00
|
|
|
<th style="width:25%" translate>{{ 'app.admin.event_reservations.booked_by' }}</th>
|
|
|
|
<th style="width:25%" translate>{{ 'app.admin.event_reservations.reservations' }}</th>
|
|
|
|
<th style="width:25%" translate>{{ 'app.admin.event_reservations.date' }}</th>
|
2019-12-17 18:06:56 +01:00
|
|
|
<th style="width:25%" translate>{{ 'app.admin.event_reservations.reserved_tickets' }}</th>
|
2023-06-26 16:02:54 +02:00
|
|
|
<th ng-if="event.pre_registration" style="width:25%" translate>{{ 'app.admin.event_reservations.status' }}</th>
|
|
|
|
<th ng-if="event.pre_registration" style="width:25%" translate>{{ 'app.admin.event_reservations.gestion' }}</th>
|
|
|
|
<th style="width:5%"></th>
|
2016-03-23 18:39:41 +01:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2019-11-21 11:15:05 +01:00
|
|
|
<tr ng-repeat="reservation in reservations" ng-class="{'disabled': isCancelled(reservation)}">
|
2016-03-23 18:39:41 +01:00
|
|
|
<td class="text-c">
|
2023-06-26 16:02:54 +02:00
|
|
|
<a ui-sref="app.logged.members_show({id: reservation.user_id})">{{ reservation.user_full_name }} </a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span ng-if="event.event_type === 'standard'">{{ reservation.user_full_name }} </span>
|
2023-05-15 18:23:13 +02:00
|
|
|
<div ng-repeat="bu in reservation.booking_users_attributes">
|
2023-06-26 16:02:54 +02:00
|
|
|
<span>{{bu.name}}</span>
|
2023-05-15 18:23:13 +02:00
|
|
|
</div>
|
2016-03-23 18:39:41 +01:00
|
|
|
</td>
|
|
|
|
<td>{{ reservation.created_at | amDateFormat:'LL LTS' }}</td>
|
2016-08-29 17:51:11 +02:00
|
|
|
<td>
|
2019-12-17 18:06:56 +01:00
|
|
|
<span ng-if="reservation.nb_reserve_places > 0">{{ 'app.admin.event_reservations.full_price_' | translate }} {{reservation.nb_reserve_places}}<br/></span>
|
2022-06-28 18:42:41 +02:00
|
|
|
<span ng-repeat="ticket in reservation.tickets_attributes">{{ticket.event_price_category.price_category.name}} : {{ticket.booked}}</span>
|
2023-06-26 16:02:54 +02:00
|
|
|
</td>
|
|
|
|
<td ng-if="event.pre_registration">
|
2023-06-28 18:23:07 +02:00
|
|
|
<span ng-if="!isValidated(reservation) && !isCancelled(reservation) && !reservation.is_paid" class="v-middle badge text-sm bg-info" translate="">{{ 'app.admin.event_reservations.event_status.pre_registered' }}</span>
|
|
|
|
<span ng-if="isValidated(reservation) && !isCancelled(reservation) && !reservation.is_paid" class="v-middle badge text-sm bg-stage" translate="">{{ 'app.admin.event_reservations.event_status.to_pay' }}</span>
|
|
|
|
<span ng-if="reservation.is_paid && !isCancelled(reservation)" class="v-middle badge text-sm bg-success" translate="">{{ 'app.admin.event_reservations.event_status.paid' }}</span>
|
|
|
|
<span ng-if="isCancelled(reservation)" class="v-middle badge text-sm bg-event" translate="">{{ 'app.admin.event_reservations.event_status.canceled' }}</span>
|
2023-06-26 16:02:54 +02:00
|
|
|
</td>
|
|
|
|
<td ng-if="event.pre_registration">
|
2023-06-27 17:50:47 +02:00
|
|
|
<button class="btn btn-default" ng-click="validateReservation(reservation)" ng-if="!isValidated(reservation) && !isCancelled(reservation) && !reservation.is_paid" translate>
|
2023-06-26 16:02:54 +02:00
|
|
|
{{ 'app.admin.event_reservations.validate' }}
|
|
|
|
</button>
|
2023-06-27 17:50:47 +02:00
|
|
|
<button class="btn btn-default" ng-click="payReservation(reservation)" ng-if="isValidated(reservation) && !isCancelled(reservation) && !reservation.is_paid" translate>
|
2023-06-26 16:02:54 +02:00
|
|
|
{{ 'app.admin.event_reservations.pay' }}
|
|
|
|
</button>
|
2016-08-29 17:51:11 +02:00
|
|
|
</td>
|
2016-03-23 18:39:41 +01:00
|
|
|
<td>
|
|
|
|
<div class="buttons">
|
|
|
|
<button class="btn btn-default" ui-sref="app.public.events_show({id: event.id})">
|
2023-06-26 16:02:54 +02:00
|
|
|
<i class="fa fa-eye"></i>
|
2016-03-23 18:39:41 +01:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2019-12-17 18:06:56 +01:00
|
|
|
<p ng-if="reservations.length == 0" translate>{{ 'app.admin.event_reservations.no_reservations_for_now' }}</p>
|
2016-03-23 18:39:41 +01:00
|
|
|
|
2019-12-17 18:06:56 +01:00
|
|
|
<button type="button" class="btn btn-warning m-t m-b" ui-sref="app.admin.events" translate>{{ 'app.admin.event_reservations.back_to_monitoring' }}</button>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</section>
|