Skip to content
Browse files

MDL-34554 accessibility compliance for blocks: Add forform input text…

… and select tag
  • Loading branch information...
1 parent 61e3665 commit 8291579200c717c7f4759273c510fa0d3d1e1325 @rwijaya rwijaya committed with nebgor
Showing with 4 additions and 4 deletions.
  1. +2 −2 blocks/section_links/config_instance.html
  2. +2 −2 blocks/tags/block_tags.php
View
4 blocks/section_links/config_instance.html
@@ -66,7 +66,7 @@
?>
<tr valign="top">
<td align="right">
- <?php print_string('numsections'.$i, 'block_section_links'); ?>:
+ <label for="menunumsections<?php echo $i; ?>"><?php print_string('numsections'.$i, 'block_section_links'); ?>:</label>
</td>
<td>
<?php choose_from_menu($numberofsections, 'numsections'.$i, $selected[$i][0]); ?>
@@ -77,7 +77,7 @@
</tr>
<tr valign="top">
<td align="right">
- <?php print_string('incby'.$i, 'block_section_links'); ?>:
+ <label for="menuincby<?php echo $i;?>"><?php print_string('incby'.$i, 'block_section_links'); ?>:</label>
</td>
<td>
<?php choose_from_menu($increments, 'incby'.$i, $selected[$i][1]); ?>
View
4 blocks/tags/block_tags.php
@@ -225,7 +225,6 @@ function get_content() {
if ($officialtags) { $this->content->text .= $officialtagscontent; }
if ($coursetags) { $this->content->text .= $coursetagscontent; }
if ($commtags) { $this->content->text .= $commtagscontent; }
-
// add the input form section (allowing a user to tag the current course) and navigation, or loggin message
if ($loggedin) {
// only show the input form on course pages for those allowed (or not barred)
@@ -250,7 +249,8 @@ function get_content() {
<div class="coursetag_form_wrapper">
<div class="coursetag_form_positioner">
<div class="coursetag_form_input1">
- <input type="text" name="coursetag_sug_keyword" class="coursetag_form_input1a" disabled="disabled" />
+ <label class="accesshide" for="coursetag_sug_keyword">$tagthisunit</label>
+ <input type="text" name="coursetag_sug_keyword" id="coursetag_sug_keyword" class="coursetag_form_input1a" disabled="disabled" />
</div>
<div class="coursetag_form_input2">
<input type="text" name="coursetag_new_tag" id="coursetag_new_tag" class="coursetag_form_input2a"

0 comments on commit 8291579

Please sign in to comment.
Something went wrong with that request. Please try again.