MDL-54934 workshop: indicate current phase
Indicate phase in page titles, current phase in userplan table so that it's accessible to me through my screen reader
This commit is contained in:
@@ -289,6 +289,10 @@ class mod_workshop_renderer extends plugin_renderer_base {
|
||||
$row->attributes['class'] = 'phasetasks';
|
||||
foreach ($plan->phases as $phasecode => $phase) {
|
||||
$title = html_writer::tag('span', $phase->title);
|
||||
if ($phase->active) {
|
||||
$title .= html_writer::tag('span', get_string('userplancurrentphase', 'workshop'),
|
||||
array('class' => 'accesshide'));
|
||||
}
|
||||
$actions = '';
|
||||
foreach ($phase->actions as $action) {
|
||||
switch ($action->type) {
|
||||
|
||||
Reference in New Issue
Block a user