{% extends "ldt/user/user_base.html" %}
{# form of language's change #}
{% load i18n %}

{% block content_title %}{% trans "Language change" %} {% endblock %}

{% block css_import %}
{{ block.super }}
    <style type="text/css">
        label.error { float: none; color: red; padding-left: .5em; vertical-align: middle; }
    </style>
{% endblock %}

{% block content %}
{{ block.super }}
<p>{% trans "Please change the language" %}</p>
<form action="{{BASE_URL}}/ldtplatform/i18n/setlang/" method="post">
	{% csrf_token %}
	<input name="next" type="hidden" value="" />
	<label >{% trans "Language" %}&nbsp;: </label>
	<select name="language"  onchange="submit()">
	{% for lang in LANGUAGES %}
		<option value="{{ lang.0 }}"{% ifequal lang.0 LANGUAGE_CODE %} selected="selected"{% endifequal %}>{% trans lang.1 %}</option>
	{% endfor %}    
	</select>        
</form>
{% endblock%}
