Code

9a99154dcfe1e37aeb6e85383784c1996baf3d2a
[gosa.git] / gosa-core / plugins / admin / users / password.tpl
1 <script type="text/javascript" src="include/pwdStrength.js"></script>
3 <p>
4  {t}To change the user password use the fields below. The changes take effect immediately. Please memorize the new password, because the user wouldn't be able to login without it.{/t}
5 </p>
7 <hr>
9 {if !$proposalEnabled}
11   <table summary="{t}Password input dialog{/t}" cellpadding=4 border=0>
12     <tr>
13       <td><b><LABEL for="new_password">{t}New password{/t}</LABEL></b></td>
14       <td>
15           {factory type='password' id='new_password' name='new_password' 
16               onfocus="nextfield='repeated_password';" onkeyup="testPasswordCss(\$('new_password').value);"}
17       </td>
18     </tr>
19     <tr>
20       <td><b><LABEL for="repeated_password">{t}Repeat new password{/t}</LABEL></b></td>
21       <td>
22           {factory type='password' id='repeated_password' name='repeated_password'
23               onfocus="nextfield='password_finish';"}
24       </td>
25     </tr>
26     <tr>
27       <td><b>{t}Strength{/t}</b></td>
28       <td>
29         <span id="meterEmpty" style="padding:0;margin:0;width:100%;
30           background-color:#DC143C;display:block;height:7px;">
31         <span id="meterFull" style="padding:0;margin:0;z-index:100;width:0;
32           background-color:#006400;display:block;height:7px;"></span></span>
33       </td>
34     </tr>
35   </table>
37 {else}
39   <table summary="{t}Password input dialog{/t}" cellpadding=4 border=0>
40     <tr>
41       <td>
42         <input type='radio' value='1' name='proposalSelected'
43             {if $proposalSelected} checked {/if}>&nbsp;<b>{t}Use proposal{/t}</b>
44       </td>
45       <td>
46         <input type='text' disabled value="{$proposal}" style='color: black;'>
47         &nbsp;{image path='images/lists/reload.png' action='refreshProposal'}
48       </td>
49     </tr>
50     <tr>
51       <td>
52         <input type='radio' value='0' name='proposalSelected'
53             {if !$proposalSelected} checked {/if}>&nbsp;<b>{t}Manually specify a password{/t}</b>
54       </td>
55     </tr>
56     <tr>
57       <td style='padding-left:40px;'><b><LABEL for="new_password">{t}New password{/t}</LABEL></b></td>
58       <td>
59           {factory type='password' id='new_password' name='new_password' 
60               onfocus="nextfield='repeated_password';" onkeyup="testPasswordCss(\$('new_password').value);"}
61       </td>
62     </tr>
63     <tr>
64       <td style='padding-left:40px;'><b><LABEL for="repeated_password">{t}Repeat new password{/t}</LABEL></b></td>
65       <td>
66           {factory type='password' id='repeated_password' name='repeated_password'
67               onfocus="nextfield='password_finish';"}
68       </td>
69     </tr>
70     <tr>
71       <td style='padding-left:40px;'><b>{t}Strength{/t}</b></td>
72       <td>
73         <span id="meterEmpty" style="padding:0;margin:0;width:100%;
74           background-color:#DC143C;display:block;height:7px;">
75         <span id="meterFull" style="padding:0;margin:0;z-index:100;width:0;
76           background-color:#006400;display:block;height:7px;"></span></span>
77       </td>
78     </tr>
79   </table>
81 {/if}
83 {if $passwordChangeForceable}
84     <hr>
85     <input type='checkbox' name='enforcePasswordChange' value='1' id='enforcePasswordChange'
86         {if $enforcePasswordChange} checked {/if}>&nbsp;
87             <LABEL for='enforcePasswordChange'>{t}Enforce password change on next login.{/t}</LABEL>
88 {/if}
90 <br>
91 <hr>
92 <div class="plugin-actions">
93   <button type='submit' id='password_finish'name='password_finish'>{t}Set password{/t}</button>
94   <button type='submit' id='password_cancel'name='password_cancel'>{msgPool type=cancelButton}</button>
95 </div>
97 <input type='hidden' id='formSubmit'>
99 <!-- Place cursor -->
100 <script language="JavaScript" type="text/javascript">
101   <!-- // First input field on page
102         nextfield= "new_password";
103         focus_field('new_password');
104   -->
105 </script>