diff options
author | Adam Tauber <asciimoo@gmail.com> | 2020-03-23 12:41:02 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2020-03-23 12:41:02 +0100 |
commit | 2621c24cc7992a7c6968d5ce389364c3bf4cc7e2 (patch) | |
tree | 39726d16e0a818cbc62bbe4ca825d845fe74f940 | |
parent | 822aee94a2e50923252faf7ae11b4b03017c1a1a (diff) | |
download | searxng-2621c24cc7992a7c6968d5ce389364c3bf4cc7e2.tar.gz searxng-2621c24cc7992a7c6968d5ce389364c3bf4cc7e2.zip |
[enh] add clear search button to oscar theme - fixes #454
-rw-r--r-- | searx/templates/oscar/search.html | 1 | ||||
-rw-r--r-- | searx/templates/oscar/search_full.html | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/searx/templates/oscar/search.html b/searx/templates/oscar/search.html index cad9eca89..9978801ca 100644 --- a/searx/templates/oscar/search.html +++ b/searx/templates/oscar/search.html @@ -6,6 +6,7 @@ <input type="search" name="q" class="form-control" id="q" placeholder="{{ _('Search for...') }}" aria-label="{{ _('Search for...') }}" autocomplete="off" value="{{ q }}" accesskey="s"> <span class="input-group-btn"> <button type="submit" class="btn btn-default" aria-label="{{ _('Start search') }}"><span class="hide_if_nojs">{{ icon('search') }}</span><span class="hidden active_if_nojs">{{ _('Start search') }}</span></button> + <button type="reset" class="btn btn-default" aria-label="{{ _('Clear search') }}"><span class="hide_if_nojs">{{ icon('remove') }}</span><span class="hidden active_if_nojs">{{ _('Clear') }}</span></button> </span> </div> </div> diff --git a/searx/templates/oscar/search_full.html b/searx/templates/oscar/search_full.html index 656463178..ea821dc45 100644 --- a/searx/templates/oscar/search_full.html +++ b/searx/templates/oscar/search_full.html @@ -9,6 +9,7 @@ <input type="search" name="q" class="form-control input-lg autofocus" id="q" placeholder="{{ _('Search for...') }}" aria-label="{{ _('Search for...') }}" autocomplete="off" value="{{ q }}" accesskey="s"> <span class="input-group-btn"> <button type="submit" class="btn btn-default input-lg" aria-label="{{ _('Start search') }}"><span class="hide_if_nojs">{{ icon('search') }}</span><span class="hidden active_if_nojs">{{ _('Start search') }}</span></button> + <button type="reset" class="btn btn-default input-lg" aria-label="{{ _('Clear search') }}"><span class="hide_if_nojs">{{ icon('remove') }}</span><span class="hidden active_if_nojs">{{ _('Clear') }}</span></button> </span> </div> <div class="col-md-8 col-md-offset-2 advanced"> |