Add autofocus to search input fields #194
This commit is contained in:
parent
39fb6294d7
commit
5770913103
@ -6,7 +6,7 @@
|
|||||||
{{ form.hidden_tag() }}
|
{{ form.hidden_tag() }}
|
||||||
<p>
|
<p>
|
||||||
{{ form.username.label }}<br>
|
{{ form.username.label }}<br>
|
||||||
{{ form.username(size=32) }}<br>
|
{{ form.username(size=32, autofocus=true) }}<br>
|
||||||
{% for error in form.username.errors %}
|
{% for error in form.username.errors %}
|
||||||
<span style="color: red;">[{{ error }}]</span>
|
<span style="color: red;">[{{ error }}]</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<div class="ui center aligned text container">
|
<div class="ui center aligned text container">
|
||||||
<form action="{{url_for('ytsearch', _method='GET')}}">
|
<form action="{{url_for('ytsearch', _method='GET')}}">
|
||||||
<div class="ui search">
|
<div class="ui search">
|
||||||
<input class="prompt" name="q" type="text" placeholder="Search...">
|
<input class="prompt" name="q" type="text" placeholder="Search..." autofocus>
|
||||||
<select name="s" id="sort">
|
<select name="s" id="sort">
|
||||||
<option value="0">Relevance</option>
|
<option value="0">Relevance</option>
|
||||||
<option value="3">Views</option>
|
<option value="3">Views</option>
|
||||||
|
Reference in New Issue
Block a user