searxng/searx/templates/oscar/search.html
Martin Fischer 695e5d0005 [fix 3/3] actually only hide them for tabs
The categories.html template is used in three places:

1) for the tabs on the result page
2) for the default category selection in the preferences
3) for the advanced search category selection in the oscar theme

The search_on_category_select plugin only makes the checkboxes in 1)
behave like tabs. The previous commit however hides the checkboxes
in all three places when the plugin is loaded, which we don't want:
The categories in 2) and 3) always act like checkboxes, so the
checkboxes in these places should actually always be visible.
2022-01-07 11:33:01 +01:00

27 lines
1.3 KiB
HTML

{% from 'oscar/macros.html' import icon %}
<form method="{{ method or 'POST' }}" action="{{ url_for('search') }}" id="search_form" role="search">
<div class="row">
<div class="col-xs-12 col-md-8">
<div class="input-group search-margin">
<input type="search" autofocus 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="button" id="clear_search" class="btn btn-default hide_if_nojs" aria-label="{{ _('Clear search') }}">{{ icon('remove') }}</button>
</span>
</div>
</div>
<div class="col-xs-6 col-md-2 search-margin">
{%- include 'oscar/time-range.html' -%}
</div>
<div class="col-xs-6 col-md-2 search-margin">
{%- include 'oscar/languages.html' -%}
</div>
</div>
<div class="row">
<div class="col-sm-12">
{% with categories_class='search-tabs' %}
{%- include 'oscar/categories.html' -%}
{% endwith %}
</div>
</div>
</form><!-- / #search_form_full -->