Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-34560 accessibility compliance for message: Add label for input t…

…ext and select tag
  • Loading branch information...
commit 142b18a835ee51f9f2d1ede3f3497208f55b792f 1 parent 02814bf
rwijaya rwijaya authored
1  lang/en/message.php
@@ -80,6 +80,7 @@
80 80 $string['message'] = 'Message';
81 81 $string['messagehistory'] = 'Message history';
82 82 $string['messagehistoryfull'] = 'All messages';
  83 +$string['messagenavigation'] = 'Message navigation:';
83 84 $string['messages'] = 'Messages';
84 85 $string['messaging'] = 'Messaging';
85 86 $string['messagingblockednoncontact'] = '{$a} will not be able to reply as you have blocked non-contacts';
7 message/lib.php
@@ -507,9 +507,10 @@ function message_print_usergroup_selector($viewing, $courses, $coursecontexts, $
507 507 }
508 508
509 509 echo html_writer::start_tag('form', array('id' => 'usergroupform','method' => 'get','action' => ''));
510   - echo html_writer::start_tag('fieldset');
511   - echo html_writer::select($options, 'viewing', $viewing, false, array('id' => 'viewing','onchange' => 'this.form.submit()'));
512   - echo html_writer::end_tag('fieldset');
  510 + echo html_writer::start_tag('fieldset');
  511 + echo html_writer::label(get_string('messagenavigation', 'message'), 'viewing');
  512 + echo html_writer::select($options, 'viewing', $viewing, false, array('id' => 'viewing','onchange' => 'this.form.submit()'));
  513 + echo html_writer::end_tag('fieldset');
513 514 echo html_writer::end_tag('form');
514 515 }
515 516
1  message/search.html
@@ -4,6 +4,7 @@
4 4 <tr>
5 5 <td colspan="3" class="message_heading mdl-left">
6 6 <input type="hidden" name="sesskey" value="<?php p(sesskey()); ?>" />
  7 + <label for="combinedsearch" class="accesshide"><?php print_string('searchcombined', 'message'); ?></label>
7 8 <input type="text" name="combinedsearch" size="40" id="combinedsearch" value="<?php p($combinedsearchstring); ?>" />
8 9 <input type="submit" name="combinedsubmit" value="<?php print_string('searchcombined','message') ?>" />
9 10 <a href="index.php?usergroup=<?php echo MESSAGE_VIEW_SEARCH ?>&advanced=1" id="advancedcontactsearchlink"><?php print_string('advanced') ?></a>

0 comments on commit 142b18a

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