Leggero: Autofocus for username input in login form

This commit is contained in:
azett 2022-12-18 12:22:11 +01:00
parent d8d7e3b166
commit 69fef257c5

View File

@ -4,11 +4,11 @@
<fieldset><legend>{$lang.login.fieldset1}</legend>
<p><label for="user">{$lang.login.user}</label><br />
{if isset($error) && isset($error.user)}
<input {$error.user|notempty:'class="field-error"'} type="text" name="user" id="user" {if $smarty.post.user}value="{$smarty.post.user|wp_specialchars:true}"{/if} /></p>
<input autofocus {$error.user|notempty:'class="field-error"'} type="text" name="user" id="user" {if $smarty.post.user}value="{$smarty.post.user|wp_specialchars:true}"{/if} /></p>
{elseif isset($smarty.post.user)}
<input type="text" name="user" id="user" {if $smarty.post.user}value="{$smarty.post.user|wp_specialchars:true}"{/if} /></p>
<input autofocus type="text" name="user" id="user" {if $smarty.post.user}value="{$smarty.post.user|wp_specialchars:true}"{/if} /></p>
{else}
<input type="text" name="user" id="user" /></p>
<input autofocus type="text" name="user" id="user" /></p>
{/if}
<p><label for="pass">{$lang.login.pass}</label><br />
{if isset($error) && isset($error.pass)}