{% extends 'layout.twig' %}

{% block body %}
    <!-- Modal content -->
    <div id="myModal" class="modal" tabindex="-1" role="dialog">

        <div class="modal-dialog" style="width:auto;height:auto;{% if application != 'Mobility' %}min-width:500px{% endif %}" role="document">
            <div id="modal-content" class="modal-content" style="z-index:99999;{% if application != 'Mobility' %}min-width: 600px;{% endif %}">
                <div class="modal-header">
                    <span class="modal-close">&times;</span>
                    <h3 id="modal-title"></h3>
                </div>
                <div id="modal-body" style="padding: 15px;z-index:99999">
                </div>
            </div>
        </div>
    </div>
	<div class="contenu clearfix">
        <h1>
            {{ title }}
        </h1>
        
        {{ ariane() }}

        <h4>
            {{ message }}
        </h4>
        <h4>
            {{ 'Groupes déjà existants' | trad ~ ' :'}}
        </h4>
        {% if existingGroups | length > 0 %}
            <table class="table table-hover">
                <thead class="thead-dark">
                    <tr>
                        <th scope="col" width="">{{ 'Libellé' | trad }}</th>
                    </tr>
                </thead>
                <tbody>
                    {% for key, group in existingGroups %}
                        <tr>
                            <td>{{ group }}</td>
                        </tr>
                    {% endfor %}
                </tbody>
            </table>
        {% else %}
            <p>
                {{ 'Le fichier d\'import ne contenait aucun groupe déjà existant.' | trad }}
            </p>
        {% endif %}
	</div>
{% endblock %}
