Code

d5b28604922d633090f93cdbdb2a79dc7f12f7e8
[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 <hr>
9 {if !$proposalEnabled}
10   <table cellpadding=4 border=0 summary="{t}Password change dialog{/t}">
11     <tr>
12       <td><b><LABEL for="current_password">{t}Current password{/t}</LABEL></b></td>
13       <td>
14           {factory type='password' name='current_password' id='current_password' onfocus="nextfield= 'new_password';"}
15       </td>
16     </tr>
17     <tr>
18       <td><b><LABEL for="new_password">{t}New password{/t}</LABEL></b></td>
19       <td>
20           {factory type='password' name='new_password' id='new_password' 
21               onkeyup="testPasswordCss(\$('new_password').value)"  onfocus="nextfield= 'repeated_password';"}
22       </td>
23     </tr>
24     <tr>
25       <td><b><LABEL for="repeated_password">{t}Repeat new password{/t}</LABEL></b></td>
26       <td>
27           {factory type='password' name='repeated_password' id='repeated_password' onfocus="nextfield= 'password_finish';"}
28       </td>
29     </tr>
30     <tr>
31       <td><b>{t}Password strength{/t}</b></td>
32       <td>
33       <span id="meterEmpty" style="padding:0;margin:0;width:100%;background-color:#DC143C;display:block;height:7px;">
34       <span id="meterFull" style="padding:0;margin:0;z-index:100;width:0;background-color:#006400;display:block;height:7px;"></span></span>
35       </td>
36     </tr>
37   </table>
38 {else}
39   <table cellpadding=4 border=0 summary="{t}Password change dialog{/t}">
40     <tr>
41       <td><b><LABEL for="current_password">{t}Current password{/t}</LABEL></b></td>
42       <td>
43           {factory type='password' name='current_password' id='current_password' onfocus="nextfield= 'new_password';"}
44       </td>
45     </tr>
46     <tr>
47       <td>
48         <input type='radio' value='1' name='proposalSelected'
49             {if $proposalSelected} checked {/if}>&nbsp;<b>{t}Use proposal{/t}</b>
50       </td>
51       <td><b>{$proposal}</b>&nbsp;{image path='images/lists/reload.png' action='refreshProposal'}</td>
52     </tr>
53     <tr>
54       <td>
55         <input type='radio' value='0' name='proposalSelected'
56             {if !$proposalSelected} checked {/if}>&nbsp;<b>{t}Manually specify a password{/t}</b>
57       </td>
58     </tr>
59     <tr>
60       <td style='padding-left:40px;'><b><LABEL for="new_password">{t}New password{/t}</LABEL></b></td>
61       <td>
62           {factory type='password' name='new_password' id='new_password' 
63               onkeyup="testPasswordCss(\$('new_password').value)"  onfocus="nextfield= 'repeated_password';"}
64       </td>
65     </tr>
66     <tr>
67       <td style='padding-left:40px;'><b><LABEL for="repeated_password">{t}Repeat new password{/t}</LABEL></b></td>
68       <td>
69           {factory type='password' name='repeated_password' id='repeated_password' onfocus="nextfield= 'password_finish';"}
70       </td>
71     </tr>
72     <tr>
73       <td  style='padding-left:40px;'><b>{t}Password strength{/t}</b></td>
74       <td>
75       <span id="meterEmpty" style="padding:0;margin:0;width:100%;background-color:#DC143C;display:block;height:7px;">
76       <span id="meterFull" style="padding:0;margin:0;z-index:100;width:0;background-color:#006400;display:block;height:7px;"></span></span>
77       </td>
78     </tr>
79   </table>
80 {/if}
81 <br>
83 <hr>
84 <div class="plugin-actions">
85   <button type='submit' name='password_finish'>{t}Set password{/t}</button>
86   <button type=reset id="password_cancel" name="password_cancel">{t}Clear fields{/t}</button>
87 </div>
89 <input type='hidden' id='formSubmit'>
91 <input type="hidden" name="ignore">
93 <!-- Place cursor -->
94 <script language="JavaScript" type="text/javascript">
95   <!-- // First input field on page
96   nextfield= 'current_password';
97         focus_field('current_password');
98   -->
99 </script>