a48f89fef10239c1ab62bb60e25dfb44d469bae2
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}> <b>{t}Use proposal{/t}</b>
44 </td>
45 <td><b>{$proposal}</b> {image path='images/lists/reload.png' action='refreshProposal'}</td>
46 </tr>
47 <tr>
48 <td>
49 <input type='radio' value='0' name='proposalSelected'
50 {if !$proposalSelected} checked {/if}> <b>{t}Manually specify a password{/t}</b>
51 </td>
52 </tr>
53 <tr>
54 <td style='padding-left:40px;'><b><LABEL for="new_password">{t}New password{/t}</LABEL></b></td>
55 <td>
56 {factory type='password' id='new_password' name='new_password'
57 onfocus="nextfield='repeated_password';" onkeyup="testPasswordCss(\$('new_password').value);"}
58 </td>
59 </tr>
60 <tr>
61 <td style='padding-left:40px;'><b><LABEL for="repeated_password">{t}Repeat new password{/t}</LABEL></b></td>
62 <td>
63 {factory type='password' id='repeated_password' name='repeated_password'
64 onfocus="nextfield='password_finish';"}
65 </td>
66 </tr>
67 <tr>
68 <td style='padding-left:40px;'><b>{t}Strength{/t}</b></td>
69 <td>
70 <span id="meterEmpty" style="padding:0;margin:0;width:100%;
71 background-color:#DC143C;display:block;height:7px;">
72 <span id="meterFull" style="padding:0;margin:0;z-index:100;width:0;
73 background-color:#006400;display:block;height:7px;"></span></span>
74 </td>
75 </tr>
76 </table>
78 {/if}
80 {if $passwordChangeForceable}
81 <hr>
82 <input type='checkbox' name='enforcePasswordChange' value='1'
83 {if $enforcePasswordChange} checked {/if}> {t}Enforce password change on next login.{/t}
84 {/if}
86 <br>
87 <hr>
88 <div class="plugin-actions">
89 <button type='submit' id='password_finish'name='password_finish'>{t}Set password{/t}</button>
90 <button type='submit' id='password_cancel'name='password_cancel'>{msgPool type=cancelButton}</button>
91 </div>
93 <input type='hidden' id='formSubmit'>
95 <!-- Place cursor -->
96 <script language="JavaScript" type="text/javascript">
97 <!-- // First input field on page
98 nextfield= "new_password";
99 focus_field('new_password');
100 -->
101 </script>