Skip to content

Commit

Permalink
MDL-34557 accessibility compliance for enrol: Add forform input text …
Browse files Browse the repository at this point in the history
…and select tag
  • Loading branch information
Rossiani Wijaya committed Aug 3, 2012
1 parent 02814bf commit daeee0a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion enrol/authorize/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>";

Expand Down
6 changes: 3 additions & 3 deletions enrol/manual/manage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit daeee0a

Please sign in to comment.