mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
[feat] settings: replace boolean select preferences with checkboxes
This commit is contained in:
parent
5a5cfc1930
commit
e5535ec078
6 changed files with 52 additions and 27 deletions
|
|
@ -1,11 +1,15 @@
|
|||
<fieldset>{{- '' -}}
|
||||
<legend id="pref_image_proxy">{{ _('Image proxy') }}</legend>{{- '' -}}
|
||||
<p class="value">{{- '' -}}
|
||||
<select name='image_proxy' aria-labelledby="pref_image_proxy">{{- '' -}}
|
||||
<option value="1" {% if image_proxy %}selected="selected"{% endif %}>{{ _('Enabled') }}</option>{{- '' -}}
|
||||
<option value="0" {% if not image_proxy %}selected="selected"{% endif %}>{{ _('Disabled') }}</option>{{- '' -}}
|
||||
</select>{{- '' -}}
|
||||
</p>
|
||||
<input type="checkbox" {{- ' ' -}}
|
||||
name="image_proxy" {{- ' ' -}}
|
||||
aria-labelledby="pref_image_proxy" {{- ' ' -}}
|
||||
class="checkbox-onoff" {{- ' ' -}}
|
||||
{%- if preferences.get_value('image_proxy') -%}
|
||||
checked
|
||||
{%- endif -%}{{- ' ' -}}
|
||||
/>{{- '' -}}
|
||||
</p>{{- '' -}}
|
||||
<div class="description">
|
||||
{{- _('Proxying image results through SearXNG') -}}
|
||||
</div>{{- '' -}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue