Skip to content

Commit

Permalink
MDL-34560 accessibility compliance for message: Add label for input t…
Browse files Browse the repository at this point in the history
…ext and select tag
  • Loading branch information
Rossiani Wijaya committed Aug 4, 2012
1 parent 02814bf commit 142b18a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions lang/en/message.php
Expand Up @@ -80,6 +80,7 @@
$string['message'] = 'Message';
$string['messagehistory'] = 'Message history';
$string['messagehistoryfull'] = 'All messages';
$string['messagenavigation'] = 'Message navigation:';
$string['messages'] = 'Messages';
$string['messaging'] = 'Messaging';
$string['messagingblockednoncontact'] = '{$a} will not be able to reply as you have blocked non-contacts';
Expand Down
7 changes: 4 additions & 3 deletions message/lib.php
Expand Up @@ -507,9 +507,10 @@ function message_print_usergroup_selector($viewing, $courses, $coursecontexts, $
}

echo html_writer::start_tag('form', array('id' => 'usergroupform','method' => 'get','action' => ''));
echo html_writer::start_tag('fieldset');
echo html_writer::select($options, 'viewing', $viewing, false, array('id' => 'viewing','onchange' => 'this.form.submit()'));
echo html_writer::end_tag('fieldset');
echo html_writer::start_tag('fieldset');
echo html_writer::label(get_string('messagenavigation', 'message'), 'viewing');
echo html_writer::select($options, 'viewing', $viewing, false, array('id' => 'viewing','onchange' => 'this.form.submit()'));
echo html_writer::end_tag('fieldset');
echo html_writer::end_tag('form');
}

Expand Down
1 change: 1 addition & 0 deletions message/search.html
Expand Up @@ -4,6 +4,7 @@
<tr>
<td colspan="3" class="message_heading mdl-left">
<input type="hidden" name="sesskey" value="<?php p(sesskey()); ?>" />
<label for="combinedsearch" class="accesshide"><?php print_string('searchcombined', 'message'); ?></label>
<input type="text" name="combinedsearch" size="40" id="combinedsearch" value="<?php p($combinedsearchstring); ?>" />
<input type="submit" name="combinedsubmit" value="<?php print_string('searchcombined','message') ?>" />
<a href="index.php?usergroup=<?php echo MESSAGE_VIEW_SEARCH ?>&advanced=1" id="advancedcontactsearchlink"><?php print_string('advanced') ?></a>
Expand Down

0 comments on commit 142b18a

Please sign in to comment.