{% if languages|length >= 1 %}
    <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-language">
        <div>
            <span class="text-ex">{{ text_language }}</span>
            <ul>
                {% for language in languages %}
                    {% if language.code == code %}
                        <li>
                            <button class="btn btn-link btn-block language-select item-selected" type="button" name="{{ language.code }}">
                                {{ language.name }}
                            </button>
                        </li>
                    {% else %}
                        <li>
                            <button class="btn btn-link btn-block language-select" type="button" name="{{ language.code }}">
                                {{ language.name }}
                            </button>
                        </li>
                    {% endif %}
                {% endfor %}
            </ul>
        </div>
        <input type="hidden" name="code" value=""/>
        <input type="hidden" name="redirect" value="{{ redirect }}"/>
    </form>
{% endif %}
