diff --git a/gosa-core/plugins/admin/users/password.tpl b/gosa-core/plugins/admin/users/password.tpl
index 83dfc24948a1236c1b73973ac64cd32b1746b092..6008f0ac84f792ce0c63b67d7b2bffe4adfcf1f6 100644 (file)
-<p>
- {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}
-</p>
+<script type="text/javascript" src="include/pwdStrength.js"></script>
<p>
<p>
- {t}Changing the password affects your authentification on mail, proxy, samba and unix services.{/t}
+ {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}
</p>
</p>
-<table summary="" style="vertical-align:top; text-align:left;" cellpadding=4 border=0>
+<table summary="{t}Password input dialog{/t}" cellpadding=4 border=0>
<tr>
<td><b><LABEL for="new_password">{t}New password{/t}</LABEL></b></td>
<tr>
<td><b><LABEL for="new_password">{t}New password{/t}</LABEL></b></td>
- <td><input type="password" id="new_password" name="new_password" size="30" maxlength="40" onFocus="nextfield= 'repeated_password';"></td>
+ <td>
+ {factory type='password' id='new_password' name='new_password'
+ onfocus="nextfield='repeated_password';" onkeyup="testPasswordCss(\$('new_password').value);"}
+ </td>
</tr>
<tr>
<td><b><LABEL for="repeated_password">{t}Repeat new password{/t}</LABEL></b></td>
</tr>
<tr>
<td><b><LABEL for="repeated_password">{t}Repeat new password{/t}</LABEL></b></td>
- <td><input type="password" id="repeated_password" name="repeated_password" size="30" maxlength="40" onFocus="nextfiled= 'password_finish'"></td>
+ <td>
+ {factory type='password' id='repeated_password' name='repeated_password'
+ onfocus="nextfield='password_finish';"}
+ </td>
+ </tr>
+ <tr>
+ <td><b>{t}Strength{/t}</b></td>
+ <td>
+ <span id="meterEmpty" style="padding:0;margin:0;width:100%;background-color:#DC143C;display:block;height:7px;">
+ <span id="meterFull" style="padding:0;margin:0;z-index:100;width:0;background-color:#006400;display:block;height:7px;"></span></span>
+ </td>
</tr>
</table>
<br>
</tr>
</table>
<br>
-<p class="plugbottom">
- <input type=submit name="password_finish" value="{t}Set password{/t}">
-
- <input type=submit name="password_cancel" value="{t}Cancel{/t}">
-</p>
+
+<hr>
+<div class="plugin-actions">
+ <button type='submit' id='password_finish'name='password_finish'>{t}Set password{/t}</button>
+ <button type='submit' id='password_cancel'name='password_cancel'>{msgPool type=cancelButton}</button>
+</div>
+
+<input type='hidden' id='formSubmit'>
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">