{% load i18n %}
<html>
	<head>
	{% block head %}
		{% block js_import %}
		{% endblock %}
		{% block js_declaration %}
		{% endblock %}
		{% block css_import %}
		{% endblock %}
	{% endblock %}

    </head>
    <body>
    {% block body %}
	<form action="/pt/polemictweet/i18n/setlang/" method="post">{% csrf_token %}
		  	<select name="language">
		      {% for lang in LANGUAGES %}
		          {% if lang.0 == current_language %}
			      		<option value="{{ lang.0 }}">{{ lang.1 }}</option>
			      	{% endif %}
		     	{% endfor %}
		        {% for lang in LANGUAGES %}
		        	{% if lang.0 != current_language %}
			      		<option value="{{ lang.0 }}">{{ lang.1 }}</option>
			      	{% endif %}
				{% endfor %}
			</select>
	      <input type="submit" value="Go" />
	   	</form>  	
	   	{% block content %}{% endblock %}
	{% endblock %}
	</body>
</html>