Skip to content

Commit 69ad9da

Browse files
committed
make search term optional (bug 619052)
1 parent 4eb85ee commit 69ad9da

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

apps/devhub/templates/devhub/search.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% set search_form = SimpleSearchForm(request, None) %}
22
<form action="{{ remora_url('/developers/search') }}" method="get">
33
<span class="wrap">
4-
<input type="text" name="q" required
4+
<input type="text" name="q"
55
class="text {% if not search_form.q.data %}placeholder{% endif %}"
66
value="{{ search_form.q.data or '' }}"
77
placeholder="{{ _('Search Developer Docs') }}">

templates/impala/search.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% endif %}
66
{% set search_form = SimpleSearchForm(request, search_cat) %}
77
<form id="search" action="{{ search_url }}">
8-
<input id="search-q" type="text" name="q" required autocomplete="off" title=""
8+
<input id="search-q" type="text" name="q" autocomplete="off" title=""
99
class="text {% if not search_form.q.data %}placeholder{% endif %}"
1010
placeholder="{{ search_form.placeholder() }}"
1111
value="{{ search_form.q.data or '' }}">

templates/search.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{% set search_form = SimpleSearchForm(request, search_cat) %}
22
<form id="search" action="{{ url('search.search') }}">
33
<span class="wrap">
4-
<input id="search-q" type="text" name="q" required
5-
required autocomplete="off" title=""
4+
<input id="search-q" type="text" name="q" autocomplete="off" title=""
65
class="text {% if not search_form.q.data %}placeholder{% endif %}"
76
placeholder="{{ search_form.placeholder() }}"
87
value="{{ search_form.q.data or '' }}">

0 commit comments

Comments
 (0)