mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 04:30:12 +01:00
autofocus for the login screen
This commit is contained in:
parent
32d87ee3b6
commit
6c8809793b
@ -38,7 +38,7 @@
|
||||
<?php if(isset($x)){ ?><p class="alert alert-error lead"><?php print $x; ?></p><?php } ?>
|
||||
<input type="hidden" name="relocation" value="<?php if(isset($_GET['route']) && !preg_match("/^login/", $_GET['route']) ) { if(isset($_SERVER['REDIRECT_URL'])) { print $_SERVER['REDIRECT_URL']; } else { print $_SERVER['QUERY_STRING']; } } ?>" />
|
||||
|
||||
<input type="text" class="input-block-level" name="username" placeholder="<?php print $text_email; ?>">
|
||||
<input type="text" class="input-block-level" name="username" placeholder="<?php print $text_email; ?>" required autofocus>
|
||||
<input type="password" class="input-block-level" name="password" placeholder="<?php print $text_password; ?>">
|
||||
|
||||
<?php if(CAPTCHA_FAILED_LOGIN_COUNT > 0 && $failed_login_count > CAPTCHA_FAILED_LOGIN_COUNT) { ?>
|
||||
|
@ -42,7 +42,7 @@
|
||||
<?php if(isset($x)){ ?><p class="alert alert-error lead"><?php print $x; ?></p><?php } ?>
|
||||
<input type="hidden" name="relocation" value="<?php if(isset($_GET['route']) && !preg_match("/^login/", $_GET['route']) ) { if(isset($_SERVER['REDIRECT_URL'])) { print $_SERVER['REDIRECT_URL']; } else { print $_SERVER['QUERY_STRING']; } } ?>" />
|
||||
|
||||
<input type="text" class="input-block-level" name="username" placeholder="<?php print $text_email; ?>">
|
||||
<input type="text" class="input-block-level" name="username" placeholder="<?php print $text_email; ?>" required autofocus>
|
||||
<input type="password" class="input-block-level bold" name="password" placeholder="<?php print $text_password; ?>">
|
||||
|
||||
<?php if(CAPTCHA_FAILED_LOGIN_COUNT > 0 && $failed_login_count > CAPTCHA_FAILED_LOGIN_COUNT) { ?>
|
||||
|
Loading…
Reference in New Issue
Block a user