mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Let admins lock user preferences
This commit is contained in:
parent
6beb84efb8
commit
33e139cae6
11 changed files with 151 additions and 5 deletions
|
|
@ -5,6 +5,7 @@
|
|||
<h2>{{ _('Preferences') }}</h2>
|
||||
|
||||
<form method="post" action="{{ url_for('preferences') }}" id="search_form">
|
||||
{% if 'language' not in locked_preferences %}
|
||||
<fieldset>
|
||||
<legend>{{ _('Search language') }}</legend>
|
||||
<p>
|
||||
|
|
@ -16,6 +17,8 @@
|
|||
</select>
|
||||
</p>
|
||||
</fieldset>
|
||||
{% endif %}
|
||||
{% if 'locale' not in locked_preferences %}
|
||||
<fieldset>
|
||||
<legend>{{ _('Interface language') }}</legend>
|
||||
<p>
|
||||
|
|
@ -26,6 +29,8 @@
|
|||
</select>
|
||||
</p>
|
||||
</fieldset>
|
||||
{% endif %}
|
||||
{% if 'method' not in locked_preferences %}
|
||||
<fieldset>
|
||||
<legend>{{ _('Method') }}</legend>
|
||||
<p>
|
||||
|
|
@ -35,6 +40,8 @@
|
|||
</select>
|
||||
</p>
|
||||
</fieldset>
|
||||
{% endif %}
|
||||
{% if 'theme' not in locked_preferences %}
|
||||
<fieldset>
|
||||
<legend>{{ _('Themes') }}</legend>
|
||||
<p>
|
||||
|
|
@ -45,6 +52,7 @@
|
|||
</select>
|
||||
</p>
|
||||
</fieldset>
|
||||
{% endif %}
|
||||
<fieldset>
|
||||
<legend>{{ _('Currently used search engines') }}</legend>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue