mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-34777 Accessibility: Add proper id to select input
This commit is contained in:
parent
b89ec44032
commit
7482a71401
@ -1201,7 +1201,7 @@ class grade_edit_tree_column_select extends grade_edit_tree_column {
|
||||
if ($params['itemtype'] != 'course' && $params['itemtype'] != 'category') {
|
||||
$itemselect = '<label class="accesshide" for="select_'.$params['eid'].'">'.
|
||||
get_string('select', 'grades', $item->itemname).'</label>
|
||||
<input class="itemselect" type="checkbox" name="select_'.$params['eid'].
|
||||
<input class="itemselect" type="checkbox" name="select_'.$params['eid'].'" id="select_'.$params['eid'].
|
||||
'" onchange="toggleCategorySelector();"/>'; // TODO: convert to YUI handler
|
||||
}
|
||||
//html_writer::table() will wrap the item cell contents in a <TD> so don't do it here
|
||||
|
@ -527,7 +527,7 @@ class assign_grading_table extends table_sql implements renderable {
|
||||
function col_select(stdClass $row) {
|
||||
return '<label class="accesshide" for="selectuser_' . $row->userid . '">' .
|
||||
get_string('selectuser', 'assign', fullname($row)) . '</label>
|
||||
<input type="checkbox" id=="selectuser_' . $row->userid . 'name="selectedusers" value="' . $row->userid . '"/>';
|
||||
<input type="checkbox" id="selectuser_' . $row->userid . '" name="selectedusers" value="' . $row->userid . '"/>';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user