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:
Loc Nguyen
2016-07-01 19:08:53 +07:00
parent ac8d6cff54
commit ddc9cff68b
4 changed files with 16 additions and 2 deletions
+4
View File
@@ -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) {