Skip to content

Commit

Permalink
MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for f…
Browse files Browse the repository at this point in the history
…orm input text and select tag
  • Loading branch information
Rossiani Wijaya committed Mar 30, 2012
1 parent c856a1f commit f9f281b
Show file tree
Hide file tree
Showing 108 changed files with 390 additions and 216 deletions.
2 changes: 2 additions & 0 deletions admin/filters.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ function get_table_row($filterinfo, $isfirstrow, $islastactive, $applytostrings)


// Disable/off/on // Disable/off/on
$select = new single_select(filters_action_url($filter, 'setstate'), 'newstate', $activechoices, $filterinfo->active, null, 'active' . basename($filter)); $select = new single_select(filters_action_url($filter, 'setstate'), 'newstate', $activechoices, $filterinfo->active, null, 'active' . basename($filter));
$select->set_label(get_accesshide(get_string('isactive', 'filters')));
$row[] = $OUTPUT->render($select); $row[] = $OUTPUT->render($select);


// Re-order // Re-order
Expand All @@ -263,6 +264,7 @@ function get_table_row($filterinfo, $isfirstrow, $islastactive, $applytostrings)


// Apply to strings. // Apply to strings.
$select = new single_select(filters_action_url($filter, 'setapplyto'), 'stringstoo', $applytochoices, $applytostrings, null, 'applyto' . basename($filter)); $select = new single_select(filters_action_url($filter, 'setapplyto'), 'stringstoo', $applytochoices, $applytostrings, null, 'applyto' . basename($filter));
$select->set_label(get_accesshide(get_string('applyto', 'filters')));
$select->disabled = $filterinfo->active == TEXTFILTER_DISABLED; $select->disabled = $filterinfo->active == TEXTFILTER_DISABLED;
$row[] = $OUTPUT->render($select); $row[] = $OUTPUT->render($select);


Expand Down
7 changes: 4 additions & 3 deletions admin/mnet/access_control.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -203,17 +203,18 @@
if (!empty($formerror['username'])) { if (!empty($formerror['username'])) {
echo '<span class="error"> * </span>'; echo '<span class="error"> * </span>';
} }
echo '<input type="text" name="username" size="20" maxlength="100" />'; echo html_writer::label(get_string('username'), 'menuusername', false, array('class' =>'accesshide'));
echo '<input id="menuusername" type="text" name="username" size="20" maxlength="100" />';


// choose a remote host // choose a remote host
echo " " . get_string('remotehost', 'mnet') . ":\n"; echo html_writer::label(get_string('remotehost', 'mnet'), 'menumnet_host_id');
if (!empty($formerror['mnet_host_id'])) { if (!empty($formerror['mnet_host_id'])) {
echo '<span class="error"> * </span>'; echo '<span class="error"> * </span>';
} }
echo html_writer::select($mnethosts, 'mnet_host_id'); echo html_writer::select($mnethosts, 'mnet_host_id');


// choose an access level // choose an access level
echo " " . get_string('accesslevel', 'mnet') . ":\n"; echo html_writer::label(get_string('accesslevel', 'mnet'), 'menuaccessctrl');
if (!empty($formerror['accessctrl'])) { if (!empty($formerror['accessctrl'])) {
echo '<span class="error"> * </span>'; echo '<span class="error"> * </span>';
} }
Expand Down
1 change: 1 addition & 0 deletions admin/portfolio.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ function portfolio_action_url($portfolio) {
$currentaction = 'hide'; $currentaction = 'hide';
} }
$select = new single_select(portfolio_action_url($pluginid, 'pf'), 'action', $actionchoicesforexisting, $currentaction, null, 'applyto' . $pluginid); $select = new single_select(portfolio_action_url($pluginid, 'pf'), 'action', $actionchoicesforexisting, $currentaction, null, 'applyto' . $pluginid);
$select->set_label(get_accesshide(get_string('portfolio', 'portfolio')));
$table->data[] = array($pluginname, $OUTPUT->render($select), $settings); $table->data[] = array($pluginname, $OUTPUT->render($select), $settings);
} }
if (!in_array($plugin, $usedplugins)) { if (!in_array($plugin, $usedplugins)) {
Expand Down
3 changes: 2 additions & 1 deletion admin/repository.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ function repository_action_url($repository) {
} }


$select = new single_select(repository_action_url($typename, 'repos'), 'action', $actionchoicesforexisting, $currentaction, null, 'applyto' . basename($typename)); $select = new single_select(repository_action_url($typename, 'repos'), 'action', $actionchoicesforexisting, $currentaction, null, 'applyto' . basename($typename));

$select->set_label(get_accesshide(get_string('action')));
// Display up/down link // Display up/down link
$updown = ''; $updown = '';
$spacer = $OUTPUT->spacer(array('height'=>15, 'width'=>15)); // should be done with CSS instead $spacer = $OUTPUT->spacer(array('height'=>15, 'width'=>15)); // should be done with CSS instead
Expand Down Expand Up @@ -342,6 +342,7 @@ function repository_action_url($repository) {
// Check that it has not already been listed // Check that it has not already been listed
if (!in_array($plugin, $alreadyplugins)) { if (!in_array($plugin, $alreadyplugins)) {
$select = new single_select(repository_action_url($plugin, 'repos'), 'action', $actionchoicesfornew, 'delete', null, 'applyto' . basename($plugin)); $select = new single_select(repository_action_url($plugin, 'repos'), 'action', $actionchoicesfornew, 'delete', null, 'applyto' . basename($plugin));
$select->set_label(get_accesshide(get_string('action')));
$table->data[] = array(get_string('pluginname', 'repository_'.$plugin), $OUTPUT->render($select), '', ''); $table->data[] = array(get_string('pluginname', 'repository_'.$plugin), $OUTPUT->render($select), '', '');
} }
} }
Expand Down
5 changes: 4 additions & 1 deletion admin/roles/lib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -721,7 +721,10 @@ protected function get_archetype_field($id) {
foreach(get_role_archetypes() as $type) { foreach(get_role_archetypes() as $type) {
$options[$type] = get_string('archetype'.$type, 'role'); $options[$type] = get_string('archetype'.$type, 'role');
} }
return html_writer::select($options, 'archetype', $this->role->archetype, false);
$return = html_writer::label(get_string('archetype'.$type, 'role'), 'menuarchetype', false, array('class' => 'accesshide'));
$return .= html_writer::select($options, 'archetype', $this->role->archetype, false);
return $return;
} }


protected function get_assignable_levels_control() { protected function get_assignable_levels_control() {
Expand Down
2 changes: 1 addition & 1 deletion admin/timezone.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
$timezones = get_list_of_timezones(); $timezones = get_list_of_timezones();


echo '<center><form action="timezone.php" method="post">'; echo '<center><form action="timezone.php" method="post">';
echo "$strusers ($strall): "; echo html_writer::label($strusers . ' (' . $strall . '): ', 'menuzone');
echo html_writer::select($timezones, "zone", $current, array('99'=>get_string("serverlocaltime"))); echo html_writer::select($timezones, "zone", $current, array('99'=>get_string("serverlocaltime")));
echo "<input type=\"hidden\" name=\"sesskey\" value=\"".sesskey()."\" />"; echo "<input type=\"hidden\" name=\"sesskey\" value=\"".sesskey()."\" />";
echo '<input type="submit" value="'.s($strsavechanges).'" />'; echo '<input type="submit" value="'.s($strsavechanges).'" />';
Expand Down
4 changes: 2 additions & 2 deletions admin/tool/langimport/index.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
echo html_writer::start_tag('td', array('valign' => 'top')); echo html_writer::start_tag('td', array('valign' => 'top'));
echo html_writer::start_tag('form', array('id' => 'uninstallform', 'action' => $url->out(), 'method' => 'post')); echo html_writer::start_tag('form', array('id' => 'uninstallform', 'action' => $url->out(), 'method' => 'post'));
echo html_writer::start_tag('fieldset'); echo html_writer::start_tag('fieldset');
echo html_writer::label(get_string('installedlangs', 'tool_langimport'), 'uninstalllang'); echo html_writer::label(get_string('installedlangs', 'tool_langimport'), 'menuuninstalllang');
echo html_writer::empty_tag('br'); echo html_writer::empty_tag('br');
echo html_writer::select($installedlangs, 'uninstalllang', '', false, array('size' => 15)); echo html_writer::select($installedlangs, 'uninstalllang', '', false, array('size' => 15));
echo html_writer::empty_tag('input', array('type' => 'hidden', 'name' => 'sesskey', 'value' => sesskey())); echo html_writer::empty_tag('input', array('type' => 'hidden', 'name' => 'sesskey', 'value' => sesskey()));
Expand Down Expand Up @@ -315,7 +315,7 @@
$url = new moodle_url('/admin/tool/langimport/index.php', array('mode' => INSTALLATION_OF_SELECTED_LANG)); $url = new moodle_url('/admin/tool/langimport/index.php', array('mode' => INSTALLATION_OF_SELECTED_LANG));
echo html_writer::start_tag('form', array('id' => 'installform', 'action' => $url->out(), 'method' => 'post')); echo html_writer::start_tag('form', array('id' => 'installform', 'action' => $url->out(), 'method' => 'post'));
echo html_writer::start_tag('fieldset'); echo html_writer::start_tag('fieldset');
echo html_writer::label(get_string('availablelangs','install'), 'pack'); echo html_writer::label(get_string('availablelangs','install'), 'menupack');
echo html_writer::empty_tag('br'); echo html_writer::empty_tag('br');
echo html_writer::select($options, 'pack[]', '', false, array('size' => 15, 'multiple' => 'multiple')); echo html_writer::select($options, 'pack[]', '', false, array('size' => 15, 'multiple' => 'multiple'));
echo html_writer::empty_tag('input', array('type' => 'hidden', 'name' => 'sesskey', 'value' => sesskey())); echo html_writer::empty_tag('input', array('type' => 'hidden', 'name' => 'sesskey', 'value' => sesskey()));
Expand Down
1 change: 1 addition & 0 deletions admin/tool/spamcleaner/index.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@


<form method="post" action="index.php"> <form method="post" action="index.php">
<div> <div>
<label class="accesshide" for="keyword_el"><?php get_string('keyword', 'tool_spamcleaner') ?></label>
<input type="text" name="keyword" id="keyword_el" value="<?php p($keyword) ?>" /> <input type="text" name="keyword" id="keyword_el" value="<?php p($keyword) ?>" />
<input type="hidden" name="sesskey" value="<?php echo sesskey();?>" /> <input type="hidden" name="sesskey" value="<?php echo sesskey();?>" />
<input type="submit" value="<?php echo get_string('spamsearch', 'tool_spamcleaner')?>" /> <input type="submit" value="<?php echo get_string('spamsearch', 'tool_spamcleaner')?>" />
Expand Down
1 change: 1 addition & 0 deletions admin/tool/spamcleaner/lang/en/tool_spamcleaner.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
$string['spamfrommessages'] = 'From messages:'; $string['spamfrommessages'] = 'From messages:';
$string['spamfromforumpost'] = 'From forum post:'; $string['spamfromforumpost'] = 'From forum post:';
$string['spaminvalidresult'] = 'Unknown but invalid result'; $string['spaminvalidresult'] = 'Unknown but invalid result';
$string['spamkeyword'] = 'Keyword';
$string['spamoperation'] = 'Operation'; $string['spamoperation'] = 'Operation';
$string['spamresult'] = 'Results of searching user profiles containing:'; $string['spamresult'] = 'Results of searching user profiles containing:';
$string['spamsearch'] = 'Search for these keywords'; $string['spamsearch'] = 'Search for these keywords';
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function invoke() {
$o.= ' <input type="hidden" name ="postaction" value="edit_table" />'; $o.= ' <input type="hidden" name ="postaction" value="edit_table" />';
$o.= ' <input type="hidden" name ="sesskey" value="' . sesskey() . '" />'; $o.= ' <input type="hidden" name ="sesskey" value="' . sesskey() . '" />';
$o.= ' <table id="formelements" class="boxaligncenter" cellpadding="5">'; $o.= ' <table id="formelements" class="boxaligncenter" cellpadding="5">';
$o.= ' <tr><td><label for="table" accesskey="t">' . $this->str['createtable'] .' </label>' . html_writer::select($selecttables, 'table') . '<label for="after" accesskey="a">' . $this->str['aftertable'] . ' </label>' .html_writer::select($aftertables, 'after') . '</td></tr>'; $o.= ' <tr><td><label for="menutable" accesskey="t">' . $this->str['createtable'] .' </label>' . html_writer::select($selecttables, 'table') . '<label for="after" accesskey="a">' . $this->str['aftertable'] . ' </label>' .html_writer::select($aftertables, 'after') . '</td></tr>';
$o.= ' <tr><td colspan="2" align="center"><input type="submit" value="' .$this->str['create'] . '" /></td></tr>'; $o.= ' <tr><td colspan="2" align="center"><input type="submit" value="' .$this->str['create'] . '" /></td></tr>';
$o.= ' <tr><td colspan="2" align="center"><a href="index.php?action=edit_xml_file&amp;dir=' . urlencode(str_replace($CFG->dirroot, '', $dirpath)) . '">[' . $this->str['back'] . ']</a></td></tr>'; $o.= ' <tr><td colspan="2" align="center"><a href="index.php?action=edit_xml_file&amp;dir=' . urlencode(str_replace($CFG->dirroot, '', $dirpath)) . '">[' . $this->str['back'] . ']</a></td></tr>';
$o.= ' </table>'; $o.= ' </table>';
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function invoke() {
$o.= ' <input type="hidden" name ="dir" value="' . str_replace($CFG->dirroot, '', $dirpath) . '" />'; $o.= ' <input type="hidden" name ="dir" value="' . str_replace($CFG->dirroot, '', $dirpath) . '" />';
$o.= ' <input type="hidden" name ="action" value="view_structure_php" />'; $o.= ' <input type="hidden" name ="action" value="view_structure_php" />';
$o.= ' <table id="formelements" class="boxaligncenter" cellpadding="5">'; $o.= ' <table id="formelements" class="boxaligncenter" cellpadding="5">';
$o.= ' <tr><td><label for="action" accesskey="c">' . $this->str['selectaction'] .' </label>' . html_writer::select($popcommands, 'command', $commandparam, false) . '&nbsp;<label for="table" accesskey="t">' . $this->str['selecttable'] . ' </label>' .html_writer::select($poptables, 'table', $tableparam, false) . '</td></tr>'; $o.= ' <tr><td><label for="menucommand" accesskey="c">' . $this->str['selectaction'] .' </label>' . html_writer::select($popcommands, 'command', $commandparam, false) . '&nbsp;<label for="menutable" accesskey="t">' . $this->str['selecttable'] . ' </label>' .html_writer::select($poptables, 'table', $tableparam, false) . '</td></tr>';
$o.= ' <tr><td colspan="2" align="center"><input type="submit" value="' .$this->str['view'] . '" /></td></tr>'; $o.= ' <tr><td colspan="2" align="center"><input type="submit" value="' .$this->str['view'] . '" /></td></tr>';
$o.= ' </table>'; $o.= ' </table>';
$o.= '</div></form>'; $o.= '</div></form>';
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function invoke() {
$o.= ' <input type="hidden" name ="table" value="' . s($tableparam) . '" />'; $o.= ' <input type="hidden" name ="table" value="' . s($tableparam) . '" />';
$o.= ' <input type="hidden" name ="action" value="view_table_php" />'; $o.= ' <input type="hidden" name ="action" value="view_table_php" />';
$o.= ' <table id="formelements" class="boxaligncenter" cellpadding="5">'; $o.= ' <table id="formelements" class="boxaligncenter" cellpadding="5">';
$o.= ' <tr><td><label for="action" accesskey="c">' . $this->str['selectaction'] .' </label>' . html_writer::select($popcommands, 'command', $commandparam, false) . '&nbsp;<label for="fieldkeyindex" accesskey="f">' . $this->str['selectfieldkeyindex'] . ' </label>' .html_writer::select($popfields, 'fieldkeyindex', $origfieldkeyindexparam, false) . '</td></tr>'; $o.= ' <tr><td><label for="menucommand" accesskey="c">' . $this->str['selectaction'] .' </label>' . html_writer::select($popcommands, 'command', $commandparam, false) . '&nbsp;<label for="menufieldkeyindex" accesskey="f">' . $this->str['selectfieldkeyindex'] . ' </label>' .html_writer::select($popfields, 'fieldkeyindex', $origfieldkeyindexparam, false) . '</td></tr>';
$o.= ' <tr><td colspan="2" align="center"><input type="submit" value="' .$this->str['view'] . '" /></td></tr>'; $o.= ' <tr><td colspan="2" align="center"><input type="submit" value="' .$this->str['view'] . '" /></td></tr>';
$o.= ' </table>'; $o.= ' </table>';
$o.= '</div></form>'; $o.= '</div></form>';
Expand Down
28 changes: 14 additions & 14 deletions auth/cas/config.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ <h4><?php print_string('auth_cas_server_settings', 'auth_cas') ?></h4>
</td> </td>
</tr> </tr>
<tr valign="top" class="required"> <tr valign="top" class="required">
<td align="right"><?php print_string('auth_cas_hostname_key', 'auth_cas') ?>:</td> <td align="right"><label for="hostname"><?php print_string('auth_cas_hostname_key', 'auth_cas') ?>: </label></td>
<td> <td>
<input name="hostname" type="text" size="30" value="<?php echo $config->hostname ?>" /> <input name="hostname" id="hostname" type="text" size="30" value="<?php echo $config->hostname ?>" />
<?php if (isset($err['hostname'])) { echo $OUTPUT->error_text($err['hostname']); } ?> <?php if (isset($err['hostname'])) { echo $OUTPUT->error_text($err['hostname']); } ?>
</td> </td>
<td> <td>
Expand All @@ -105,10 +105,10 @@ <h4><?php print_string('auth_cas_server_settings', 'auth_cas') ?></h4>
</tr> </tr>
<tr valign="top" class="required"> <tr valign="top" class="required">
<td align="right"> <td align="right">
<?php print_string('auth_cas_baseuri_key', 'auth_cas') ?>: <label for="baseuri"><?php print_string('auth_cas_baseuri_key', 'auth_cas') ?>: </label>
</td> </td>
<td> <td>
<input name="baseuri" type="text" size="30" value="<?php echo $config->baseuri ?>" /> <input name="baseuri" id="baseuri" type="text" size="30" value="<?php echo $config->baseuri ?>" />
<?php if (isset($err['baseuri'])) { echo $OUTPUT->error_text($err['baseuri']); } ?> <?php if (isset($err['baseuri'])) { echo $OUTPUT->error_text($err['baseuri']); } ?>
</td> </td>
<td> <td>
Expand All @@ -117,10 +117,10 @@ <h4><?php print_string('auth_cas_server_settings', 'auth_cas') ?></h4>
</tr> </tr>
<tr valign="top" class="required"> <tr valign="top" class="required">
<td align="right"> <td align="right">
<?php print_string('auth_cas_port_key', 'auth_cas') ?>: <label for="port"><?php print_string('auth_cas_port_key', 'auth_cas') ?>: </label>
</td> </td>
<td> <td>
<input name="port" type="text" size="30" value="<?php echo $config->port ?>" /> <input name="port" id="port" type="text" size="30" value="<?php echo $config->port ?>" />
<?php if (isset($err['port'])) { echo $OUTPUT->error_text($err['port']); } ?> <?php if (isset($err['port'])) { echo $OUTPUT->error_text($err['port']); } ?>
</td> </td>
<td> <td>
Expand All @@ -129,7 +129,7 @@ <h4><?php print_string('auth_cas_server_settings', 'auth_cas') ?></h4>
</tr> </tr>
<tr valign="top" class="required"> <tr valign="top" class="required">
<td align="right"> <td align="right">
<?php print_string('auth_cas_casversion', 'auth_cas') ?>: <?php echo html_writer::label(get_string('auth_cas_casversion', 'auth_cas'), 'menucasversion'); ?>:
</td> </td>
<td> <td>
<?php <?php
Expand All @@ -145,7 +145,7 @@ <h4><?php print_string('auth_cas_server_settings', 'auth_cas') ?></h4>
</td> </td>
</tr> </tr>
<tr valign="top" class="required"> <tr valign="top" class="required">
<td align="right"><?php print_string('auth_cas_language_key', 'auth_cas') ?>:</td> <td align="right"><?php echo html_writer::label(get_string('auth_cas_language_key', 'auth_cas'), 'menulanguage'); ?>:</td>
<td> <td>
<?php echo html_writer::select($CASLANGUAGES, 'language', $config->language, false); ?> <?php echo html_writer::select($CASLANGUAGES, 'language', $config->language, false); ?>
</td> </td>
Expand All @@ -155,7 +155,7 @@ <h4><?php print_string('auth_cas_server_settings', 'auth_cas') ?></h4>
</tr> </tr>
<tr valign="top" class="required"> <tr valign="top" class="required">
<td align="right"> <td align="right">
<?php print_string('auth_cas_proxycas_key', 'auth_cas') ?>: <?php echo html_writer::label(get_string('auth_cas_proxycas_key', 'auth_cas'), 'menuproxycas'); ?>:
</td> </td>
<td> <td>
<?php echo html_writer::select($yesno, 'proxycas', $config->proxycas, false); ?> <?php echo html_writer::select($yesno, 'proxycas', $config->proxycas, false); ?>
Expand All @@ -165,7 +165,7 @@ <h4><?php print_string('auth_cas_server_settings', 'auth_cas') ?></h4>
</td> </td>
</tr> </tr>
<tr valign="top" class="required"> <tr valign="top" class="required">
<td align="right"><?php print_string('auth_cas_logoutcas_key', 'auth_cas') ?>:</td> <td align="right"><?php echo html_writer::label(get_string('auth_cas_logoutcas_key', 'auth_cas'), 'menulogoutcas'); ?>:</td>
<td> <td>
<?php echo html_writer::select($yesno, 'logoutcas', $config->logoutcas, false); ?> <?php echo html_writer::select($yesno, 'logoutcas', $config->logoutcas, false); ?>
</td> </td>
Expand All @@ -174,7 +174,7 @@ <h4><?php print_string('auth_cas_server_settings', 'auth_cas') ?></h4>
</td> </td>
</tr> </tr>
<tr valign="top" class="required"> <tr valign="top" class="required">
<td align="right"><?php print_string('auth_cas_multiauth_key', 'auth_cas') ?>:</td> <td align="right"><?php echo html_writer::label(get_string('auth_cas_multiauth_key', 'auth_cas'), 'menumultiauth'); ?>:</td>
<td> <td>
<?php echo html_writer::select($yesno, 'multiauth', $config->multiauth, false); ?> <?php echo html_writer::select($yesno, 'multiauth', $config->multiauth, false); ?>
</td> </td>
Expand All @@ -183,7 +183,7 @@ <h4><?php print_string('auth_cas_server_settings', 'auth_cas') ?></h4>
</td> </td>
</tr> </tr>
<tr valign="top" class="required"> <tr valign="top" class="required">
<td align="right"><?php print_string('auth_cas_certificate_check_key', 'auth_cas') ?>:</td> <td align="right"><?php echo html_writer::label(get_string('auth_cas_certificate_check_key', 'auth_cas'), 'menucertificate_check'); ?>:</td>
<td> <td>
<?php echo html_writer::select($yesno, 'certificate_check', $config->certificate_check, false); ?> <?php echo html_writer::select($yesno, 'certificate_check', $config->certificate_check, false); ?>
</td> </td>
Expand All @@ -192,7 +192,7 @@ <h4><?php print_string('auth_cas_server_settings', 'auth_cas') ?></h4>
</td> </td>
</tr> </tr>
<tr valign="top" class="required"> <tr valign="top" class="required">
<td align="right"><?php print_string('auth_cas_certificate_path_key', 'auth_cas') ?>:</td> <td align="right"><label for="certificate_path"><?php print_string('auth_cas_certificate_path_key', 'auth_cas') ?>: </label></td>
<td> <td>
<input name="certificate_path" id="certificate_path" type="text" size="30" value="<?php echo $config->certificate_path ?>" /> <input name="certificate_path" id="certificate_path" type="text" size="30" value="<?php echo $config->certificate_path ?>" />
<?php if (isset($err['certificate_path'])) echo $OUTPUT->error_text($err['certificate_path']); ?> <?php if (isset($err['certificate_path'])) echo $OUTPUT->error_text($err['certificate_path']); ?>
Expand All @@ -219,7 +219,7 @@ <h4><?php print_string('auth_ldap_server_settings', 'auth_ldap') ?></h4>
</td> </td>
</tr> </tr>
<tr valign="top" class="required"> <tr valign="top" class="required">
<td align="right"><label for="menuversion"><?php print_string('auth_ldap_version_key', 'auth_ldap') ?></label></td> <td align="right"><label for="menuldap_version"><?php print_string('auth_ldap_version_key', 'auth_ldap') ?></label></td>
<td> <td>
<?php <?php
$versions = array(); $versions = array();
Expand Down
16 changes: 8 additions & 8 deletions auth/fc/config.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
<table cellspacing="0" cellpadding="5" border="0"> <table cellspacing="0" cellpadding="5" border="0">


<tr valign="top" class="required"> <tr valign="top" class="required">
<td align="right"><?php print_string("auth_fchost_key", "auth_fc") ?>:</td> <td align="right"><label for="host"><?php print_string("auth_fchost_key", "auth_fc") ?>:</label></td>
<td> <td>
<input name="host" type="text" size="30" value="<?php echo $config->host?>" /> <input name="host" id="host" type="text" size="30" value="<?php echo $config->host?>" />
<?php if (isset($err["host"])) echo $OUTPUT->error_text($err["host"]); ?> <?php if (isset($err["host"])) echo $OUTPUT->error_text($err["host"]); ?>
</td> </td>
<td> <td>
Expand All @@ -38,9 +38,9 @@
</tr> </tr>


<tr valign="top" class="required"> <tr valign="top" class="required">
<td align="right"><?php print_string("auth_fcfppport_key", "auth_fc") ?>:</td> <td align="right"><label for="fppport"><?php print_string("auth_fcfppport_key", "auth_fc") ?>: </label></td>
<td> <td>
<input name="fppport" type="text" size="30" value="<?php echo $config->fppport?>" /> <input name="fppport" id="fppport" type="text" size="30" value="<?php echo $config->fppport?>" />
<?php if (isset($err["fppport"])) echo $OUTPUT->error_text($err["host"]); ?> <?php if (isset($err["fppport"])) echo $OUTPUT->error_text($err["host"]); ?>
</td> </td>
<td> <td>
Expand Down Expand Up @@ -70,9 +70,9 @@
</tr> </tr>


<tr valign="top" class="required"> <tr valign="top" class="required">
<td align="right"><?php print_string("auth_fccreators_key", "auth_fc") ?>:</td> <td align="right"><label for="creators"><?php print_string("auth_fccreators_key", "auth_fc") ?>: </label></td>
<td> <td>
<input name="creators" type="text" size="30" value="<?php echo $config->creators?>" /> <input name="creators" id="creators" type="text" size="30" value="<?php echo $config->creators?>" />
<?php if (isset($err["creators"])) echo $OUTPUT->error_text($err["creators"]); ?> <?php if (isset($err["creators"])) echo $OUTPUT->error_text($err["creators"]); ?>
</td> </td>
<td> <td>
Expand All @@ -81,9 +81,9 @@
</tr> </tr>


<tr valign="top"> <tr valign="top">
<td align="right"><?php print_string('auth_fcchangepasswordurl', 'auth_fc') ?>: </td> <td align="right"><label for="changepasswordurl"><?php print_string('auth_fcchangepasswordurl', 'auth_fc') ?>: </label></td>
<td> <td>
<input name="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" /> <input name="changepasswordurl" id="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
<?php <?php


if (isset($err['changepasswordurl'])) { if (isset($err['changepasswordurl'])) {
Expand Down
Loading

0 comments on commit f9f281b

Please sign in to comment.