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/macros.html | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'searx/templates/simple/macros.html') diff --git a/searx/templates/simple/macros.html b/searx/templates/simple/macros.html index 6c64c23ea..a751ce187 100644 --- a/searx/templates/simple/macros.html +++ b/searx/templates/simple/macros.html @@ -72,19 +72,13 @@ {%- endmacro -%} {%- macro checkbox_onoff(name, checked) -%} -
{{- '' -}} - {{- '' -}} - {{- '' -}} -
+ {%- endmacro -%} -{%- macro checkbox(name, checked, readonly, disabled) -%} -
{{- '' -}} - {%- if checked == '?' -%} - {{ icon_small('warning') }} - {%- else -%} - {{- '' -}} - {{- '' -}} - {%- endif -%} -
+{%- macro checkbox(name, checked, disabled) -%} +{%- if checked == '?' -%} + {{- icon_small('warning') -}} +{%- else -%} + +{%- endif -%} {%- endmacro -%} -- cgit v1.2.3