aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/loginform.html
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/default/loginform.html')
-rw-r--r--tpl/default/loginform.html20
1 files changed, 12 insertions, 8 deletions
diff --git a/tpl/default/loginform.html b/tpl/default/loginform.html
index b33219b6..dcc29676 100644
--- a/tpl/default/loginform.html
+++ b/tpl/default/loginform.html
@@ -5,7 +5,7 @@
5</head> 5</head>
6<body> 6<body>
7{include="page.header"} 7{include="page.header"}
8{if="!ban_canLogin()"} 8{if="!ban_canLogin($conf)"}
9<div class="pure-g pure-alert pure-alert-error pure-alert-closable center"> 9<div class="pure-g pure-alert pure-alert-error pure-alert-closable center">
10 <div class="pure-u-2-24"></div> 10 <div class="pure-u-2-24"></div>
11 <div class="pure-u-20-24"> 11 <div class="pure-u-20-24">
@@ -22,13 +22,15 @@
22 <form method="post" name="loginform"> 22 <form method="post" name="loginform">
23 <h2 class="window-title">{'Login'|t}</h2> 23 <h2 class="window-title">{'Login'|t}</h2>
24 <div> 24 <div>
25 <input type="text" name="login" placeholder="{'Username'|t}" tabindex="20"> 25 <input type="text" name="login" placeholder="{'Username'|t}"
26 {if="!empty($username)"}value="{$username}"{/if} class="autofocus" tabindex="20">
26 </div> 27 </div>
27 <div> 28 <div>
28 <input type="password" name="password" placeholder="{'Password'|t}" tabindex="21"> 29 <input type="password" name="password" placeholder="{'Password'|t}" tabindex="21">
29 </div> 30 </div>
30 <div class="remember-me"> 31 <div class="remember-me">
31 <input type="checkbox" name="longlastingsession" id="longlastingsessionform" tabindex="22"> 32 <input type="checkbox" name="longlastingsession" id="longlastingsessionform"
33 checked="checked" tabindex="22">
32 <label for="longlastingsessionform">{'Remember me'|t}</label> 34 <label for="longlastingsessionform">{'Remember me'|t}</label>
33 </div> 35 </div>
34 <div> 36 <div>
@@ -40,15 +42,17 @@
40 </div> 42 </div>
41 <div class="pure-u-lg-1-3 pure-u-1-8"></div> 43 <div class="pure-u-lg-1-3 pure-u-1-8"></div>
42 </div> 44 </div>
43
44{/if} 45{/if}
45 46
46
47</div>
48
49{include="page.footer"} 47{include="page.footer"}
50<script> 48<script>
51 document.getElementsByName('login')[1].focus(); 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}
52</script> 56</script>
53</body> 57</body>
54</html> 58</html>