[IMPROVEMENT] Added secondary login box in header
This commit is contained in:
parent
f05a9c2b25
commit
7aace8be26
@ -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;
|
||||
}
|
||||
|
||||
@ -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>
|
||||
|
||||
11
public/templates/test/login/small.tpl
Normal file
11
public/templates/test/login/small.tpl
Normal 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}
|
||||
Loading…
Reference in New Issue
Block a user