Revert "MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag"

This reverts commit f9f281b8fe.
This commit is contained in:
Sam Hemelryk
2012-04-11 17:18:58 +12:00
parent 7a1ed64587
commit 3211569a6a
108 changed files with 216 additions and 390 deletions
+3 -4
View File
@@ -359,11 +359,10 @@ class MoodleQuickForm_editor extends HTML_QuickForm_element {
$str .= '<div>';
if (count($formats)>1) {
$str .= html_writer::label(get_string('format'), 'menu'. $elname. '[format]', false, array('class' => 'accesshide'));
$str .= html_writer::select($formats, $elname.'[format]', $format, false);
$str.= html_writer::select($formats, $elname.'[format]', $format, false);
} else {
$keys = array_keys($formats);
$str .= html_writer::empty_tag('input',
$str.= html_writer::empty_tag('input',
array('name'=>$elname.'[format]', 'type'=> 'hidden', 'value' => array_pop($keys)));
}
$str .= '</div>';
@@ -408,4 +407,4 @@ class MoodleQuickForm_editor extends HTML_QuickForm_element {
return '';
}
}
}