forked from zaclys/searxng
[feat] settings: replace boolean select preferences with checkboxes
This commit is contained in:
parent
f18da4de17
commit
d12e02b1da
6 changed files with 52 additions and 27 deletions
|
|
@ -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") -}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue