diff options
| author | Bnyro <bnyro@tutanota.com> | 2023-08-20 14:03:03 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2023-08-27 21:23:43 +0200 |
| commit | e5535ec078776d07d8eeac0d51dc8f17f77cfb27 (patch) | |
| tree | 40b4584b3a9ae10b943ce429e418d378831e058e /searx/templates/simple/preferences/query_in_title.html | |
| parent | 5a5cfc19305b294bbcd45a54e937fd0252d80253 (diff) | |
[feat] settings: replace boolean select preferences with checkboxes
Diffstat (limited to 'searx/templates/simple/preferences/query_in_title.html')
| -rw-r--r-- | searx/templates/simple/preferences/query_in_title.html | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/searx/templates/simple/preferences/query_in_title.html b/searx/templates/simple/preferences/query_in_title.html index 12d0e5577..924d6ccd1 100644 --- a/searx/templates/simple/preferences/query_in_title.html +++ b/searx/templates/simple/preferences/query_in_title.html @@ -1,10 +1,14 @@ <fieldset>{{- '' -}} - <legend id="pref_query_in_title">{{ _("Query in the page's title") }}</legend> + <legend id="pref_query_in_title">{{ _("Query in the page's title") }}</legend>{{- '' -}} <p class="value">{{- '' -}} - <select name='query_in_title' aria-labelledby="pref_query_in_title">{{- '' -}} - <option value="1" {% if query_in_title %}selected="selected"{% endif %}>{{ _('Enabled') }}</option>{{- '' -}} - <option value="0" {% if not query_in_title %}selected="selected"{% endif %}>{{ _('Disabled') }}</option>{{- '' -}} - </select>{{- '' -}} + <input type="checkbox" {{- ' ' -}} + name="query_in_title" {{- ' ' -}} + aria-labelledby="pref_query_in_title" {{- ' ' -}} + class="checkbox-onoff" {{- ' ' -}} + {%- if preferences.get_value('query_in_title') -%} + checked + {%- endif -%}{{- ' ' -}} + />{{- '' -}} </p>{{- '' -}} <div class="description"> {{- _("When enabled, the result page's title contains your query. Your browser can record this title") -}} |