mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-34559 accessibility compliance for grade: Add forform input text and select tag
This commit is contained in:
parent
470d47f512
commit
29bea63484
6 changed files with 11 additions and 7 deletions
|
@ -1016,7 +1016,8 @@ class grade_report_grader extends grade_report {
|
|||
$nogradestr = $this->get_lang_string('nooutcome', 'grades');
|
||||
}
|
||||
$attributes = array('tabindex' => $tabindices[$item->id]['grade'], 'id'=>'grade_'.$userid.'_'.$item->id);
|
||||
$itemcell->text .= html_writer::select($scaleopt, 'grade_'.$userid.'_'.$item->id, $gradeval, array(-1=>$nogradestr), $attributes);;
|
||||
$itemcell->text .= html_writer::label(get_string('typescale', 'grades'), $attributes['id'], false, array('class' => 'accesshide'));
|
||||
$itemcell->text .= html_writer::select($scaleopt, 'grade_'.$userid.'_'.$item->id, $gradeval, array(-1=>$nogradestr), $attributes);
|
||||
} elseif(!empty($scale)) {
|
||||
$scales = explode(",", $scale->scale);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue