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">
<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>
<form action="{$linker->getLink(array('section' => 'email'))}" method="post" enctype="application/x-www-form-urlencoded"> <table class="formtable">
<fieldset> {$email_add_form}
<legend>Froxlor&nbsp;-&nbsp;{$title}</legend> </table>
<table class="formtable"> <p style="display: none;">
{$email_add_form} <input type="hidden" name="s" value="$s" />
</table> <input type="hidden" name="page" value="$page" />
<input type="hidden" name="action" value="$action" />
<p style="display: none;"> <input type="hidden" name="send" value="send" />
<input type="hidden" name="s" value="$s" /> </p>
<input type="hidden" name="page" value="$page" /> </fieldset>
<input type="hidden" name="action" value="$action" /> </form>
<input type="hidden" name="send" value="send" /> </section>
</p> </if>
</fieldset>
</form>
</section>
</article> </article>
$footer $footer