diff --git a/NEMO/templates/calendar/calendar.html b/NEMO/templates/calendar/calendar.html index 1782b716..b9c9ffc7 100644 --- a/NEMO/templates/calendar/calendar.html +++ b/NEMO/templates/calendar/calendar.html @@ -21,7 +21,7 @@ {% if user.is_staff %}
  • Specific user
  • {% endif %} - {% if user.is_superuser %} + {% if user.is_superuser and use_confirmation_system %}
  • Confirmation window
  • {% endif %} diff --git a/NEMO/views/calendar.py b/NEMO/views/calendar.py index 50d99a08..719f669c 100644 --- a/NEMO/views/calendar.py +++ b/NEMO/views/calendar.py @@ -72,6 +72,7 @@ def calendar(request, item_type=None, item_id=None): calendar_week_column_format = get_customization('calendar_week_column_format') calendar_month_column_format = get_customization('calendar_month_column_format') calendar_start_of_the_day = get_customization('calendar_start_of_the_day') + use_confirmation_system = get_customization('reservations_require_confirmation') == 'enabled' dictionary = { 'rendered_item_tree_html': rendered_item_tree_html, @@ -85,6 +86,7 @@ def calendar(request, item_type=None, item_id=None): 'calendar_week_column_format' : calendar_week_column_format, 'calendar_month_column_format' : calendar_month_column_format, 'calendar_start_of_the_day' : calendar_start_of_the_day, + 'use_confirmation_system': use_confirmation_system, 'self_login': False, 'self_logout': False, }