Merge pull request #1219 from coderkun/issue-1110-tabindex
Add attribute “tabindex” to login form (fixes #1110)
This commit is contained in:
commit
1a43aaf8b4
|
@ -43,7 +43,7 @@ script('core', [
|
||||||
placeholder="<?php p($l->t('Username or email')); ?>"
|
placeholder="<?php p($l->t('Username or email')); ?>"
|
||||||
value="<?php p($_['loginName']); ?>"
|
value="<?php p($_['loginName']); ?>"
|
||||||
<?php p($_['user_autofocus'] ? 'autofocus' : ''); ?>
|
<?php p($_['user_autofocus'] ? 'autofocus' : ''); ?>
|
||||||
autocomplete="on" autocapitalize="off" autocorrect="off" required>
|
autocomplete="on" autocapitalize="off" autocorrect="off" required tabindex="1">
|
||||||
<label for="user" class="infield"><?php p($l->t('Username or email')); ?></label>
|
<label for="user" class="infield"><?php p($l->t('Username or email')); ?></label>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
@ -51,9 +51,9 @@ script('core', [
|
||||||
<input type="password" name="password" id="password" value=""
|
<input type="password" name="password" id="password" value=""
|
||||||
placeholder="<?php p($l->t('Password')); ?>"
|
placeholder="<?php p($l->t('Password')); ?>"
|
||||||
<?php p($_['user_autofocus'] ? '' : 'autofocus'); ?>
|
<?php p($_['user_autofocus'] ? '' : 'autofocus'); ?>
|
||||||
autocomplete="on" autocapitalize="off" autocorrect="off" required>
|
autocomplete="on" autocapitalize="off" autocorrect="off" required tabindex="2">
|
||||||
<label for="password" class="infield"><?php p($l->t('Password')); ?></label>
|
<label for="password" class="infield"><?php p($l->t('Password')); ?></label>
|
||||||
<input type="submit" id="submit" class="login primary icon-confirm" title="<?php p($l->t('Log in')); ?>" value="" disabled="disabled"/>
|
<input type="submit" id="submit" class="login primary icon-confirm" title="<?php p($l->t('Log in')); ?>" value="" disabled="disabled" tabindex="4" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<?php if (!empty($_['invalidpassword']) && !empty($_['canResetPassword'])) { ?>
|
<?php if (!empty($_['invalidpassword']) && !empty($_['canResetPassword'])) { ?>
|
||||||
|
@ -68,9 +68,9 @@ script('core', [
|
||||||
<?php if ($_['rememberLoginAllowed'] === true) : ?>
|
<?php if ($_['rememberLoginAllowed'] === true) : ?>
|
||||||
<div class="remember-login-container">
|
<div class="remember-login-container">
|
||||||
<?php if ($_['rememberLoginState'] === 0) { ?>
|
<?php if ($_['rememberLoginState'] === 0) { ?>
|
||||||
<input type="checkbox" name="remember_login" value="1" id="remember_login" class="checkbox checkbox--white">
|
<input type="checkbox" name="remember_login" value="1" id="remember_login" class="checkbox checkbox--white" tabindex="3">
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<input type="checkbox" name="remember_login" value="1" id="remember_login" class="checkbox checkbox--white" checked="checked">
|
<input type="checkbox" name="remember_login" value="1" id="remember_login" class="checkbox checkbox--white" checked="checked" tabindex="3">
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<label for="remember_login"><?php p($l->t('Stay logged in')); ?></label>
|
<label for="remember_login"><?php p($l->t('Stay logged in')); ?></label>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue