MDL-73437 workshop: Use templates for actionbar

* Convert the actionbar to use renderables/templates
* Introduce spacing below tertiary navigation
* Add headings on allocations after tertiary navigation
This commit is contained in:
Peter Dias
2022-01-10 16:06:47 +08:00
parent 0c63990e4f
commit 1a83bd79e0
4 changed files with 89 additions and 17 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ $actionbar = new \mod_workshop\output\actionbar($url, $workshop);
$output = $PAGE->get_renderer('mod_workshop');
echo $output->header();
echo $actionbar->get_allocation_menu();
echo $output->render_allocation_menu($actionbar);
if (is_null($initresult->get_status()) or $initresult->get_status() == workshop_allocation_result::STATUS_VOID) {
echo $output->container_start('allocator-ui');