Permalink
Browse files

MDL-36104 mod_assign: added hidden labels to the feedback input fields

  • Loading branch information...
1 parent a5ec499 commit 7e5be0744cd92994001110096b51fd7aa89911db @markn86 markn86 committed Jan 15, 2013
@@ -203,7 +203,9 @@ public function get_form_elements($grade, MoodleQuickForm $mform, stdClass $data
}
}
- $mform->addElement('editor', 'assignfeedbackcomments_editor', '', null, null);
+ $mform->addElement('editor', 'assignfeedbackcomments_editor', html_writer::tag('span', $this->get_name(),
+ array('class' => 'accesshide')), null, null);
+
return true;
}
@@ -143,8 +143,8 @@ public function get_form_elements_for_user($grade, MoodleQuickForm $mform, stdCl
'assignfeedback_file',
ASSIGNFEEDBACK_FILE_FILEAREA,
$gradeid);
-
- $mform->addElement('filemanager', $elementname . '_filemanager', '', null, $fileoptions);
+ $mform->addElement('filemanager', $elementname . '_filemanager', html_writer::tag('span', $this->get_name(),
+ array('class' => 'accesshide')), null, $fileoptions);
return true;
}
@@ -166,7 +166,9 @@ public function get_form_elements($submission, MoodleQuickForm $mform, stdClass
'assignsubmission_file',
ASSIGNSUBMISSION_FILE_FILEAREA,
$submissionid);
- $mform->addElement('filemanager', 'files_filemanager', '', null, $fileoptions);
+ $mform->addElement('filemanager', 'files_filemanager', html_writer::tag('span', $this->get_name(),
+ array('class' => 'accesshide')), null, $fileoptions);
+
return true;
}
@@ -95,7 +95,9 @@ public function get_form_elements($submission, MoodleQuickForm $mform, stdClass
'assignsubmission_onlinetext',
ASSIGNSUBMISSION_ONLINETEXT_FILEAREA,
$submissionid);
- $mform->addElement('editor', 'onlinetext_editor', '', null, $editoroptions);
+ $mform->addElement('editor', 'onlinetext_editor', html_writer::tag('span', $this->get_name(),
+ array('class' => 'accesshide')), null, $editoroptions);
+
return true;
}

0 comments on commit 7e5be07

Please sign in to comment.