create-domain.php, templates/admin_edit-domain.tpl:

- move some logic to select the correct labels to create-domain.php



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1251 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 13 years ago
parent 102d4c8c32
commit 5ba826b067

@ -127,6 +127,14 @@ foreach($form_fields as $key => $field) {
}
}
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');

@ -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>&nbsp;</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>

Loading…
Cancel
Save