Code

Updated focus movement in forms
[gosa.git] / gosa-core / plugins / personal / password / password.tpl
1 <script type="text/javascript" src="include/pwdStrength.js"></script>
3 <p>
4   {t}To change your personal password use the fields below. The changes take effect immediately. Please memorize the new password, because you wouldn't be able to login without it.{/t}
5 </p>
7 <p>
8   {t}Changing the password affects your authentification on mail, proxy, samba and unix services.{/t}
9 </p>
11 <table cellpadding=4 border=0 summary="{t}Password change dialog{/t}">
12   <tr>
13     <td><b><LABEL for="current_password">{t}Current password{/t}</LABEL></b></td>
14     <td>
15         {factory type='password' name='current_password' id='current_password' onfocus="nextfield= 'new_password';"}
16     </td>
17   </tr>
18   <tr>
19     <td><b><LABEL for="new_password">{t}New password{/t}</LABEL></b></td>
20     <td>
21         {factory type='password' name='new_password' id='new_password' 
22             onkeyup="testPasswordCss(\$('new_password').value)"  onfocus="nextfield= 'repeated_password';"}
23     </td>
24   </tr>
25   <tr>
26     <td><b><LABEL for="repeated_password">{t}Repeat new password{/t}</LABEL></b></td>
27     <td>
28         {factory type='password' name='repeated_password' id='repeated_password' onfocus="nextfield= 'password_finish';"}
29     </td>
30   </tr>
31   <tr>
32     <td><b>{t}Password strength{/t}</b></td>
33     <td>
34         <span id="meterEmpty" style="padding:0;margin:0;width:100%;background-color:#DC143C;display:block;height:5px;">
35         <span id="meterFull" style="padding:0;margin:0;z-index:100;width:0;background-color:#006400;display:block;height:5px;"></span></span>
36     </td>
37   </tr>
38 </table>
40 <br>
42 <hr>
43 <div class="plugin-actions">
44   <button type='submit' name='password_finish'>{t}Set password{/t}</button>
45   <button type=reset id="password_cancel" name="password_cancel">{t}Clear fields{/t}</button>
46 </div>
48 <input type='hidden' id='formSubmit'>
50 <input type="hidden" name="ignore">
52 <!-- Place cursor -->
53 <script language="JavaScript" type="text/javascript">
54   <!-- // First input field on page
55   nextfield= 'current_password';
56         focus_field('current_password');
57   -->
58 </script>