preferences.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {% extends "base.html" %}
  2. {% block head %} {% endblock %}
  3. {% block content %}
  4. <div class="row">
  5. <h2>{{ _('Preferences') }}</h2>
  6. <form method="post" action="/preferences" id="search_form">
  7. <fieldset>
  8. <legend>{{ _('Default categories') }}</legend>
  9. <p>
  10. {% include 'categories.html' %}
  11. </p>
  12. </fieldset>
  13. <fieldset>
  14. <legend>{{ _('Search language') }}</legend>
  15. <p>
  16. <select name='language'>
  17. <option value="all" {% if current_language == 'all' %}selected="selected"{% endif %}>{{ _('Automatic') }}</option>
  18. {% for lang_id,lang_name,country_name in language_codes %}
  19. <option value={{ lang_id }} {% if lang_id == current_language %}selected="selected"{% endif %}>{{ lang_name}} ({{ country_name }})</option>
  20. {% endfor %}
  21. </select>
  22. </p>
  23. </fieldset>
  24. <fieldset>
  25. <legend>{{ _('Interface language') }}</legend>
  26. <p>
  27. <select name='locale'>
  28. {% for locale_id,locale_name in locales.items() %}
  29. <option value={{ locale_id }} {% if locale_id == current_locale %}selected="selected"{% endif %}>{{ locale_name}}</option>
  30. {% endfor %}
  31. </select>
  32. </p>
  33. </fieldset>
  34. <p class="small_font">{{ _('These settings are stored in your cookies, this allows us not to store this data about you.') }}
  35. <br />
  36. {{ _("These cookies serve your sole convenience, we don't use these cookies to track you.") }}
  37. </p>
  38. <input type="submit" value="{{ _('save') }}" />
  39. </form>
  40. <div class="right"><a href="/">{{ _('back') }}</a></div>
  41. </div>
  42. {% endblock %}