[upd] refactor login form

This commit is contained in:
Knah Tsaeb 2015-07-03 10:22:39 +02:00
parent 62c55f9c8c
commit 88f2ebadca

View file

@ -1,26 +1,38 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head>{include="includes"}</head> <head>
<body{if="ban_canLogin()"} onload="document.loginform.login.focus();"{/if}> {include="includes"}
<div id="pageheader"> </head>
{include="page.header"} <body>
<div id="pageheader">
{include="page.header"}
<div id="headerform"> <div id="headerform">
{if="!ban_canLogin()"} {if="!ban_canLogin()"}
You have been banned from login after too many failed attempts. Try later. You have been banned from login after too many failed attempts. Try later.
{else} {else}
<form method="post" name="loginform"> <form method="post" id="configform" class="configform">
Login: <input type="text" name="login" tabindex="1">&nbsp;&nbsp;&nbsp; <p>
Password : <input type="password" name="password" tabindex="2"> <label for="login">Login :</label>
<input type="submit" value="Login" class="bigbutton" tabindex="4"><br> <input type="text" name="login" id="login" tabindex="1" autofocus />
<input style="margin:10 0 0 40;" type="checkbox" name="longlastingsession" id="longlastingsession" tabindex="3"><label for="longlastingsession">&nbsp;Stay signed in (Do not check on public computers)</label> <label for="password">Password :</label>
<input type="hidden" name="token" value="{$token}"> <input type="password" name="password" id="password" tabindex="2">
{if="$returnurl"}<input type="hidden" name="returnurl" value="{$returnurl|htmlspecialchars}">{/if} </p>
</form> <p>
{/if} <input type="checkbox" name="longlastingsession" id="longlastingsession" tabindex="3">
<label for="longlastingsession">&nbsp;Stay signed in (Do not check on public computers)</label>
</p>
<p>
{if="$returnurl"}
<input type="hidden" name="returnurl" value="{$returnurl|htmlspecialchars}">
{/if}
<input type="hidden" name="token" value="{$token}">
<input type="submit" value="Login" class="bigbutton" tabindex="4" />
</p>
</form>
{/if}
</div>
</div> </div>
</div> {include="page.footer"}
</body>
{include="page.footer"}
</body>
</html> </html>