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
<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>
<h2>
<img src="templates/{$theme}/assets/img/{$image}" alt="{$title}" />&nbsp;
@@ -16,8 +8,15 @@ $header
</h2>
</header>
<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>
<else>
<section class="fullform bradiusodd">
<form action="{$linker->getLink(array('section' => 'email'))}" method="post" enctype="application/x-www-form-urlencoded">
<fieldset>
<legend>Froxlor&nbsp;-&nbsp;{$title}</legend>
@@ -35,5 +34,6 @@ $header
</fieldset>
</form>
</section>
</if>
</article>
$footer