From ab636c92e52b9cda68feb7b8203e2beaf39f73ae Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Fri, 29 Jul 2011 19:48:17 +0000 Subject: [PATCH] Merge password.tpl and users_password.tpl users/password.php: - use SESSID_USERNAME instead of USERID_USERNAME to match the smarty variable name in the password module for admins - switch to 'password' template templates/password.tpl: - display "exit" button if logged in as user - change form name to something more useful templates/users_password.tpl: - deleted git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1140 a1433add-5e2c-0410-b055-b7f2511e0802 --- templates/password.tpl | 8 ++++++-- templates/users_password.tpl | 37 ------------------------------------ users/password.php | 6 +++--- 3 files changed, 9 insertions(+), 42 deletions(-) delete mode 100644 templates/users_password.tpl diff --git a/templates/password.tpl b/templates/password.tpl index c645e1aa..64f660e2 100644 --- a/templates/password.tpl +++ b/templates/password.tpl @@ -1,5 +1,5 @@
-
+ @@ -26,7 +26,11 @@ - + + {if $authentication_has_role.user} + + {/if}
{$PALANG.pPassword_welcome}
  +  
diff --git a/templates/users_password.tpl b/templates/users_password.tpl deleted file mode 100644 index da907d05..00000000 --- a/templates/users_password.tpl +++ /dev/null @@ -1,37 +0,0 @@ -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{$PALANG.pPassword_welcome}
{$USERID_USERNAME} 
{$pPassword_password_current_text}
{$pPassword_password_text}
 
  - - -  
- -
diff --git a/users/password.php b/users/password.php index 9cfe9362..9829dd8d 100644 --- a/users/password.php +++ b/users/password.php @@ -14,7 +14,7 @@ * * File: password.php * Used by users to change their mailbox (and login) password. - * Template File: users_password.php + * Template File: password.tpl * * Template Variables: * @@ -76,11 +76,11 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") } } -$smarty->assign ('USERID_USERNAME', $username); +$smarty->assign ('SESSID_USERNAME', $username); $smarty->assign ('pPassword_password_current_text', $pPassword_password_current_text, false); $smarty->assign ('pPassword_password_text', $pPassword_password_text, false); -$smarty->assign ('smarty_template', 'users_password'); +$smarty->assign ('smarty_template', 'password'); $smarty->display ('index.tpl'); /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */