Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -1075,6 +1075,20 @@ |
1076 | 1076 | $username = self::$messages['mobile-frontend-username']; |
1077 | 1077 | $password = self::$messages['mobile-frontend-password']; |
1078 | 1078 | $login = self::$messages['mobile-frontend-login']; |
| 1079 | + $loginHtml = Html::input( 'wpName', $this->data['name'], 'text', array( |
| 1080 | + 'class' => 'loginText', |
| 1081 | + 'id' => 'wpName1', |
| 1082 | + 'tabindex' => '1', |
| 1083 | + 'size' => '20', |
| 1084 | + 'required') ); |
| 1085 | + $passwordHtml = Html::input( 'wpPassword', null, 'password', array( |
| 1086 | + 'class' => 'loginPassword', |
| 1087 | + 'id' => 'wpPassword1', |
| 1088 | + 'tabindex' => '2', |
| 1089 | + 'size' => '20') ); |
| 1090 | + $buttonHtml = Html::input( 'wpLoginAttempt', $login, 'submit', array( |
| 1091 | + 'id' => 'wpLoginAttempt', |
| 1092 | + 'tabindex' => '3') ); |
1079 | 1093 | $form = <<<EOT |
1080 | 1094 | <form name="userlogin" method="post" action="{$action}"> |
1081 | 1095 | <table class="user-login"> |
— | — | @@ -1083,19 +1097,19 @@ |
1084 | 1098 | <td class="mw-label"><label for="wpName1">{$username}</label></td> |
1085 | 1099 | </tr> |
1086 | 1100 | <tr> |
1087 | | - <td class="mw-input"><input class="loginText" id="wpName1" tabindex="1" size="20" value="" name="wpName"></td> |
| 1101 | + <td class="mw-input">{$loginHtml}</td> |
1088 | 1102 | </tr> |
1089 | 1103 | <tr> |
1090 | 1104 | <td class="mw-label"><label for="wpPassword1">{$password}</label></td> |
1091 | 1105 | </tr> |
1092 | 1106 | <tr> |
1093 | | - <td class="mw-input"><input class="loginPassword" id="wpPassword1" tabindex="2" size="20" autofocus="" type="password" name="wpPassword"></td> |
| 1107 | + <td class="mw-input">{$passwordHtml}</td> |
1094 | 1108 | </tr> |
1095 | 1109 | <tr> |
1096 | 1110 | <td></td> |
1097 | 1111 | </tr> |
1098 | 1112 | <tr> |
1099 | | - <td class="mw-submit"><input id="wpLoginAttempt" tabindex="9" type="submit" value="{$login}" name="wpLoginAttempt"></td> |
| 1113 | + <td class="mw-submit">{$buttonHtml}</td> |
1100 | 1114 | </tr> |
1101 | 1115 | </tbody> |
1102 | 1116 | </table> |