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}> <b>{t}Use proposal{/t}</b>
50 </td>
51 <td>
52 <div style='
53 width:180px;
54 border:1px solid #CCC;
55 padding:3px;
56 padding-top:5px;
57 padding-bottom:4px;
58 '>{$proposal}</div>
59 </td>
60 <td style='vertical-align: middle;'>
61 {image path='images/lists/reload.png' action='refreshProposal'}
62 </td>
63 </tr>
64 <tr>
65 <td>
66 <input type='radio' value='0' name='proposalSelected'
67 {if !$proposalSelected} checked {/if}> <b>{t}Manually specify a password{/t}</b>
68 </td>
69 </tr>
70 <tr>
71 <td style='padding-left:40px;'><b><LABEL for="new_password">{t}New password{/t}</LABEL></b></td>
72 <td>
73 {factory type='password' name='new_password' id='new_password'
74 onkeyup="testPasswordCss(\$('new_password').value)" onfocus="nextfield= 'repeated_password';"}
75 </td>
76 </tr>
77 <tr>
78 <td style='padding-left:40px;'><b><LABEL for="repeated_password">{t}Repeat new password{/t}</LABEL></b></td>
79 <td>
80 {factory type='password' name='repeated_password' id='repeated_password' onfocus="nextfield= 'password_finish';"}
81 </td>
82 </tr>
83 <tr>
84 <td style='padding-left:40px;'><b>{t}Password strength{/t}</b></td>
85 <td>
86 <span id="meterEmpty" style="padding:0;margin:0;width:100%;background-color:#DC143C;display:block;height:7px;">
87 <span id="meterFull" style="padding:0;margin:0;z-index:100;width:0;background-color:#006400;display:block;height:7px;"></span></span>
88 </td>
89 </tr>
90 </table>
91 {/if}
92 <br>
94 <hr>
95 <div class="plugin-actions">
96 <button type='submit' name='password_finish'>{t}Set password{/t}</button>
97 <button type=reset id="password_cancel" name="password_cancel">{t}Clear fields{/t}</button>
98 </div>
100 <input type='hidden' id='formSubmit'>
102 <input type="hidden" name="ignore">
104 <!-- Place cursor -->
105 <script language="JavaScript" type="text/javascript">
106 <!-- // First input field on page
107 nextfield= 'current_password';
108 focus_field('current_password');
109 -->
110 </script>