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