MDL-36905 accessibility for assignment grading: add label for grading actions and operations select options

This commit is contained in:
Rossiani Wijaya 2012-11-29 15:06:49 +08:00
parent f42c34a38a
commit 49f0c151dd
3 changed files with 4 additions and 1 deletions

View File

@ -70,7 +70,7 @@ class mod_assign_grading_batch_operations_form extends moodleform {
$mform->addElement('hidden', 'returnaction', 'grading');
$objs = array();
$objs[] =& $mform->createElement('select', 'operation', '', $options);
$objs[] =& $mform->createElement('select', 'operation', get_string('chooseoperation', 'assign'), $options);
$objs[] =& $mform->createElement('submit', 'submit', get_string('go'));
$mform->addElement('group', 'actionsgrp', get_string('batchoperationsdescription', 'assign'), $objs, ' ', false);

View File

@ -72,6 +72,8 @@ $string['batchoperationreverttodraft'] = 'revert submissions to draft';
$string['blindmarking'] = 'Blind marking';
$string['blindmarking_help'] = 'Blind marking hides the identity of students to markers. Blind marking settings will be locked once a submission or grade has been made in relation to this assignment.';
$string['changegradewarning'] = 'This assignment has graded submissions and changing the grade will not automatically re-calculate existing submission grades. You must re-grade all existing submissions, if you wish to change the grade.';
$string['choosegradingaction'] = 'Grading action';
$string['chooseoperation'] = 'Choose operation';
$string['comment'] = 'Comment';
$string['completionsubmit'] = 'Student must submit to this activity to complete it';
$string['conversionexception'] = 'Could not convert assignment. Exception was: {$a}.';

View File

@ -2259,6 +2259,7 @@ class assign {
}
$gradingactions = new url_select($links);
$gradingactions->set_label(get_string('choosegradingaction', 'assign'));
$gradingmanager = get_grading_manager($this->get_context(), 'mod_assign', 'submissions');