SF.net SVN: postfixadmin:[1140] trunk
Brought to you by:
christian_boltz,
gingerdog
From: <chr...@us...> - 2011-07-29 19:48:24
|
Revision: 1140 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=1140&view=rev Author: christian_boltz Date: 2011-07-29 19:48:17 +0000 (Fri, 29 Jul 2011) Log Message: ----------- 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 Modified Paths: -------------- trunk/templates/password.tpl trunk/users/password.php Removed Paths: ------------- trunk/templates/users_password.tpl Modified: trunk/templates/password.tpl =================================================================== --- trunk/templates/password.tpl 2011-07-29 19:42:46 UTC (rev 1139) +++ trunk/templates/password.tpl 2011-07-29 19:48:17 UTC (rev 1140) @@ -1,5 +1,5 @@ <div id="edit_form"> -<form name="mailbox" method="post" action=""> +<form name="password" method="post" action=""> <table> <tr> <th colspan="3">{$PALANG.pPassword_welcome}</th> @@ -26,7 +26,11 @@ </tr> <tr> <td class="label"> </td> - <td><input class="button" type="submit" name="submit" value="{$PALANG.pPassword_button}" /></td> + <td> + <input class="button" type="submit" name="submit" value="{$PALANG.pPassword_button}" /></td> + {if $authentication_has_role.user} + <input class="button" type="submit" name="fCancel" value="{$PALANG.exit}" /> + {/if} <td> </td> </tr> </table> Deleted: trunk/templates/users_password.tpl =================================================================== --- trunk/templates/users_password.tpl 2011-07-29 19:42:46 UTC (rev 1139) +++ trunk/templates/users_password.tpl 2011-07-29 19:48:17 UTC (rev 1140) @@ -1,37 +0,0 @@ -<div id="edit_form"> -<form name="alias" method="post" action=""> -<table> - <tr> - <th colspan="3">{$PALANG.pPassword_welcome}</th> - </tr> - <tr> - <td class="label"><label>{$PALANG.pPassword_admin}:</label></td> - <td><em>{$USERID_USERNAME}</em></td> - <td> </td> - </tr> - <tr> - <td class="label"><label>{$PALANG.pPassword_password_current}:</label></td> - <td><input class="flat" type="password" name="fPassword_current" /></td> - <td class="error_msg">{$pPassword_password_current_text}</td> - </tr> - <tr> - <td class="label"><label>{$PALANG.pPassword_password}:</label></td> - <td><input class="flat" type="password" name="fPassword" /></td> - <td class="error_msg">{$pPassword_password_text}</td> - </tr> - <tr> - <td class="label"><label>{$PALANG.pPassword_password2}:</label></td> - <td><input class="flat" type="password" name="fPassword2" /></td> - <td> </td> - </tr> - <tr> - <td> </td> - <td> - <input class="button" type="submit" name="submit" value="{$PALANG.pPassword_button}" /> - <input class="button" type="submit" name="fCancel" value="{$PALANG.exit}" /> - </td> - <td> </td> - </tr> -</table> -</form> -</div> Modified: trunk/users/password.php =================================================================== --- trunk/users/password.php 2011-07-29 19:42:46 UTC (rev 1139) +++ trunk/users/password.php 2011-07-29 19:48:17 UTC (rev 1140) @@ -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 @@ } } -$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: */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |