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/infinite_scroll.html | |
parent | 5a5cfc19305b294bbcd45a54e937fd0252d80253 (diff) | |
download | searxng-e5535ec078776d07d8eeac0d51dc8f17f77cfb27.tar.gz searxng-e5535ec078776d07d8eeac0d51dc8f17f77cfb27.zip |
[feat] settings: replace boolean select preferences with checkboxes
Diffstat (limited to 'searx/templates/simple/preferences/infinite_scroll.html')
-rw-r--r-- | searx/templates/simple/preferences/infinite_scroll.html | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/searx/templates/simple/preferences/infinite_scroll.html b/searx/templates/simple/preferences/infinite_scroll.html index df91b5f2e..1a734ae1a 100644 --- a/searx/templates/simple/preferences/infinite_scroll.html +++ b/searx/templates/simple/preferences/infinite_scroll.html @@ -1,10 +1,14 @@ <fieldset>{{- '' -}} <legend>{{ _('Infinite scroll') }}</legend>{{- '' -}} <p class="value">{{- '' -}} - <select name='infinite_scroll'>{{- '' -}} - <option value="1" {% if infinite_scroll %}selected="selected"{% endif %}>{{ _('On') }}</option>{{- '' -}} - <option value="0" {% if not infinite_scroll %}selected="selected"{% endif %}>{{ _('Off')}}</option>{{- '' -}} - </select>{{- '' -}} + <input type="checkbox" {{- ' ' -}} + name="infinite_scroll" {{- ' ' -}} + aria-labelledby="pref_infinite_scroll" {{- ' ' -}} + class="checkbox-onoff" {{- ' ' -}} + {%- if preferences.get_value('infinite_scroll') -%} + checked + {%- endif -%}{{- ' ' -}} + />{{- '' -}} </p>{{- '' -}} <div class="description"> {{- _('Automatically load next page when scrolling to bottom of current page') -}} |