MDL-34568: Accessibility: Added missing lables in quiz section

AMOS BEGIN
 CPY [pluginname,grade_export_xls],[downloadexcel,table]
 CPY [pluginname,grade_export_ods],[downloadods,table]
AMOS END
This commit is contained in:
Rajesh Taneja
2012-09-07 10:18:15 +08:00
parent 935c3d5ed2
commit 0465ef6e31
6 changed files with 27 additions and 16 deletions
+7 -3
View File
@@ -915,11 +915,15 @@ class flexible_table {
function download_buttons() {
if ($this->is_downloadable() && !$this->is_downloading()) {
$downloadoptions = $this->get_download_menu();
$downloadelements = new stdClass();
$downloadelements->formatsmenu = html_writer::select($downloadoptions,
'download', $this->defaultdownloadformat, false);
$downloadelements->downloadbutton = '<input type="submit" value="'.
get_string('download').'"/>';
$html = '<form action="'. $this->baseurl .'" method="post">';
$html .= '<div class="mdl-align">';
$html .= '<input type="submit" value="'.get_string('downloadas', 'table').'"/>';
$html .= html_writer::label(get_string('downloadoptions', 'table'), 'menudownload', false, array('class' => 'accesshide'));
$html .= html_writer::select($downloadoptions, 'download', $this->defaultdownloadformat, false);
$html .= html_writer::tag('label', get_string('downloadas', 'table', $downloadelements));
$html .= '</div></form>';
return $html;