mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Autofocus input fields at login and package-search
At the login and the package search page, the user is promted to provide some input. Until now it was neccessary to first click the field in which the input should be placed. This can be simplified with HTML5 using the autofocus attribute of the input element, though not included in XHTML 1.0, the attribute was at least given a value to comply with the standard. Signed-off-by: Gordian Edenhofer <gordian.edenhofer@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
3e75d9bb34
commit
fe46b01519
2 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ html_header('AUR ' . __("Login"));
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<p>
|
<p>
|
||||||
<label for="id_username"><?= __('Username') . ':'; ?></label>
|
<label for="id_username"><?= __('Username') . ':'; ?></label>
|
||||||
<input id="id_username" type="text" name="user" size="30" maxlength="<?= config_get_int('options', 'username_max_len'); ?>" value="<?php if (isset($_POST['user'])) { print htmlspecialchars($_POST['user'], ENT_QUOTES); } ?>" />
|
<input id="id_username" type="text" name="user" size="30" maxlength="<?= config_get_int('options', 'username_max_len'); ?>" value="<?php if (isset($_POST['user'])) { print htmlspecialchars($_POST['user'], ENT_QUOTES); } ?>" autofocus="autofocus" />
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<label for="id_password"><?= __('Password') . ':'; ?></label>
|
<label for="id_password"><?= __('Password') . ':'; ?></label>
|
||||||
|
|
|
@ -71,7 +71,7 @@ $per_page = array(50, 100, 250);
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="id_q"><?= __("Keywords"); ?></label>
|
<label for="id_q"><?= __("Keywords"); ?></label>
|
||||||
<input type='text' name='K' size='30' value="<?php if (isset($_REQUEST["K"])) { print stripslashes(trim(htmlspecialchars($_REQUEST["K"], ENT_QUOTES))); } ?>" maxlength='35' />
|
<input type='text' name='K' size='30' value="<?php if (isset($_REQUEST["K"])) { print stripslashes(trim(htmlspecialchars($_REQUEST["K"], ENT_QUOTES))); } ?>" maxlength='35' autofocus="autofocus" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="id_out_of_date"><?= __('Out of Date'); ?></label>
|
<label for="id_out_of_date"><?= __('Out of Date'); ?></label>
|
||||||
|
|
Loading…
Add table
Reference in a new issue