From: hickert Date: Thu, 22 Jul 2010 08:59:30 +0000 (+0000) Subject: Updated password.php and readded its template- somehow it get lost during template... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e0199e4bdc4d693e00e930427c079a462a159546;p=gosa.git Updated password.php and readded its template- somehow it get lost during template redesign. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19044 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/html/password.php b/gosa-core/html/password.php index 4880f7197..20b9c29c9 100644 --- a/gosa-core/html/password.php +++ b/gosa-core/html/password.php @@ -24,6 +24,9 @@ function displayPWchanger() { global $smarty; + $smarty->assign ("logo", image(get_template_path("images/logo.png"))); + $smarty->assign ("date", date("l, dS F Y H:i:s O")); + $smarty->assign ("lang", preg_replace('/_.*$/', '', $lang)); $smarty->display(get_template_path('password.tpl')); exit(); } diff --git a/gosa-core/ihtml/themes/default/password.tpl b/gosa-core/ihtml/themes/default/password.tpl new file mode 100644 index 000000000..d324f9053 --- /dev/null +++ b/gosa-core/ihtml/themes/default/password.tpl @@ -0,0 +1,161 @@ + + + + + GOsa - {t}Change your password{/t} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {$php_errors} + +
+ +
+ +
+ +
+ + {$msg_dialogs} + + {if $changed} + +

{t}Your password has been changed successfully.{/t}

+ + {else} + +

{t}Password change{/t}

+ + {if $ssl}{/if} + + + {if $message}{/if} + +

{t}This dialog provides a simple way to change your password. Enter the current password and the new password (twice) in the fields below and press the 'Change' button.{/t}

+ + + {if $show_directory_chooser} + + + + + {/if} + + + + + + + + + + + + + + + + + + + + +
{t}Directory{/t} + +
{t}Username{/t} + {if $display_username} + + {else} + {$uid} + {/if} +
+ {factory type='password' name='current_password' id='current_password' onfocus="nextfield= 'new_password';"} +
+ {factory type='password' name='new_password' id='new_password' + onkeyup="testPasswordCss(\$('new_password').value)" onfocus="nextfield= 'new_password_repeated';"} +
+ {factory type='password' name='new_password_repeated' id='new_password_repeated' + onfocus="nextfield= 'password_finish';"} +
{t}Password strength{/t} + + +
+ +
+ +
+ + +
+ + + +

+ +

+ + {$errors} + + + {/if} +
+
+ + + + +