diff options
author | Thomas Lange <code@nerdmind.de> | 2021-07-22 22:50:18 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-07-22 22:50:18 +0200 |
commit | 6b110bd109ceeb0a351c5da5427e66befe727292 (patch) | |
tree | 6125a2537e5f82b3ba081f591926d6c76b7ca1b2 | |
parent | 27e7a426b1c7ba7ec878204a937a0ecfff5214ed (diff) | |
download | blog-6b110bd109ceeb0a351c5da5427e66befe727292.tar.gz blog-6b110bd109ceeb0a351c5da5427e66befe727292.tar.xz blog-6b110bd109ceeb0a351c5da5427e66befe727292.zip |
Add "autofocus" attribute to HTML form fields
-rw-r--r-- | theme/admin/html/auth.php | 2 | ||||
-rw-r--r-- | theme/admin/html/category/form.php | 2 | ||||
-rw-r--r-- | theme/admin/html/database.php | 2 | ||||
-rw-r--r-- | theme/admin/html/page/form.php | 2 | ||||
-rw-r--r-- | theme/admin/html/page/search.php | 2 | ||||
-rw-r--r-- | theme/admin/html/post/form.php | 2 | ||||
-rw-r--r-- | theme/admin/html/post/search.php | 2 | ||||
-rw-r--r-- | theme/admin/html/user/form.php | 2 |
8 files changed, 8 insertions, 8 deletions
diff --git a/theme/admin/html/auth.php b/theme/admin/html/auth.php index 45b7e14..cff8612 100644 --- a/theme/admin/html/auth.php +++ b/theme/admin/html/auth.php @@ -20,7 +20,7 @@ <i class="fa fa-user-secret"></i><?=$Language->text('label_username')?></label> <div class="form-grid-item"> - <input id="form_username" name="username" value="<?=escapeHTML($FORM['DATA']['USERNAME'])?>" /> + <input id="form_username" name="username" value="<?=escapeHTML($FORM['DATA']['USERNAME'])?>" autofocus /> </div> <label for="form_password"> diff --git a/theme/admin/html/category/form.php b/theme/admin/html/category/form.php index 2cb7b20..a6c1137 100644 --- a/theme/admin/html/category/form.php +++ b/theme/admin/html/category/form.php @@ -33,7 +33,7 @@ function categorySelectList($category_tree, $selected = NULL, $current = NULL, $ <i class="fa fa-tag"></i><?=$Language->text('label_name')?></label> <div class="form-grid-item first"> - <input id="form_name" name="name" value="<?=escapeHTML($FORM['DATA']['NAME'])?>" /> + <input id="form_name" name="name" value="<?=escapeHTML($FORM['DATA']['NAME'])?>" autofocus /> </div> <label for="form_slug"> diff --git a/theme/admin/html/database.php b/theme/admin/html/database.php index cdc9b31..62afefa 100644 --- a/theme/admin/html/database.php +++ b/theme/admin/html/database.php @@ -16,7 +16,7 @@ <input type="hidden" name="token" value="<?=$FORM['TOKEN']?>" /> <div class="form-border-box"> - <textarea id="content-editor" placeholder="<?=$Language->text('database_warning')?>" name="command"><?=escapeHTML($FORM['COMMAND'])?></textarea> + <textarea id="content-editor" placeholder="<?=$Language->text('database_warning')?>" name="command" autofocus><?=escapeHTML($FORM['COMMAND'])?></textarea> </div> <?php if($FORM['RESULT']): ?> diff --git a/theme/admin/html/page/form.php b/theme/admin/html/page/form.php index e7c7de8..ae3f437 100644 --- a/theme/admin/html/page/form.php +++ b/theme/admin/html/page/form.php @@ -17,7 +17,7 @@ <i class="fa fa-file-text-o"></i><?=$Language->text('label_name')?></label> <div class="form-grid-item first"> - <input id="form_name" name="name" value="<?=escapeHTML($FORM['DATA']['NAME'])?>" /> + <input id="form_name" name="name" value="<?=escapeHTML($FORM['DATA']['NAME'])?>" autofocus /> </div> <label for="form_slug"> diff --git a/theme/admin/html/page/search.php b/theme/admin/html/page/search.php index 7250056..2bf02be 100644 --- a/theme/admin/html/page/search.php +++ b/theme/admin/html/page/search.php @@ -18,7 +18,7 @@ <i class="fa fa-search"></i><?=$Language->text('search')?></label> <div class="form-grid-item first"> - <input id="form_query" type="search" name="q" placeholder="<?=$Language->text('placeholder_search')?>" value="<?=escapeHTML($QUERY)?>" /> + <input id="form_query" type="search" name="q" placeholder="<?=$Language->text('placeholder_search')?>" value="<?=escapeHTML($QUERY)?>" autofocus /> </div> </div> <div class="form-border-box background padding"> diff --git a/theme/admin/html/post/form.php b/theme/admin/html/post/form.php index 4ae07bd..2e626a6 100644 --- a/theme/admin/html/post/form.php +++ b/theme/admin/html/post/form.php @@ -32,7 +32,7 @@ function categorySelectList($category_tree, $selected = NULL, $prefix = '') { <i class="fa fa-newspaper-o"></i><?=$Language->text('label_name')?></label> <div class="form-grid-item"> - <input id="form_name" name="name" value="<?=escapeHTML($FORM['DATA']['NAME'])?>" /> + <input id="form_name" name="name" value="<?=escapeHTML($FORM['DATA']['NAME'])?>" autofocus /> </div> <label for="form_slug"> diff --git a/theme/admin/html/post/search.php b/theme/admin/html/post/search.php index ff4cf59..17befc7 100644 --- a/theme/admin/html/post/search.php +++ b/theme/admin/html/post/search.php @@ -33,7 +33,7 @@ function categorySelectList($category_tree, $selected = NULL, $prefix = '') { <i class="fa fa-search"></i><?=$Language->text('search')?></label> <div class="form-grid-item first"> - <input id="form_query" type="search" name="q" placeholder="<?=$Language->text('placeholder_search')?>" value="<?=escapeHTML($QUERY)?>" /> + <input id="form_query" type="search" name="q" placeholder="<?=$Language->text('placeholder_search')?>" value="<?=escapeHTML($QUERY)?>" autofocus /> </div> <label for="form_category"> diff --git a/theme/admin/html/user/form.php b/theme/admin/html/user/form.php index e3a0686..6f4185d 100644 --- a/theme/admin/html/user/form.php +++ b/theme/admin/html/user/form.php @@ -17,7 +17,7 @@ <i class="fa fa-user"></i><?=$Language->text('label_fullname')?></label> <div class="form-grid-item first"> - <input id="form_fullname" name="fullname" value="<?=escapeHTML($FORM['DATA']['FULLNAME'])?>" /> + <input id="form_fullname" name="fullname" value="<?=escapeHTML($FORM['DATA']['FULLNAME'])?>" autofocus /> </div> <label for="form_username"> |