diff --git a/app/controllers/calendar/calendar.php b/app/controllers/calendar/calendar.php index 8cda97ae3752da35696eeacbb014046bbd411b2d..2e17ff2eec5c7162d6def7d42bb887e932a49cce 100644 --- a/app/controllers/calendar/calendar.php +++ b/app/controllers/calendar/calendar.php @@ -101,6 +101,7 @@ class Calendar_CalendarController extends AuthenticatedController $tmpl->action_url = $this->url_for(); $tmpl->category = $this->category; $filters->addElement(new WidgetElement($tmpl->render())); + Sidebar::get()->addWidget($filters); if (Config::get()->CALENDAR_GROUP_ENABLE || Config::get()->COURSE_CALENDAR_ENABLE) { @@ -109,14 +110,16 @@ class Calendar_CalendarController extends AuthenticatedController $tmpl->action_url = $this->url_for('calendar/group/switch'); $tmpl->view = $this->action; $filters->addElement(new WidgetElement($tmpl->render())); - $filters->addCheckbox( + + $settings = new OptionsWidget(); + $settings->addCheckbox( _('Abgelehnte Termine anzeigen'), $this->settings['show_declined'] ?? false, $this->url_for($this->base . 'show_declined', ['show_declined' => 1]), $this->url_for($this->base . 'show_declined', ['show_declined' => 0]) ); + Sidebar::get()->addWidget($settings); } - Sidebar::get()->addWidget($filters); } public function index_action()