{% if languages|length > 1 %}
<form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-language">
<select name="code" class="noselect" onchange="$('#form-language').submit()">
{% for language in languages %}
<option value="{{ language.code }}" {% if language.code == code %}selected="selected"{% endif %}>{{ language.name }}</option>
{% endfor %}
</select>
<input type="hidden" name="redirect" value="{{ redirect }}" />
</form>
{% endif %}