Permalink
Browse files

MDL-34556 accessibility compliance for course: Add forform input text…

… and select tag
  • Loading branch information...
1 parent e1d3079 commit bc2a87e2525b008827de204c012efaa99fa7cdd9 Rossiani Wijaya committed with nebgor Jul 27, 2012
Showing with 9 additions and 3 deletions.
  1. +1 −0 course/category.php
  2. +1 −0 course/index.php
  3. +6 −3 course/scales.php
  4. +1 −0 course/search.php
View
@@ -420,6 +420,7 @@
make_categories_list($movetocategories, $notused, 'moodle/category:manage');
$movetocategories[$category->id] = get_string('moveselectedcoursesto');
echo '<tr><td colspan="3" align="right">';
+ echo html_writer::label(get_string('moveselectedcoursesto'), 'movetoid', false, array('class' => 'accesshide'));
echo html_writer::select($movetocategories, 'moveto', $category->id, null, array('id'=>'movetoid'));
$PAGE->requires->js_init_call('M.util.init_select_autosubmit', array('movecourses', 'movetoid', false));
echo '<input type="hidden" name="id" value="'.$category->id.'" />';
View
@@ -369,6 +369,7 @@ function print_category_edit($category, $displaylist, $parentslist, $depth=-1, $
}
$popupurl = new moodle_url("index.php?move=$category->id&sesskey=".sesskey());
$select = new single_select($popupurl, 'moveto', $tempdisplaylist, $category->parent, null, "moveform$category->id");
+ $select->set_label(get_string('frontpagecategorynames'), array('class' => 'accesshide'));
echo $OUTPUT->render($select);
}
echo '</td>';
View
@@ -70,7 +70,8 @@
echo $OUTPUT->box_start();
echo $OUTPUT->heading($scale->name);
echo "<center>";
- echo html_writer::select($scalemenu, 'unused');
+ echo html_writer::label(get_string('scales'), 'scaleunused'. $scaleid, false, array('class' => 'accesshide'));
+ echo html_writer::select($scalemenu, 'unused', '', array('' => 'choosedots'), array('id' => 'scaleunused'.$scaleid));
echo "</center>";
echo text_to_html($scale->description);
echo $OUTPUT->box_end();
@@ -101,7 +102,8 @@
echo $OUTPUT->box_start();
echo $OUTPUT->heading($scale->name);
echo "<center>";
- echo html_writer::select($scalemenu, 'unused');
+ echo html_writer::label(get_string('scales'), 'courseunused' . $scale->id, false, array('class' => 'accesshide'));
+ echo html_writer::select($scalemenu, 'unused', '', array('' => 'choosedots'), array('id' => 'courseunused' . $scale->id));
echo "</center>";
echo text_to_html($scale->description);
echo $OUTPUT->box_end();
@@ -127,7 +129,8 @@
echo $OUTPUT->box_start();
echo $OUTPUT->heading($scale->name);
echo "<center>";
- echo html_writer::select($scalemenu, 'unused');
+ echo html_writer::label(get_string('scales'), 'sitescale' . $scale->id, false, array('class' => 'accesshide'));
+ echo html_writer::select($scalemenu, 'unused', '', array('' => 'choosedots'), array('id' => 'sitescale' . $scale->id));
echo "</center>";
echo text_to_html($scale->description);
echo $OUTPUT->box_end();
View
@@ -353,6 +353,7 @@
echo "<input type=\"button\" onclick=\"checkall()\" value=\"$strselectall\" />\n";
echo "<input type=\"button\" onclick=\"checknone()\" value=\"$strdeselectall\" />\n";
//Select box should only show categories in which user has min capability to move course.
+ echo html_writer::label(get_string('moveselectedcoursesto'), 'movetoid', false, array('class' => 'accesshide'));
echo html_writer::select($usercatlist, 'moveto', '', array(''=>get_string('moveselectedcoursesto')), array('id'=>'movetoid'));
$PAGE->requires->js_init_call('M.util.init_select_autosubmit', array('movecourses', 'movetoid', false));
echo "</td>\n</tr>\n";

0 comments on commit bc2a87e

Please sign in to comment.