]> git.immae.eu Git - github/shaarli/Shaarli.git/blame - tpl/default/loginform.html
Apply v0.8.2 changes, add opensearch tpl, add favicon
[github/shaarli/Shaarli.git] / tpl / default / loginform.html
CommitLineData
f26d4d56
A
1<!DOCTYPE html>
2<html>
3<head>
4 {include="includes"}
5</head>
6<body>
7{include="page.header"}
79a0dfe9 8{if="!ban_canLogin($conf)"}
f26d4d56
A
9<div class="pure-g pure-alert pure-alert-error pure-alert-closable center">
10 <div class="pure-u-2-24"></div>
11 <div class="pure-u-20-24">
ff56413e 12 {'You have been banned after too many failed login attempts. Try again later.'|t}
f26d4d56
A
13 </div>
14 <div class="pure-u-2-24">
15 <i class="fa fa-times pure-alert-close"></i>
16 </div>
17</div>
18{else}
19 <div class="pure-g">
20 <div class="pure-u-lg-1-3 pure-u-1-8"></div>
1b383041 21 <div id="login-form" class="page-form page-form-light pure-u-lg-1-3 pure-u-3-4">
f26d4d56 22 <form method="post" name="loginform">
4daf556b 23 <h2 class="window-title">{'Login'|t}</h2>
f26d4d56 24 <div>
79a0dfe9
A
25 <input type="text" name="login" placeholder="{'Username'|t}"
26 {if="!empty($username)"}value="{$username}"{/if} class="autofocus" tabindex="20">
f26d4d56
A
27 </div>
28 <div>
ff56413e 29 <input type="password" name="password" placeholder="{'Password'|t}" tabindex="21">
f26d4d56
A
30 </div>
31 <div class="remember-me">
79a0dfe9
A
32 <input type="checkbox" name="longlastingsession" id="longlastingsessionform"
33 checked="checked" tabindex="22">
6eafe49e 34 <label for="longlastingsessionform">{'Remember me'|t}</label>
f26d4d56
A
35 </div>
36 <div>
ff56413e 37 <input type="submit" value="{'Login'|t}" class="bigbutton" tabindex="23">
f26d4d56
A
38 </div>
39 <input type="hidden" name="token" value="{$token}">
40 {if="$returnurl"}<input type="hidden" name="returnurl" value="{$returnurl}">{/if}
41 </form>
42 </div>
43 <div class="pure-u-lg-1-3 pure-u-1-8"></div>
44 </div>
f26d4d56
A
45{/if}
46
f26d4d56
A
47{include="page.footer"}
48<script>
79a0dfe9
A
49 {if="ban_canLogin($conf) && ! empty($username)"}
50 // Focus password on load if the username is set.
51 var passwords = document.getElementsByName('password');
52 if (passwords.length == 2) {
53 passwords[1].focus();
54 }
55 {/if}
f26d4d56
A
56</script>
57</body>
58</html>
59