SF.net SVN: postfixadmin:[1251] trunk
Brought to you by:
christian_boltz,
gingerdog
From: <chr...@us...> - 2011-10-30 18:56:17
|
Revision: 1251 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=1251&view=rev Author: christian_boltz Date: 2011-10-30 18:56:11 +0000 (Sun, 30 Oct 2011) Log Message: ----------- create-domain.php, templates/admin_edit-domain.tpl: - move some logic to select the correct labels to create-domain.php Modified Paths: -------------- trunk/create-domain.php trunk/templates/admin_edit-domain.tpl Modified: trunk/create-domain.php =================================================================== --- trunk/create-domain.php 2011-10-29 23:48:18 UTC (rev 1250) +++ trunk/create-domain.php 2011-10-30 18:56:11 UTC (rev 1251) @@ -127,6 +127,14 @@ } } +if ($mode == 'edit') { + $smarty->assign('formtitle', Lang::read('pAdminEdit_domain_welcome')); + $smarty->assign('submitbutton', Lang::read('save')); +} else { + $smarty->assign('formtitle', Lang::read('pAdminCreate_domain_welcome')); + $smarty->assign('submitbutton', Lang::read('pAdminCreate_domain_button')); +} + $smarty->assign ('mode', $mode); $smarty->assign ('errortext', $errortext, false); # non-escaped $smarty->assign ('smarty_template', 'admin_edit-domain'); Modified: trunk/templates/admin_edit-domain.tpl =================================================================== --- trunk/templates/admin_edit-domain.tpl 2011-10-29 23:48:18 UTC (rev 1250) +++ trunk/templates/admin_edit-domain.tpl 2011-10-30 18:56:11 UTC (rev 1251) @@ -2,13 +2,7 @@ <form name="edit_domain" method="post" action=""> <table> <tr> - <th colspan="4"> -{if $mode == 'edit'} - {$PALANG.pAdminEdit_domain_welcome} -{else} - {$PALANG.pAdminCreate_domain_welcome} -{/if} - </th> + <th colspan="4">{$formtitle}</th> </tr> <tr> <td class="label"><label>{$PALANG.pAdminEdit_domain_domain}:</label></td> @@ -85,7 +79,7 @@ </tr> <tr> <td> </td> - <td colspan="3"><input class="button" type="submit" name="submit" value="{if $mode == 'edit'}{$PALANG.save}{else}{$PALANG.pAdminCreate_domain_button}{/if}" /></td> + <td colspan="3"><input class="button" type="submit" name="submit" value="{$submitbutton}" /></td> </tr> </table> </form> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |