MDL-53472 tool_lp: Improve user navigation flow in competency frameworks

This commit is contained in:
Issam Taboubi
2016-04-18 10:58:59 +08:00
committed by Frederic Massart
parent 66df4d2fad
commit a4f1b030f2
8 changed files with 79 additions and 25 deletions
+3 -1
View File
@@ -37,6 +37,7 @@ require_capability('tool/lp:competencymanage', $context);
$title = get_string('competencies', 'tool_lp');
$pagetitle = get_string('competencyframeworks', 'tool_lp');
$pagesubtitle = get_string('listcompetencyframeworkscaption', 'tool_lp');
// Set up the page.
$PAGE->set_context($context);
@@ -46,7 +47,8 @@ $PAGE->set_title($title);
$PAGE->set_heading($title);
$output = $PAGE->get_renderer('tool_lp');
echo $output->header();
echo $output->heading($pagetitle);
echo $output->heading($pagetitle, 2);
echo $output->heading($pagesubtitle, 3);
$page = new \tool_lp\output\manage_competency_frameworks_page($context);
echo $output->render($page);