Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-34557 accessibility compliance for enrol: Add forform input text …

…and select tag
  • Loading branch information...
commit 09fab4e7b3064c1c0063596cce889a09b0e37bcc 1 parent f2ddce9
@rwijaya rwijaya authored
Showing with 6 additions and 4 deletions.
  1. +3 −1 enrol/authorize/locallib.php
  2. +3 −3 enrol/manual/manage.php
View
4 enrol/authorize/locallib.php
@@ -58,8 +58,10 @@ function authorize_print_orders($courseid, $userid) {
$searchmenu = array('orderid' => $authstrs->orderid, 'transid' => $authstrs->transid, 'cclastfour' => $authstrs->cclastfour);
$buttons = "<form method='post' action='index.php' autocomplete='off'><div>";
+ $buttons .= html_writer::label(get_string('orderdetails', 'enrol_authorize'), 'menusearchtype', false, array('class' => 'accesshide'));
$buttons .= html_writer::select($searchmenu, 'searchtype', $searchtype, false);
- $buttons .= "<input type='text' size='16' name='searchquery' value='' />";
+ $buttons .= html_writer::label(get_string('search'), 'searchquery', false, array('class' => 'accesshide'));
+ $buttons .= "<input id='searchquery' type='text' size='16' name='searchquery' value='' />";
$buttons .= "<input type='submit' value='$strs->search' />";
$buttons .= "</div></form>";
View
6 enrol/manual/manage.php
@@ -162,13 +162,13 @@
<div class="enroloptions">
- <p><label for="roleid"><?php print_string('assignrole', 'enrol_manual') ?></label><br />
+ <p><label for="menuroleid"><?php print_string('assignrole', 'enrol_manual') ?></label><br />
<?php echo html_writer::select($roles, 'roleid', $roleid, false); ?></p>
- <p><label for="extendperiod"><?php print_string('enrolperiod', 'enrol') ?></label><br />
+ <p><label for="menuextendperiod"><?php print_string('enrolperiod', 'enrol') ?></label><br />
<?php echo html_writer::select($periodmenu, 'extendperiod', $defaultperiod, $unlimitedperiod); ?></p>
- <p><label for="extendbase"><?php print_string('startingfrom') ?></label><br />
+ <p><label for="menuextendbase"><?php print_string('startingfrom') ?></label><br />
<?php echo html_writer::select($basemenu, 'extendbase', $extendbase, false); ?></p>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.