From dbcd06e988d8434f125b8a5ee8f5bbcb7cd87874 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Fri, 6 May 2016 19:58:19 +0200 Subject: Reindent the login template --- tpl/loginform.html | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) (limited to 'tpl') diff --git a/tpl/loginform.html b/tpl/loginform.html index 678375fd..f0b45df2 100644 --- a/tpl/loginform.html +++ b/tpl/loginform.html @@ -1,26 +1,27 @@ {include="includes"} - + {include="page.footer"} -- cgit v1.2.3 From 85c4bdc23581b91971315c42508c2d8f7a5fa738 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Fri, 6 May 2016 20:03:10 +0200 Subject: Prefill the login field when the authentication has failed --- tpl/loginform.html | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'tpl') diff --git a/tpl/loginform.html b/tpl/loginform.html index f0b45df2..a49b42d3 100644 --- a/tpl/loginform.html +++ b/tpl/loginform.html @@ -2,7 +2,13 @@ {include="includes"} +{if="ban_canLogin()"} + {if="empty($username)"} + onload="document.loginform.login.focus();" + {else} + onload="document.loginform.password.focus();" + {/if} +{/if}>