Permalink
Browse files

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

  • Loading branch information...
1 parent e61f96c commit 55ab55ba5cc2d60d2d426c358d360921c1fd88a5 @markn86 markn86 committed Jan 15, 2013
@@ -141,7 +141,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;
}
@@ -94,8 +94,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;
}
@@ -150,9 +150,10 @@ public function get_form_elements($submission, MoodleQuickForm $mform, stdClass
$fileoptions = $this->get_file_options();
$submissionid = $submission ? $submission->id : 0;
-
$data = file_prepare_standard_filemanager($data, 'files', $fileoptions, $this->assignment->get_context(), '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;
}
@@ -90,9 +90,10 @@ public function get_form_elements($submission, MoodleQuickForm $mform, stdClass
}
-
$data = file_prepare_standard_editor($data, 'onlinetext', $editoroptions, $this->assignment->get_context(), '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 55ab55b

Please sign in to comment.