[upd] refactor login form
This commit is contained in:
parent
62c55f9c8c
commit
88f2ebadca
1 changed files with 33 additions and 21 deletions
|
@ -1,26 +1,38 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>{include="includes"}</head>
|
||||
<body{if="ban_canLogin()"} onload="document.loginform.login.focus();"{/if}>
|
||||
<div id="pageheader">
|
||||
<head>
|
||||
{include="includes"}
|
||||
</head>
|
||||
<body>
|
||||
<div id="pageheader">
|
||||
{include="page.header"}
|
||||
|
||||
<div id="headerform">
|
||||
{if="!ban_canLogin()"}
|
||||
{if="!ban_canLogin()"}
|
||||
You have been banned from login after too many failed attempts. Try later.
|
||||
{else}
|
||||
<form method="post" name="loginform">
|
||||
Login: <input type="text" name="login" tabindex="1">
|
||||
Password : <input type="password" name="password" tabindex="2">
|
||||
<input type="submit" value="Login" class="bigbutton" tabindex="4"><br>
|
||||
<input style="margin:10 0 0 40;" type="checkbox" name="longlastingsession" id="longlastingsession" tabindex="3"><label for="longlastingsession"> Stay signed in (Do not check on public computers)</label>
|
||||
{else}
|
||||
<form method="post" id="configform" class="configform">
|
||||
<p>
|
||||
<label for="login">Login :</label>
|
||||
<input type="text" name="login" id="login" tabindex="1" autofocus />
|
||||
<label for="password">Password :</label>
|
||||
<input type="password" name="password" id="password" tabindex="2">
|
||||
</p>
|
||||
<p>
|
||||
<input type="checkbox" name="longlastingsession" id="longlastingsession" tabindex="3">
|
||||
<label for="longlastingsession"> 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}">
|
||||
{if="$returnurl"}<input type="hidden" name="returnurl" value="{$returnurl|htmlspecialchars}">{/if}
|
||||
<input type="submit" value="Login" class="bigbutton" tabindex="4" />
|
||||
</p>
|
||||
</form>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{include="page.footer"}
|
||||
</body>
|
||||
</div>
|
||||
{include="page.footer"}
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue