Code

Udpated JS focus,
[gosa.git] / plugins / admin / systems / password.tpl
index eb2e9205ba93f70bf807bf5cce49e8a37e2461c5..734a4ae0c443f629c34b36070c0acd7664167377 100644 (file)
@@ -1,20 +1,23 @@
 <p>
- {t}To change the terminal root password use the fields below. The changes take effect during next reboot. Please memorize the new password, because the you would't be able to log in. <b>Leave fields blank for password inheritance from default entries.</b>{/t}
+ {t}To change the terminal root password use the fields below. The changes take effect during the next reboot. Please memorize the new password, because you wouldn't be able to log in.{/t}
+</p>
+<p>
+ <b>{t}Leave fields blank for password inheritance from default entries.{/t}</b>
 </p>
 
 <p>
  {t}Changing the password impinges on authentification only.{/t}
 </p>
 
-<table style="vertical-align:top; text-align:left;" cellpadding=4 border=0>
+<table summary="" style="vertical-align:top; text-align:left;" cellpadding=4 border=0>
   <tr>
-    <td><b>{t}New password{/t}</b></td>
-    <td><input type="password" name="new_password" size="30" maxlength="40"
+    <td><b><LABEL for="new_password">{t}New password{/t}</LABEL></b></td>
+    <td><input id="new_password" type="password" name="new_password" size="30" maxlength="40"
                onFocus="nextfield= 'repeated_password';"></td>
   </tr>
   <tr>
-    <td><b>{t}Repeat new password{/t}</b></td>
-    <td><input type="password" name="repeated_password" size="30" maxlength="40"
+    <td><b><LABEL for="repeated_password">{t}Repeat new password{/t}</LABEL></b></td>
+    <td><input type="password" id="repeated_password" name="repeated_password" size="30" maxlength="40"
                onFocus="nextfield= 'password_finish';"></td>
   </tr>
 </table>
@@ -30,7 +33,7 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  nextfield= 'new_password';
-  document.mainform.new_password.focus();
+       nextfield= 'new_password';
+       focus_field('new_password');
   -->
 </script>