|  | @@ -1,4 +1,4 @@
 | 
	
		
			
			| 1 |  | -{% extends "default/base.html" %}
 | 
	
		
			
			|  | 1 | +{% extends "courgette/base.html" %}
 | 
	
		
			
			| 2 | 2 |  {% block head %} {% endblock %}
 | 
	
		
			
			| 3 | 3 |  {% block content %}
 | 
	
		
			
			| 4 | 4 |  <div class="row">
 | 
	
	
		
			
			|  | @@ -7,95 +7,93 @@
 | 
	
		
			
			| 7 | 7 |      <form method="post" action="{{ url_for('preferences') }}" id="search_form">
 | 
	
		
			
			| 8 | 8 |      <fieldset>
 | 
	
		
			
			| 9 | 9 |          <legend>{{ _('Default categories') }}</legend>
 | 
	
		
			
			| 10 |  | -        <p>
 | 
	
		
			
			| 11 |  | -        {% include 'default/categories.html' %}
 | 
	
		
			
			| 12 |  | -        </p>
 | 
	
		
			
			|  | 10 | +        {% include 'courgette/categories.html' %}
 | 
	
		
			
			| 13 | 11 |      </fieldset>
 | 
	
		
			
			| 14 | 12 |      <fieldset>
 | 
	
		
			
			| 15 | 13 |          <legend>{{ _('Search language') }}</legend>
 | 
	
		
			
			| 16 | 14 |          <p>
 | 
	
		
			
			| 17 |  | -        <select name='language'>
 | 
	
		
			
			| 18 |  | -            <option value="all" {% if current_language == 'all' %}selected="selected"{% endif %}>{{ _('Automatic') }}</option>
 | 
	
		
			
			| 19 |  | -            {% for lang_id,lang_name,country_name in language_codes %}
 | 
	
		
			
			| 20 |  | -            <option value="{{ lang_id }}" {% if lang_id == current_language %}selected="selected"{% endif %}>{{ lang_name }} ({{ country_name }}) - {{ lang_id }}</option>
 | 
	
		
			
			| 21 |  | -            {% endfor %}
 | 
	
		
			
			| 22 |  | -        </select>
 | 
	
		
			
			|  | 15 | +            <select name='language'>
 | 
	
		
			
			|  | 16 | +                <option value="all" {% if current_language == 'all' %}selected="selected"{% endif %}>{{ _('Automatic') }}</option>
 | 
	
		
			
			|  | 17 | +                {% for lang_id,lang_name,country_name in language_codes %}
 | 
	
		
			
			|  | 18 | +                <option value="{{ lang_id }}" {% if lang_id == current_language %}selected="selected"{% endif %}>{{ lang_name }} ({{ country_name }}) - {{ lang_id }}</option>
 | 
	
		
			
			|  | 19 | +                {% endfor %}
 | 
	
		
			
			|  | 20 | +            </select>
 | 
	
		
			
			| 23 | 21 |          </p>
 | 
	
		
			
			| 24 | 22 |      </fieldset>
 | 
	
		
			
			| 25 | 23 |      <fieldset>
 | 
	
		
			
			| 26 | 24 |          <legend>{{ _('Interface language') }}</legend>
 | 
	
		
			
			| 27 | 25 |          <p>
 | 
	
		
			
			| 28 |  | -        <select name='locale'>
 | 
	
		
			
			| 29 |  | -            {% for locale_id,locale_name in locales.items() %}
 | 
	
		
			
			| 30 |  | -            <option value="{{ locale_id }}" {% if locale_id == current_locale %}selected="selected"{% endif %}>{{ locale_name }}</option>
 | 
	
		
			
			| 31 |  | -            {% endfor %}
 | 
	
		
			
			| 32 |  | -        </select>
 | 
	
		
			
			|  | 26 | +            <select name='locale'>
 | 
	
		
			
			|  | 27 | +                {% for locale_id,locale_name in locales.items() %}
 | 
	
		
			
			|  | 28 | +                <option value="{{ locale_id }}" {% if locale_id == current_locale %}selected="selected"{% endif %}>{{ locale_name }}</option>
 | 
	
		
			
			|  | 29 | +                {% endfor %}
 | 
	
		
			
			|  | 30 | +            </select>
 | 
	
		
			
			| 33 | 31 |          </p>
 | 
	
		
			
			| 34 | 32 |      </fieldset>
 | 
	
		
			
			| 35 | 33 |      <fieldset>
 | 
	
		
			
			| 36 | 34 |          <legend>{{ _('Autocomplete') }}</legend>
 | 
	
		
			
			| 37 | 35 |          <p>
 | 
	
		
			
			| 38 |  | -        <select name="autocomplete">
 | 
	
		
			
			| 39 |  | -            <option value=""> - </option>
 | 
	
		
			
			| 40 |  | -            {% for backend in autocomplete_backends %}
 | 
	
		
			
			| 41 |  | -            <option value="{{ backend }}" {% if backend == autocomplete %}selected="selected"{% endif %}>{{ backend }}</option>
 | 
	
		
			
			| 42 |  | -            {% endfor %}
 | 
	
		
			
			| 43 |  | -        </select>
 | 
	
		
			
			|  | 36 | +            <select name="autocomplete">
 | 
	
		
			
			|  | 37 | +                <option value=""> - </option>
 | 
	
		
			
			|  | 38 | +                {% for backend in autocomplete_backends %}
 | 
	
		
			
			|  | 39 | +                <option value="{{ backend }}" {% if backend == autocomplete %}selected="selected"{% endif %}>{{ backend }}</option>
 | 
	
		
			
			|  | 40 | +                {% endfor %}
 | 
	
		
			
			|  | 41 | +            </select>
 | 
	
		
			
			| 44 | 42 |          </p>
 | 
	
		
			
			| 45 | 43 |      </fieldset>
 | 
	
		
			
			| 46 | 44 |      <fieldset>
 | 
	
		
			
			| 47 | 45 |          <legend>{{ _('Method') }}</legend>
 | 
	
		
			
			| 48 | 46 |          <p>
 | 
	
		
			
			| 49 |  | -        <select name='method'>
 | 
	
		
			
			| 50 |  | -            <option value="POST" {% if method == 'POST' %}selected="selected"{% endif %}>POST</option>
 | 
	
		
			
			| 51 |  | -            <option value="GET" {% if method == 'GET' %}selected="selected"{% endif %}>GET</option>
 | 
	
		
			
			| 52 |  | -        </select>
 | 
	
		
			
			|  | 47 | +            <select name='method'>
 | 
	
		
			
			|  | 48 | +                <option value="POST" {% if method == 'POST' %}selected="selected"{% endif %}>POST</option>
 | 
	
		
			
			|  | 49 | +                <option value="GET" {% if method == 'GET' %}selected="selected"{% endif %}>GET</option>
 | 
	
		
			
			|  | 50 | +            </select>
 | 
	
		
			
			| 53 | 51 |          </p>
 | 
	
		
			
			| 54 | 52 |      </fieldset>
 | 
	
		
			
			| 55 | 53 |      <fieldset>
 | 
	
		
			
			| 56 | 54 |          <legend>{{ _('Themes') }}</legend>
 | 
	
		
			
			| 57 | 55 |          <p>
 | 
	
		
			
			| 58 |  | -        <select name="theme">
 | 
	
		
			
			| 59 |  | -            {% for name in themes %}
 | 
	
		
			
			| 60 |  | -            <option value="{{ name }}" {% if name == theme %}selected="selected"{% endif %}>{{ name }}</option>
 | 
	
		
			
			| 61 |  | -            {% endfor %}
 | 
	
		
			
			| 62 |  | -        </select>
 | 
	
		
			
			|  | 56 | +            <select name="theme">
 | 
	
		
			
			|  | 57 | +                {% for name in themes %}
 | 
	
		
			
			|  | 58 | +                <option value="{{ name }}" {% if name == theme %}selected="selected"{% endif %}>{{ name }}</option>
 | 
	
		
			
			|  | 59 | +                {% endfor %}
 | 
	
		
			
			|  | 60 | +            </select>
 | 
	
		
			
			| 63 | 61 |          </p>
 | 
	
		
			
			| 64 | 62 |      </fieldset>
 | 
	
		
			
			| 65 | 63 |      <fieldset>
 | 
	
		
			
			| 66 |  | -    <legend>{{ _('Currently used search engines') }}</legend>
 | 
	
		
			
			| 67 |  | -
 | 
	
		
			
			| 68 |  | -    <table>
 | 
	
		
			
			| 69 |  | -        <tr>
 | 
	
		
			
			| 70 |  | -            <th>{{ _('Engine name') }}</th>
 | 
	
		
			
			| 71 |  | -            <th>{{ _('Category') }}</th>
 | 
	
		
			
			| 72 |  | -            <th>{{ _('Allow') }} / {{ _('Block') }}</th>
 | 
	
		
			
			| 73 |  | -        </tr>
 | 
	
		
			
			| 74 |  | -    {% for (categ,search_engines) in categs %}
 | 
	
		
			
			| 75 |  | -        {% for search_engine in search_engines %}
 | 
	
		
			
			|  | 64 | +        <legend>{{ _('Currently used search engines') }}</legend>
 | 
	
		
			
			| 76 | 65 |  
 | 
	
		
			
			| 77 |  | -            {% if not search_engine.private %}
 | 
	
		
			
			|  | 66 | +        <table>
 | 
	
		
			
			| 78 | 67 |              <tr>
 | 
	
		
			
			| 79 |  | -                <td>{{ search_engine.name }} ({{ shortcuts[search_engine.name] }})</td>
 | 
	
		
			
			| 80 |  | -                <td>{{ _(categ) }}</td>
 | 
	
		
			
			| 81 |  | -                <td class="engine_checkbox">
 | 
	
		
			
			| 82 |  | -                    <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 %} />
 | 
	
		
			
			| 83 |  | -                    <label class="allow" for="engine_{{ categ }}_{{ search_engine.name|replace(' ', '_') }}">{{ _('Allow') }}</label>
 | 
	
		
			
			| 84 |  | -                    <label class="deny" for="engine_{{ categ }}_{{ search_engine.name|replace(' ', '_') }}">{{ _('Block') }}</label>
 | 
	
		
			
			| 85 |  | -                </td>
 | 
	
		
			
			|  | 68 | +                <th>{{ _('Engine name') }}</th>
 | 
	
		
			
			|  | 69 | +                <th>{{ _('Category') }}</th>
 | 
	
		
			
			|  | 70 | +                <th>{{ _('Allow') }} / {{ _('Block') }}</th>
 | 
	
		
			
			| 86 | 71 |              </tr>
 | 
	
		
			
			| 87 |  | -            {% endif %}
 | 
	
		
			
			|  | 72 | +        {% for (categ,search_engines) in categs %}
 | 
	
		
			
			|  | 73 | +            {% for search_engine in search_engines %}
 | 
	
		
			
			|  | 74 | +
 | 
	
		
			
			|  | 75 | +                {% if not search_engine.private %}
 | 
	
		
			
			|  | 76 | +                <tr>
 | 
	
		
			
			|  | 77 | +                    <td>{{ search_engine.name }} ({{ shortcuts[search_engine.name] }})</td>
 | 
	
		
			
			|  | 78 | +                    <td>{{ _(categ) }}</td>
 | 
	
		
			
			|  | 79 | +                    <td class="engine_checkbox">
 | 
	
		
			
			|  | 80 | +                        <input type="checkbox" id="engine_{{ categ|replace(' ', '_') }}_{{ search_engine.name|replace(' ', '_') }}" name="engine_{{ search_engine.name }}"{% if search_engine.name in blocked_engines %} checked="checked"{% endif %} />
 | 
	
		
			
			|  | 81 | +                        <label class="allow" for="engine_{{ categ|replace(' ', '_') }}_{{ search_engine.name|replace(' ', '_') }}">{{ _('Allow') }}</label>
 | 
	
		
			
			|  | 82 | +                        <label class="deny" for="engine_{{ categ|replace(' ', '_') }}_{{ search_engine.name|replace(' ', '_') }}">{{ _('Block') }}</label>
 | 
	
		
			
			|  | 83 | +                    </td>
 | 
	
		
			
			|  | 84 | +                </tr>
 | 
	
		
			
			|  | 85 | +                {% endif %}
 | 
	
		
			
			|  | 86 | +            {% endfor %}
 | 
	
		
			
			| 88 | 87 |          {% endfor %}
 | 
	
		
			
			| 89 |  | -    {% endfor %}
 | 
	
		
			
			| 90 |  | -    </table>
 | 
	
		
			
			|  | 88 | +        </table>
 | 
	
		
			
			| 91 | 89 |      </fieldset>
 | 
	
		
			
			| 92 | 90 |      <p class="small_font">{{ _('These settings are stored in your cookies, this allows us not to store this data about you.') }}
 | 
	
		
			
			| 93 |  | -    <br />
 | 
	
		
			
			| 94 |  | -    {{ _("These cookies serve your sole convenience, we don't use these cookies to track you.") }}
 | 
	
		
			
			|  | 91 | +        <br />
 | 
	
		
			
			|  | 92 | +        {{ _("These cookies serve your sole convenience, we don't use these cookies to track you.") }}
 | 
	
		
			
			| 95 | 93 |      </p>
 | 
	
		
			
			| 96 | 94 |  
 | 
	
		
			
			| 97 | 95 |      <input type="submit" value="{{ _('save') }}" />
 | 
	
		
			
			| 98 |  | -	<div class="right preferences_back"><a href="{{ url_for('index') }}">{{ _('back') }}</a></div>
 | 
	
		
			
			|  | 96 | +    <div class="right preferences_back"><a href="{{ url_for('index') }}">{{ _('back') }}</a></div>
 | 
	
		
			
			| 99 | 97 |      </form>    
 | 
	
		
			
			| 100 | 98 |  </div>
 | 
	
		
			
			| 101 |  | -{% endblock %}
 | 
	
		
			
			|  | 99 | +{% endblock %}
 |