diff --git a/app/assets/javascripts/controllers/trainings.coffee.erb b/app/assets/javascripts/controllers/trainings.coffee.erb index 499445e78..7bda4e5b2 100644 --- a/app/assets/javascripts/controllers/trainings.coffee.erb +++ b/app/assets/javascripts/controllers/trainings.coffee.erb @@ -132,9 +132,12 @@ Application.Controllers.controller "ReserveTrainingController", ["$scope", '$sta ## the moment when the plan selection changed for the last time, used to trigger changes in the cart $scope.planSelectionTime = null - ## Selected training unless 'all' trainings are displayed + ## Selected training $scope.training = trainingPromise + ## 'all' OR training's slug + $scope.mode = $stateParams.id + ## fullCalendar (v2) configuration $scope.calendarConfig = CalendarConfig minTime: moment.duration(moment(settingsPromise.booking_window_start).format('HH:mm:ss')) diff --git a/app/assets/templates/trainings/reserve.html.erb b/app/assets/templates/trainings/reserve.html.erb index 8891842c9..0889d42bf 100644 --- a/app/assets/templates/trainings/reserve.html.erb +++ b/app/assets/templates/trainings/reserve.html.erb @@ -7,15 +7,15 @@
-

{{ 'trainings_planning' }}

-

{{ 'planning_of' }} {{training.name}}

+

{{ 'trainings_planning' }}

+

{{ 'planning_of' }} {{training.name}}

{{ 'all_trainings' }}