searxng/searx/templates/preferences.html

74 lines
2.9 KiB
HTML
Raw Normal View History

2014-01-01 21:17:36 +00:00
{% extends "base.html" %}
{% block head %} {% endblock %}
{% block content %}
<div class="row">
2014-01-21 23:17:49 +00:00
<h2>{{ _('Preferences') }}</h2>
2014-01-01 21:17:36 +00:00
2014-01-21 23:59:18 +00:00
<form method="post" action="/preferences" id="search_form">
2014-01-01 21:17:36 +00:00
<fieldset>
2014-01-21 23:17:49 +00:00
<legend>{{ _('Default categories') }}</legend>
2014-01-01 21:17:36 +00:00
<p>
{% include 'categories.html' %}
</p>
</fieldset>
2014-01-31 03:35:23 +00:00
<fieldset>
<legend>{{ _('Search language') }}</legend>
<p>
<select name='language'>
<option value="all" {% if current_language == 'all' %}selected="selected"{% endif %}>{{ _('Automatic') }}</option>
{% for lang_id,lang_name,country_name in language_codes %}
<option value={{ lang_id }} {% if lang_id == current_language %}selected="selected"{% endif %}>{{ lang_name}} ({{ country_name }})</option>
{% endfor %}
</select>
</p>
</fieldset>
2014-01-21 23:59:18 +00:00
<fieldset>
<legend>{{ _('Interface language') }}</legend>
<p>
<select name='locale'>
{% for locale_id,locale_name in locales.items() %}
<option value={{ locale_id }} {% if locale_id == current_locale %}selected="selected"{% endif %}>{{ locale_name}}</option>
{% endfor %}
</select>
</p>
</fieldset>
2014-02-06 23:35:15 +00:00
<fieldset>
<legend>{{ _('Currently used search engines') }}</legend>
<table>
<tr>
<th>{{ _('Engine name') }}</th>
<th>{{ _('Shortcut') }}</th>
<th>{{ _('Category') }}</th>
<th>{{ _('Allow') }} / {{ _('Deny') }}</th>
</tr>
{% for (categ,search_engines) in categs %}
{% for search_engine in search_engines %}
{% if not search_engine.private %}
<tr>
<td>{{ search_engine.name }}</td>
<td>{{ shortcuts[search_engine.name] }}</td>
<td>{{ _(categ) }}</td>
<td class="engine_checkbox">
<input type="checkbox" id="engine_{{ categ}}_{{ search_engine.name|replace(' ', '_') }}" name="engine_{{ search_engine.name }}"{% if search_engine.name in blocked_engines %} checked="checked"{% endif %} />
<label class="allow" for="engine_{{ categ }}_{{ search_engine.name|replace(' ', '_') }}">{{ _('Allow') }}</label>
<label class="deny" for="engine_{{ categ }}_{{ search_engine.name|replace(' ', '_') }}">{{ _('Deny') }}</label>
</td>
</tr>
{% endif %}
{% endfor %}
{% endfor %}
</table>
</fieldset>
<p class="small_font">{{ _('These settings are stored in your cookies, this allows us not to store this data about you.') }}
<br />
{{ _("These cookies serve your sole convenience, we don't use these cookies to track you.") }}
</p>
2014-01-21 23:59:18 +00:00
<input type="submit" value="{{ _('save') }}" />
</form>
2014-01-21 23:17:49 +00:00
<div class="right"><a href="/">{{ _('back') }}</a></div>
2014-01-01 21:17:36 +00:00
</div>
{% endblock %}