Permalink
Browse files

MDL-34724 Accessibility: At the bottom of Messaging settings page put…

… the label of the checkboxes in <label>
  • Loading branch information...
1 parent d461ecf commit 92e5cbc78346b35c0fbd32470edf0ab03124071c @D-Ne0 D-Ne0 committed with andyjdavis Jan 6, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 message/renderer.php
@@ -333,10 +333,11 @@ public function manage_messagingoptions($processors, $providers, $preferences, $
$output .= html_writer::start_tag('fieldset', array('id' => 'messageprocessor_general', 'class' => 'clearfix'));
$output .= html_writer::nonempty_tag('legend', get_string('generalsettings','admin'), array('class' => 'ftoggler'));
+
$output .= html_writer::start_tag('div');
- $output .= get_string('blocknoncontacts', 'message').': ';
- $output .= html_writer::checkbox('blocknoncontacts', 1, $preferences->blocknoncontacts, '');
+ $output .= html_writer::checkbox('blocknoncontacts', 1, $preferences->blocknoncontacts, get_string('blocknoncontacts', 'message'));
$output .= html_writer::end_tag('div');
+
$output .= html_writer::end_tag('fieldset');
$output .= html_writer::start_tag('div', array('class' => 'mdl-align'));
$output .= html_writer::empty_tag('input', array('type' => 'submit', 'value' => get_string('updatemyprofile'), 'class' => 'form-submit'));

0 comments on commit 92e5cbc

Please sign in to comment.