{% extends "members/base.html" %}

{% load static %}
{% load i18n %}
{% block content %}

{% get_current_language as LANGUAGE_CODE %}

<div>
    <div>
        <h3>{% trans "Settings" %}</h3>
    </div>

    <div>
        <form action="/i18n/setlang/" method="post" class="form-group"> {% csrf_token %}

            <h4>{% trans "Language" %}</h4>

            <select name="language" class="form-control">
                <option value="fi" {% if LANGUAGE_CODE == "fi" %} selected {% endif %}>{% trans "Finnish" %}</option>
                <option value="en" {% if LANGUAGE_CODE == "en" %} selected {% endif %}>{% trans "English" %}</option>
            </select>
            <input type="submit" class="btn btn-success" value="{% trans "Submit" %}">
        </form>
    </div>
</div>
{% endblock content %}
