MDL-71915 mod_workshop: Update tertiary nav
Update the tertiary navigation for the mod_workshop. This also include a fix for behat tests due to the tertiary navigation change made.
This commit is contained in:
@@ -54,11 +54,19 @@ $PAGE->set_title($workshop->name);
|
||||
$PAGE->set_heading($course->fullname);
|
||||
$PAGE->navbar->add(get_string('switchingphase', 'workshop'));
|
||||
|
||||
$PAGE->set_secondary_active_tab("modulepage");
|
||||
|
||||
//
|
||||
// Output starts here
|
||||
//
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->heading(format_string($workshop->name));
|
||||
if (!$PAGE->has_secondary_navigation()) {
|
||||
echo $OUTPUT->heading(format_string($workshop->name));
|
||||
}
|
||||
|
||||
$continuebtn = new single_button(
|
||||
new moodle_url($PAGE->url, array('confirm' => 1)), get_string('continue'), 'post', true);
|
||||
$continuebtn->class .= ' mr-3';
|
||||
echo $OUTPUT->confirm(get_string('switchphase' . $phase . 'info', 'workshop'),
|
||||
new moodle_url($PAGE->url, array('confirm' => 1)), $workshop->view_url());
|
||||
$continuebtn, $workshop->view_url());
|
||||
echo $OUTPUT->footer();
|
||||
|
||||
Reference in New Issue
Block a user