1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

move availability options to new step + wording

This commit is contained in:
Sylvain 2020-03-02 16:52:54 +01:00
parent a44bf85014
commit 5765e3d2e4
11 changed files with 31 additions and 22 deletions

View File

@ -726,7 +726,7 @@ Application.Controllers.controller('CreateEventModalController', ['$scope', '$ui
$scope.next = function () {
if ($scope.step === 1) { $scope.setNbTotalPlaces(); }
if ($scope.step === 2) { return validateSelection(); }
if ($scope.step === 4) { return validateRecurrence(); }
if ($scope.step === 5) { return validateRecurrence(); }
return $scope.step++;
};
@ -839,7 +839,7 @@ Application.Controllers.controller('CreateEventModalController', ['$scope', '$ui
if (!$scope.availability.period) {
return growl.error(_t('app.admin.calendar.select_period'));
}
if (!$scope.availability.nb_periods) {
if (!$scope.availability.nb_periods || $scope.availability.nb_periods < 1) {
return growl.error(_t('app.admin.calendar.select_nb_period'));
}
if (!$scope.availability.end_date) {

View File

@ -87,8 +87,13 @@
</fieldset>
</div>
</div>
</div>
<div class="modal-body" ng-show="step === 4">
<div class="m-t-sm">
<p class="text-center font-sbold" translate>{{ 'app.admin.calendar.restrict_options' }}</p>
</div>
<div id="tagAssociate" class="m-t-lg">
<p class="text-center font-sbold" translate>{{ 'app.admin.calendar.restrict_this_slot_with_labels_optional' }}</p>
<p class="text-center font-sbold" translate>{{ 'app.admin.calendar.restrict_with_labels' }}</p>
<div class="row">
<div class="col-sm-12">
<ui-select multiple ng-model="availability.tag_ids" class="form-control">
@ -103,7 +108,7 @@
</div>
</div>
<div class="m-t-sm">
<p class="text-center font-sbold" translate>{{ 'app.admin.calendar.restrict_this_slot_for_subscriptions_optional' }}</p>
<p class="text-center font-sbold" translate>{{ 'app.admin.calendar.restrict_for_subscriptions' }}</p>
<div class="row">
<div class="form-group col-md-12">
<label for="is_only_subscriptions" translate>{{ 'app.admin.calendar.enabled' }}</label>
@ -132,7 +137,7 @@
</div>
</div>
</div>
<div class="modal-body m-h" ng-show="step === 4">
<div class="modal-body m-h" ng-show="step === 5">
<div class="m-t-sm">
<p class="text-center font-sbold" translate>{{ 'app.admin.calendar.recurrence' }}</p>
<div class="row">
@ -189,7 +194,7 @@
</div>
</div>
</div>
<div class="modal-body m-h" ng-show="step === 5">
<div class="modal-body m-h" ng-show="step === 6">
<div class="m-t-sm">
<p class="text-center font-sbold" translate>{{ 'app.admin.calendar.summary' }}</p>
<div class="row">
@ -213,12 +218,12 @@
</div>
</div>
</div>
<div class="modal-footer" ng-show="step < 5">
<div class="modal-footer" ng-show="step < 6">
<button class="btn btn-info" ng-click="previous()" ng-disabled="step === 1" translate>{{ 'app.admin.calendar.previous' }}</button>
<button class="btn btn-info" ng-click="next()" translate>{{ 'app.admin.calendar.next' }}</button>
<button class="btn btn-default" ng-click="cancel()" translate>{{ 'app.shared.buttons.cancel' }}</button>
</div>
<div class="modal-footer" ng-show="step === 5">
<div class="modal-footer" ng-show="step === 6">
<button class="btn btn-info" ng-click="previous()" translate>{{ 'app.admin.calendar.previous' }}</button>
<button class="btn btn-warning" ng-click="ok()" translate>{{ 'app.shared.buttons.confirm' }}</button>
<button class="btn btn-default" ng-click="cancel()" translate>{{ 'app.shared.buttons.cancel' }}</button>

View File

@ -43,7 +43,7 @@ ach:
number_of_tickets: "crwdns6761:0crwdne6761:0"
adjust_the_opening_hours: "crwdns6763:0crwdne6763:0"
to_time: crwdns10109:0crwdne10109:0
restrict_this_slot_with_labels_optional: "crwdns6767:0crwdne6767:0"
restrict_with_labels: "crwdns6767:0crwdne6767:0"
recurrence: "crwdns6769:0crwdne6769:0"
enabled: "crwdns6771:0crwdne6771:0"
period: "crwdns6773:0crwdne6773:0"

View File

@ -50,8 +50,9 @@ en:
number_of_tickets: "Number of tickets: "
adjust_the_opening_hours: "Adjust the opening hours"
to_time: "to" # eg. from 18:00 to 21:00
restrict_this_slot_with_labels_optional: "Restrict this slot with labels (optional)"
restrict_this_slot_for_subscriptions_optional: "Restrict this slot for subscription users (optional)"
restrict_options: "Restriction options"
restrict_with_labels: "Restrict this slot with labels"
restrict_for_subscriptions: "Restrict this slot for subscription users"
select_some_plans: "Select some plans"
plans: "Plan(s):"
recurrence: "Recurrence"

View File

@ -49,9 +49,10 @@ es:
manage_trainings: "Click here to add or remove trainings."
number_of_tickets: "Número de tickets: "
adjust_the_opening_hours: "Ajustar el horario de apertura"
to_time: a
restrict_this_slot_with_labels_optional: "Restringir este horario con etiquetas (opcional)"
restrict_this_slot_for_subscriptions_optional: "Restrict this slot for subscription users (optional)"
to_time: "a" # eg. from 18:00 to 21:00
restrict_options: "Restriction options"
restrict_with_labels: "Restringir este horario con etiquetas"
restrict_for_subscriptions: "Restrict this slot for subscription users"
select_some_plans: "Select some plans"
plans: "Plan(s):"
recurrence: "Recurrencia"

View File

@ -50,8 +50,9 @@ fr:
number_of_tickets: "Nombre de places : "
adjust_the_opening_hours: "Ajuster l'horaire"
to_time: "à" # eg. from 18:00 to 21:00
restrict_this_slot_with_labels_optional: "Restreindre ce créneau avec des étiquettes (optionnel)"
restrict_this_slot_for_subscriptions_optional: "Restreindre ce créneau pour les abonnements (optionnel)"
restrict_options: "Options de restriction"
restrict_with_labels: "Restreindre ce créneau avec des étiquettes"
restrict_for_subscriptions: "Restreindre ce créneau pour les abonnements"
select_some_plans: "Sélectionnez des formules d'abonnement"
plans: "Abonnement(s):"
recurrence: "Récurrence"

View File

@ -50,8 +50,9 @@ pt:
number_of_tickets: "Número de vagas: "
adjust_the_opening_hours: "Ajustar o horário de funcionamento"
to_time: "ás" # eg. from 18:00 to 21:00
restrict_this_slot_with_labels_optional: "Restrinja este slot com etiquetas (opcional)"
restrict_this_slot_for_subscriptions_optional: "Restrict this slot for subscription users (optional)"
restrict_options: "Restriction options"
restrict_with_labels: "Restrinja este slot com etiquetas"
restrict_for_subscriptions: "Restrict this slot for subscription users"
select_some_plans: "Select some plans"
plans: "Plan(s):"
recurrence: "Recurrence"

View File

@ -444,7 +444,7 @@ en:
slot_restrict_plans_of_others_groups: "The slot is restricted for the subscribers of others groups."
selected_plan_dont_match_slot: "Selected plan dont match this slot"
user_plan_dont_match_slot: "User subscribed plan dont match this slot"
no_plan_match_slot: "You dont have any plan to match this slot"
no_plan_match_slot: "You dont have any matching plan for this slot"
slot_at_same_time: "Conflict with others reservations"
do_you_really_want_to_book_slot_at_same_time: "Do you really want to book this slot? Other bookings take place at the same time"
unable_to_book_slot_because_really_have_reservation_at_same_time: "Unable to book this slot because the following reservation occurs at the same time."

View File

@ -444,7 +444,7 @@ es:
slot_restrict_plans_of_others_groups: "The slot is restricted for the subscribers of others groups."
selected_plan_dont_match_slot: "Selected plan dont match this slot"
user_plan_dont_match_slot: "User subscribed plan dont match this slot"
no_plan_match_slot: "You dont have any plan to match this slot"
no_plan_match_slot: "You dont have any matching plan for this slot"
slot_at_same_time: "Conflict with others reservations"
do_you_really_want_to_book_slot_at_same_time: "Do you really want to book this slot? Other bookings take place at the same time"
unable_to_book_slot_because_really_have_reservation_at_same_time: "Unable to book this slot because the following reservation occurs at the same time."

View File

@ -444,7 +444,7 @@ fr:
slot_restrict_plans_of_others_groups: "Ce créneau est restreint pour les abonnés d'autres groupes."
selected_plan_dont_match_slot: "L'abonnement sélectionné ne correspondent pas ce créneau"
user_plan_dont_match_slot: "L'abonnement du membre ne correspondent pas ce créneau"
no_plan_match_slot: "Aucun abonnement correspondent ce créneau"
no_plan_match_slot: "Aucun abonnement correspondant pour ce créneau"
slot_at_same_time: "Conflit avec d'autres réservations"
do_you_really_want_to_book_slot_at_same_time: "Êtes-vous sûr de réserver ce créneau ? D'autres réservations ont lieu en même temps"
unable_to_book_slot_because_really_have_reservation_at_same_time: "Impossible de réserver ce créneau car les réservations ci-dessous ont lieu en même temps."

View File

@ -444,7 +444,7 @@ pt:
slot_restrict_plans_of_others_groups: "The slot is restricted for the subscribers of others groups."
selected_plan_dont_match_slot: "Selected plan dont match this slot"
user_plan_dont_match_slot: "User subscribed plan dont match this slot"
no_plan_match_slot: "You dont have any plan to match this slot"
no_plan_match_slot: "You dont have any matching plan for this slot"
slot_at_same_time: "Conflict with others reservations"
do_you_really_want_to_book_slot_at_same_time: "Do you really want to book this slot? Other bookings take place at the same time"
unable_to_book_slot_because_really_have_reservation_at_same_time: "Unable to book this slot because the following reservation occurs at the same time."