mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-28 09:24:24 +01:00
(feat) add not valid status for event reservaiton
This commit is contained in:
parent
d5fa71e113
commit
8a3110cd0f
@ -460,6 +460,9 @@ Application.Controllers.controller('ShowEventReservationsController', ['$scope',
|
||||
$scope.isValidated = function (reservation) {
|
||||
return reservation.slots_reservations_attributes[0].is_valid === true || reservation.slots_reservations_attributes[0].is_valid === 'true';
|
||||
};
|
||||
$scope.isInvalidated = function (reservation) {
|
||||
return reservation.slots_reservations_attributes[0].is_valid === false || reservation.slots_reservations_attributes[0].is_valid === 'false';
|
||||
};
|
||||
|
||||
/**
|
||||
* Callback to validate a reservation
|
||||
|
@ -47,9 +47,10 @@
|
||||
<span ng-repeat="ticket in reservation.tickets_attributes">{{ticket.event_price_category.price_category.name}} : {{ticket.booked}}</span>
|
||||
</td>
|
||||
<td ng-if="event.pre_registration">
|
||||
<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) && !isInvalidated(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="event.amount !== 0 && 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="event.amount === 0 && isValidated(reservation) && !isCancelled(reservation) && !reservation.is_paid" class="v-middle badge text-sm bg-stage" translate="">{{ 'app.admin.event_reservations.event_status.registered' }}</span>
|
||||
<span ng-if="isInvalidated(reservation) && !isCancelled(reservation) && !reservation.is_paid" class="v-middle badge text-sm bg-event" translate="">{{ 'app.admin.event_reservations.event_status.not_validated' }}</span>
|
||||
<span ng-if="event.amount !== 0 && 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="event.amount === 0 && reservation.is_paid && !isCancelled(reservation)" class="v-middle badge text-sm bg-success" translate="">{{ 'app.admin.event_reservations.event_status.present' }}</span>
|
||||
<span ng-if="isCancelled(reservation)" class="v-middle badge text-sm bg-event" translate="">{{ 'app.admin.event_reservations.event_status.canceled' }}</span>
|
||||
|
@ -655,6 +655,7 @@ en:
|
||||
canceled: "Canceled"
|
||||
present: "Present"
|
||||
registered: "Registered"
|
||||
not_validated: "Not validated"
|
||||
affirmative: "yes"
|
||||
negative: "no"
|
||||
validate: "Validate"
|
||||
|
@ -655,6 +655,7 @@ fr:
|
||||
canceled: "Annulée"
|
||||
present: "Présent"
|
||||
registered: "Inscrit"
|
||||
not_validated: "Non validée"
|
||||
affirmative: "Oui"
|
||||
negative: "Non"
|
||||
validate: "Valider"
|
||||
|
Loading…
Reference in New Issue
Block a user