[IMPROVEMENT] Added secondary login box in header

This commit is contained in:
Sebastian Grewe 2013-09-18 07:42:54 +02:00
parent f05a9c2b25
commit 7aace8be26
3 changed files with 22 additions and 0 deletions

View File

@ -866,3 +866,11 @@ span.unconfirmed {
border:1px solid #ffb573;
border-radius: 4px;
}
div.login_small {
float: right;
background: #E0E0E3;
position: absolute;
padding: 5px;
top: 10px;
right: 10px;
}

View File

@ -2,3 +2,6 @@
<h1 class="site_title">{$GLOBAL.website.name}</h1>
<h2 class="section_title">{if $smarty.request.action|default:""}{$smarty.request.action|capitalize}{else}{$smarty.request.page|default:"home"|capitalize}{/if}</h2>
</hgroup>
<div class="login_small">
{include file="login/small.tpl"}
</div>

View File

@ -0,0 +1,11 @@
{if $smarty.session.AUTHENTICATED|default:"0" == 0}
<form action="{$smarty.server.PHP_SELF}" method="post" id="loginForm">
<input type="hidden" name="page" value="login" />
<input type="hidden" name="to" value="{$smarty.server.PHP_SELF}?page=dashboard"}" />
<label>Username</label>
<input type="text" name="username" size="22" maxlength="20" required />
<label>Password</label>
<input type="password" name="password" size="22" maxlength="20" required />
<input type="submit" value="Login" class="alt_btn" />
</form>
{/if}