7c04acfa25cef008d14add8ec163710f88ce5c57
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' id='proposalSelected' name='proposalSelected' onClick='updateFields();'
55 {if $proposalSelected} checked {/if}> <b>{t}Use proposal{/t}</b>
56 </td>
57 <td>
58 <div id='proposalText'
59 style='
60 width:180px;
61 border:1px solid #CCC;
62 padding:3px;
63 padding-top:5px;
64 padding-bottom:4px;
65 '>{$proposal}</div>
66 </td>
67 <td style='vertical-align: middle;'>
68 {image path='images/lists/reload.png' action='refreshProposal'}
69 </td>
70 </tr>
71 <tr>
72 <td>
73 <input type='radio' value='0' name='proposalSelected' onClick='updateFields();'
74 {if !$proposalSelected} checked {/if}> <b>{t}Manually specify a password{/t}</b>
75 </td>
76 </tr>
77 <tr>
78 <td style='padding-left:40px;'><b><LABEL for="new_password">{t}New password{/t}</LABEL></b></td>
79 <td>
80 {factory type='password' name='new_password' id='new_password'
81 onkeyup="testPasswordCss(\$('new_password').value)" onfocus="nextfield= 'repeated_password';"}
82 </td>
83 </tr>
84 <tr>
85 <td style='padding-left:40px;'><b><LABEL for="repeated_password">{t}Repeat new password{/t}</LABEL></b></td>
86 <td>
87 {factory type='password' name='repeated_password' id='repeated_password' onfocus="nextfield= 'password_finish';"}
88 </td>
89 </tr>
90 <tr>
91 <td style='padding-left:40px;'><b>{t}Password strength{/t}</b></td>
92 <td>
93 <span id="meterEmpty" style="padding:0;margin:0;width:100%;background-color:#DC143C;display:block;height:7px;">
94 <span id="meterFull" style="padding:0;margin:0;z-index:100;width:0;background-color:#006400;display:block;height:7px;"></span></span>
95 </td>
96 </tr>
97 </table>
98 {/if}
99 <br>
101 <hr>
102 <div class="plugin-actions">
103 <button type='submit' name='password_finish'>{t}Set password{/t}</button>
104 <button type=reset id="password_cancel" name="password_cancel">{t}Clear fields{/t}</button>
105 </div>
107 <input type='hidden' id='formSubmit'>
109 <input type="hidden" name="ignore">
111 <!-- Place cursor -->
112 <script language="JavaScript" type="text/javascript">
113 nextfield= 'current_password';
114 focus_field('current_password');
117 function updateFields()
118 {
119 if($('proposalSelected').checked){
120 $('new_password').disable();
121 $('repeated_password').disable();
122 $('proposalText').setStyle(
123 'background-color:#FFF;' +
124 'color:#000;' +
125 'width:180px;' +
126 'border:1px solid #CCC;' +
127 'padding:3px;' +
128 'padding-top:5px;' +
129 'padding-bottom:4px;');
130 }else{
131 $('new_password').enable();
132 $('repeated_password').enable();
133 $('proposalText').setStyle(
134 'background-color:#F0F0F0;' +
135 'color:#666;' +
136 'width:180px;' +
137 'border:1px solid #CCC;' +
138 'padding:3px;' +
139 'padding-top:5px;' +
140 'padding-bottom:4px;');
141 }
142 }
143 updateFields();
144 </script>