Permalink
Browse files

MDL-36905 accessibility for assignment grading: add label for grading…

… actions and operations select options
  • Loading branch information...
1 parent 5f1d8f2 commit e8dd79957016131680984ef512d768cf34c85946 @rwijaya rwijaya committed Nov 29, 2012
Showing with 4 additions and 1 deletion.
  1. +1 −1 mod/assign/gradingbatchoperationsform.php
  2. +2 −0 mod/assign/lang/en/assign.php
  3. +1 −0 mod/assign/locallib.php
@@ -58,7 +58,7 @@ function definition() {
$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);
@@ -65,6 +65,8 @@
$string['batchoperationunlock'] = 'unlock submissions';
$string['batchoperationreverttodraft'] = 'revert submissions to draft';
$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['conversionexception'] = 'Could not convert assignment. Exception was: {$a}.';
$string['configshowrecentsubmissions'] = 'Everyone can see notifications of submissions in recent activity reports.';
@@ -1800,6 +1800,7 @@ private function view_grading_table() {
}
$gradingactions = new url_select($links);
+ $gradingactions->set_label(get_string('choosegradingaction', 'assign'));
$gradingmanager = get_grading_manager($this->get_context(), 'mod_assign', 'submissions');

0 comments on commit e8dd799

Please sign in to comment.