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:
@@ -43,6 +43,7 @@ $PAGE->set_title($workshop->name);
|
||||
$PAGE->set_heading($course->fullname);
|
||||
$PAGE->navbar->add(get_string('editingassessmentform', 'workshop'), $workshop->editform_url(), navigation_node::TYPE_CUSTOM);
|
||||
$PAGE->navbar->add(get_string('previewassessmentform', 'workshop'));
|
||||
$PAGE->set_secondary_active_tab('workshopassessement');
|
||||
$currenttab = 'editform';
|
||||
|
||||
// load the grading strategy logic
|
||||
@@ -53,7 +54,9 @@ $mform = $strategy->get_assessment_form($workshop->editform_url(), 'preview');
|
||||
|
||||
// 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));
|
||||
}
|
||||
echo $OUTPUT->heading(get_string('assessmentform', 'workshop'), 3);
|
||||
$mform->display();
|
||||
echo $OUTPUT->footer();
|
||||
|
||||
Reference in New Issue
Block a user