From 3d9e48b84e4d41c7ee5042ad718108bd49bdc07a Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Fri, 25 Feb 2022 15:46:18 +0100 Subject: [simple] checkboxes can get the focusable Do note that checkboxes in the engine tab are displayed reversed. See: https://github.com/searxng/searxng/blob/3408d061aab9abc6168fec9bbc6deab71b236dac/searx/templates/simple/preferences.html#L313 A checkbox for an engine is checked when the engine is disabled. --- searx/templates/simple/preferences.html | 84 +++++++++++++++++---------------- 1 file changed, 43 insertions(+), 41 deletions(-) (limited to 'searx/templates/simple/preferences.html') diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html index 275a53bf7..659e93f9a 100644 --- a/searx/templates/simple/preferences.html +++ b/searx/templates/simple/preferences.html @@ -23,13 +23,13 @@ {% if search_engine.about is defined %} {% set about = search_engine.about %} {{- "" -}} {%- else -%} -{{ r }} +{% if r %}{{ r }}{% endif %} {%- endif -%} {%- endmacro -%} @@ -98,7 +98,7 @@ {% block content %}

{{ _('Preferences') }}

-
+ {{ tabs_open() }} @@ -182,9 +182,9 @@ {{ _('Interface language') }}

{{ _('Change the language of the layout') }}
@@ -290,17 +290,17 @@

{{_('This tab does not show up for search results, but you can search the engines listed here via bangs.')}}

{% endif %}
- - - - - - - - - - - +
{{ _("Allow") }}{{ _("Engine name") }}{{ _("Shortcut") }}{{ _("Supports selected language") }}{{ _("SafeSearch") }}{{ _("Time range") }}{{ _("Response time") }}{{ _("Max time") }}{{ _("Reliability") }}
+ {{- "" -}} + {{- "" -}} + {{- "" -}} + {{- "" -}} + {{- "" -}} + {{- "" -}} + {{- "" -}} + {{- "" -}} + {{- "" -}} + {{- "" -}} {% for group, engines in engines_by_category[categ] | group_engines_in_tab %} {% if loop.length > 1 %} @@ -309,22 +309,24 @@ {% for search_engine in engines %} {% if not search_engine.private %} {% set engine_id = 'engine_' + search_engine.name|replace(' ', '_') + '__' + categ|replace(' ', '_') %} - - - {{- "" -}} + {{- "" -}} + - - - - - {{ engine_time(search_engine.name) }} - - {{ engine_reliability(search_engine.name) }} + {%- endif -%} + + {{- engine_about(search_engine) -}} + {{- "" -}} + {{- "" -}} + {{- "" -}} + {{- "" -}} + {{- "" -}} + {{- engine_time(search_engine.name) -}} + {{- "" -}} + {{ engine_reliability(search_engine.name) -}} {% endif %} {% endfor %} @@ -377,20 +379,20 @@ {{ tab_footer() }} {{ tab_header('maintab', 'cookies', _('Cookies')) }} -

- {{ _('This is the list of cookies and their values SearXNG is storing on your computer.') }}
- {{ _('With that list, you can assess SearXNG transparency.') }}
+

{{- "" -}} + {{- _('This is the list of cookies and their values SearXNG is storing on your computer.') }}
{{- "" -}} + {{- _('With that list, you can assess SearXNG transparency.') }}
{{- "" -}}

{% if cookies %}
{{ _("Allow") }}{{ _("Engine name") }}{{ _("Shortcut") }}{{ _("Supports selected language") }}{{ _("SafeSearch") }}{{ _("Time range") }}{{ _("Response time") }}{{ _("Max time") }}{{ _("Reliability") }}
{{ checkbox_onoff(engine_id, (search_engine.name, categ) in disabled_engines) }}{% if search_engine.enable_http %}{{ icon_big('warning', 'No HTTPS') }}{% endif %} - {{ search_engine.name }} - {%- if search_engine.about and search_engine.about.language %} +
{{ checkbox_onoff(engine_id, (search_engine.name, categ) in disabled_engines) }}{% if search_engine.enable_http %}{{ icon_big('warning', 'No HTTPS') }}{% endif -%} + {{ shortcuts[search_engine.name] }}{{ checkbox(engine_id + '_supported_languages', supports[search_engine.name]['supports_selected_language'], true, true) }}{{ checkbox(engine_id + '_safesearch', supports[search_engine.name]['safesearch'], true, true) }}{{ checkbox(engine_id + '_time_range_support', supports[search_engine.name]['time_range_support'], true, true) }}{{ search_engine.timeout }}{{ shortcuts[search_engine.name] }}{{ checkbox(None, supports[search_engine.name]['supports_selected_language'], true) }}{{ checkbox(None, supports[search_engine.name]['safesearch'], true) }}{{ checkbox(None, supports[search_engine.name]['time_range_support'], true) }}{{ search_engine.timeout }}
- - - + {{- "" -}} + {{- "" -}} + {{- "" -}} {% for cookie in cookies %} - - - + {{- "" -}} + {{- "" -}} + {{- "" -}} {% endfor %}
{{ _('Cookie name') }}{{ _('Value') }}
{{ _('Cookie name') }}{{ _('Value') }}
{{ cookie }}{{ cookies[cookie] }}
{{ cookie }}{{ cookies[cookie] }}
-- cgit v1.2.3-54-g00ecf