From 9fcaa88d92b31f42aad1ed8c088b0c4e4c7f13e4 Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Thu, 21 Mar 2019 18:00:20 -0500 Subject: [PATCH] Add breadcrumb + toolbar to sessions calendar - refs BT#15394 #2801 --- main/calendar/planification.php | 9 +++++++++ main/template/default/agenda/planification.tpl | 2 ++ 2 files changed, 11 insertions(+) diff --git a/main/calendar/planification.php b/main/calendar/planification.php index cd86e1519e..6f2ee335bc 100644 --- a/main/calendar/planification.php +++ b/main/calendar/planification.php @@ -41,9 +41,18 @@ $sessions = UserManager::getSessionsCalendarByYear($sessionsList, $searchYear); $colors = ChamiloApi::getColorPalette(false, true, count($sessions)); +$agenda = new Agenda('personal'); +$actions = $agenda->displayActions('list', $userId); + $toolName = get_lang('SessionsPlanCalendar'); +$interbreadcrumb[] = [ + 'url' => api_get_path(WEB_CODE_PATH).'calendar/agenda_js.php?type=personal', + 'name' => get_lang('Agenda'), +]; + $template = new Template($toolName); +$template->assign('toolbar', $actions); $template->assign('student_id', $userId); $template->assign('search_year', $searchYear); $template->assign('colors', $colors); diff --git a/main/template/default/agenda/planification.tpl b/main/template/default/agenda/planification.tpl index 8d8748f6f5..1679a27e59 100644 --- a/main/template/default/agenda/planification.tpl +++ b/main/template/default/agenda/planification.tpl @@ -3,6 +3,8 @@ {% set user_id = student_id == _u.id ? 0 : student_id %} {% block content %} + {{ toolbar }} +