Code

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