don't show form to add e-mail addresses if no domain exists

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2013-10-01 16:11:19 +02:00
parent 38a53e49fd
commit 2ca9420bd4

View File

@@ -1,14 +1,6 @@
$header $header
<article> <article>
<if $domains == ''>
<div class="messagewrapperfull">
<div class="warningcontainer bradius">
<div class="warningtitle">{$lng['admin']['warning']}</div>
<div class="warning"><br /><strong>{$lng['emails']['noemaildomainaddedyet']}</strong></div>
</div>
</div>
</if>
<else>
<header> <header>
<h2> <h2>
<img src="templates/{$theme}/assets/img/{$image}" alt="{$title}" />&nbsp; <img src="templates/{$theme}/assets/img/{$image}" alt="{$title}" />&nbsp;
@@ -16,24 +8,32 @@ $header
</h2> </h2>
</header> </header>
<section class="fullform bradiusodd"> <if $domains == ''>
<div class="messagewrapperfull">
<form action="{$linker->getLink(array('section' => 'email'))}" method="post" enctype="application/x-www-form-urlencoded"> <div class="warningcontainer bradius">
<fieldset> <div class="warningtitle">{$lng['admin']['warning']}</div>
<legend>Froxlor&nbsp;-&nbsp;{$title}</legend> <div class="warning"><br /><strong>{$lng['emails']['noemaildomainaddedyet']}</strong></div>
</div>
<table class="formtable"> </div>
{$email_add_form} <else>
</table> <section class="fullform bradiusodd">
<form action="{$linker->getLink(array('section' => 'email'))}" method="post" enctype="application/x-www-form-urlencoded">
<p style="display: none;"> <fieldset>
<input type="hidden" name="s" value="$s" /> <legend>Froxlor&nbsp;-&nbsp;{$title}</legend>
<input type="hidden" name="page" value="$page" />
<input type="hidden" name="action" value="$action" /> <table class="formtable">
<input type="hidden" name="send" value="send" /> {$email_add_form}
</p> </table>
</fieldset>
</form> <p style="display: none;">
</section> <input type="hidden" name="s" value="$s" />
<input type="hidden" name="page" value="$page" />
<input type="hidden" name="action" value="$action" />
<input type="hidden" name="send" value="send" />
</p>
</fieldset>
</form>
</section>
</if>
</article> </article>
$footer $footer