mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +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
|
@ -184,6 +184,7 @@ function get_grade_tree(&$gtree, $element, $current_itemid=null, $errors=null) {
|
|||
$name .= '<div class="error"><span class="error">' . $errors[$grade_item->id].'</span><br />'."\n";
|
||||
$closingdiv = "</div>\n";
|
||||
}
|
||||
$name .= '<label class="accesshide" for="id_idnumber_' . $grade_item->id . '">' . get_string('gradeitems', 'grades') .'</label>';
|
||||
$name .= '<input class="idnumber" id="id_idnumber_'.$grade_item->id.'" type="text" name="idnumbers['.$grade_item->id.']" />' . "\n";
|
||||
$name .= $closingdiv;
|
||||
}
|
||||
|
|
|
@ -342,8 +342,8 @@ if (!$moving) {
|
|||
if (!$moving && count($grade_edit_tree->categories) > 1) {
|
||||
echo '<br /><br />';
|
||||
echo '<input type="hidden" name="bulkmove" value="0" id="bulkmoveinput" />';
|
||||
echo get_string('moveselectedto', 'grades') . ' ';
|
||||
$attributes = array('id'=>'menumoveafter');
|
||||
echo html_writer::label(get_string('moveselectedto', 'grades'), 'menumoveafter', false, array('class' => 'accesshide'));
|
||||
echo html_writer::select($grade_edit_tree->categories, 'moveafter', '', array(''=>'choosedots'), $attributes);
|
||||
$OUTPUT->add_action_handler(new component_action('change', 'submit_bulk_move'), 'menumoveafter');
|
||||
echo '<div id="noscriptgradetreeform" class="hiddenifjs">
|
||||
|
|
|
@ -673,7 +673,8 @@ class grade_edit_tree_column_aggregation extends grade_edit_tree_column_category
|
|||
} else {
|
||||
$attributes = array();
|
||||
$attributes['id'] = 'aggregation_'.$category->id;
|
||||
$aggregation = html_writer::select($options, 'aggregation_'.$category->id, $category->aggregation, null, $attributes);
|
||||
$aggregation = html_writer::label(get_string('aggregation', 'grades'), 'aggregation_'.$category->id, false, array('class' => 'accesshide'));
|
||||
$aggregation .= html_writer::select($options, 'aggregation_'.$category->id, $category->aggregation, null, $attributes);
|
||||
$action = new component_action('change', 'update_category_aggregation', array('courseid' => $params['id'], 'category' => $category->id, 'sesskey' => sesskey()));
|
||||
$OUTPUT->add_action_handler($action, 'aggregation_'.$category->id);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue