Accessibility: added <label>s
authorTom Gilder <tomgilder@users.mediawiki.org>
Fri, 21 Jan 2005 20:01:13 +0000 (20:01 +0000)
committerTom Gilder <tomgilder@users.mediawiki.org>
Fri, 21 Jan 2005 20:01:13 +0000 (20:01 +0000)
includes/templates/Userlogin.php

index 305096e..7420484 100644 (file)
@@ -22,9 +22,9 @@ class UserloginTemplate extends QuickTemplate {
 <form name="userlogin" id="userlogin" method="post" action="<?php $this->text('action') ?>">
        <table border='0'>
                <tr>
-                       <td align='right'><?php $this->msg('yourname') ?>:</td>
+                       <td align='right'><label for='wpName'><?php $this->msg('yourname') ?>:</label></td>
                        <td align='left'>
-                               <input tabindex='1' type='text' name="wpName"
+                               <input tabindex='1' type='text' name="wpName" id="wpName"
                                        value="<?php $this->text('name') ?>" size='20' />
                        </td>
                        <td align='left'>
@@ -33,9 +33,9 @@ class UserloginTemplate extends QuickTemplate {
                        </td>
                </tr>
                <tr>
-                       <td align='right'><?php $this->msg('yourpassword') ?>:</td>
+                       <td align='right'><label for='wpPassword'><?php $this->msg('yourpassword') ?>:</label></td>
                        <td align='left'>
-                               <input tabindex='2' type='password' name="wpPassword"
+                               <input tabindex='2' type='password' name="wpPassword" id="wpPassword"
                                        value="<?php $this->text('password') ?>" size='20' />
                        </td>
                        <td align='left'>
@@ -50,9 +50,9 @@ class UserloginTemplate extends QuickTemplate {
                        <td colspan='3'>&nbsp;</td>
                </tr>
                <tr>
-                       <td align='right'><?php $this->msg('yourpasswordagain') ?>:</td>
+                       <td align='right'><label for='wpRetype'><?php $this->msg('yourpasswordagain') ?>:</label></td>
                        <td align='left'>
-                               <input tabindex='5' type='password' name="wpRetype"
+                               <input tabindex='5' type='password' name="wpRetype" id="wpRetype"
                                        value="<?php $this->text('retype') ?>" 
                                        size='20' />
                        </td>
@@ -60,18 +60,18 @@ class UserloginTemplate extends QuickTemplate {
                </tr>
                <tr>
                        <?php if( $this->data['useemail'] ) { ?>
-                               <td align='right'><?php $this->msg('youremail') ?>:</td>
+                               <td align='right'><label for='wpEmail'><?php $this->msg('youremail') ?>:</label></td>
                                <td align='left'>
-                                       <input tabindex='7' type='text' name="wpEmail"
+                                       <input tabindex='7' type='text' name="wpEmail" id="wpEmail"
                                                value="<?php $this->text('email') ?>" size='20' />
                                </td>
                        <?php } ?>
                        <?php if( $this->data['userealname'] ) { ?>
                                </tr>
                                <tr>
-                                       <td align='right'><?php $this->msg('yourrealname') ?>:</td>
+                                       <td align='right'><label for='wpRealName'><?php $this->msg('yourrealname') ?>:</label></td>
                                        <td align='left'>
-                                               <input tabindex='8' type='text' name="wpRealName" 
+                                               <input tabindex='8' type='text' name="wpRealName" id="wpRealName"
                                                        value="<?php $this->text('realname') ?>" size='20' />
                                        </td>
                        <?php } ?>