MDL-42505 - Feedback plugin: Inappropriate use of fieldset tags around form and cancel button

Changes:
* Removed the fieldset HTML tags around the Cancel button at the bottom of the form.
* Removed the fieldset HTML tags around the whole form.
* Added missing fieldset tags around groups of radio buttons and checkboxes.
* Removed unordered list wrapping dropdown lists.
* Removed duplicate label for dropdown lists.

Modified Files:
* mod/feedback/complete.php
* mod/feedback/complete_guest.php
* mod/feedback/item/multichoice/lib.php
* mod/feedback/item/multichoicerated/lib.php

Signed-off-by: Michael Milette <[email protected]>
This commit is contained in:
Michael Milette
2014-01-28 09:43:56 -05:00
parent 2f4e0db7c3
commit ca5849e5dc
5 changed files with 39 additions and 26 deletions
-4
View File
@@ -418,7 +418,6 @@ if ($feedback_can_submit) {
if (is_array($feedbackitems)) {
echo $OUTPUT->box_start('feedback_form');
echo '<form action="complete.php" method="post" onsubmit=" ">';
echo '<fieldset>';
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
echo $OUTPUT->box_start('feedback_anonymousinfo');
switch ($feedback->anonymous) {
@@ -547,7 +546,6 @@ if ($feedback_can_submit) {
echo '<input name="savevalues" type="submit" '.$inputvalue.' />';
}
echo '</fieldset>';
echo '</form>';
echo $OUTPUT->box_end();
@@ -562,11 +560,9 @@ if ($feedback_can_submit) {
}
}
echo '<form '.$action.' method="post" onsubmit=" ">';
echo '<fieldset>';
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
echo '<input type="hidden" name="courseid" value="'. $courseid . '" />';
echo '<button type="submit">'.get_string('cancel').'</button>';
echo '</fieldset>';
echo '</form>';
echo $OUTPUT->box_end();
$SESSION->feedback->is_started = true;