MDL-34570 accessibility compliance for question: edit string label

This commit is contained in:
Rossiani Wijaya
2012-09-28 11:38:58 +08:00
committed by Frederic Massart
parent c5575c63b8
commit 735280b159
12 changed files with 30 additions and 14 deletions
+2 -1
View File
@@ -88,12 +88,13 @@ abstract class qbehaviour_renderer extends plugin_renderer_base {
array('id' => $id, 'name' => $inputname, 'rows' => 10, 'cols' => 60)));
$commenteditor .= html_writer::start_tag('div');
if (count($formats == 1)) {
if (count($formats) == 1) {
reset($formats);
$commenteditor .= html_writer::empty_tag('input', array('type' => 'hidden',
'name' => $inputname . 'format', 'value' => key($formats)));
} else {
$commenteditor .= html_writer::label(get_string('formattexttype'), 'menu' . $inputname . 'format', false, array('class' => 'accesshide'));
$commenteditor .= html_writer::select(
$formats, $inputname . 'format', $commentformat, '');
}