<div class="modal-body">

    {% if error is defined and error is not empty %}
        <div class="modal_erreur">
            {{ error }}
        </div>
    {% endif %}

    {% if message is not empty %}
        <div class="modal-body">
            <span class="icone-modal information"></span>
            <div class="display_cell">
                <strong>{{ message|raw }}</strong>
            </div>
        </div>
    {% endif %}
    <div class="modal-footer">
        {% if confirmAction is defined %}
            <button type="button" class="button secondaire" data-dismiss="modal" onclick="desactivePopup ();">{{ 'Annuler' | trad }}</button>
            <button type="button" class="button principal" onclick="desactivePopup ();ImportCA('{{ path('Specifique155.declaratif.index', {force: 1}) }}')">{{ 'Continuer' | trad }}</button>
        {% elseif not error %}
            <button type="button" class="button secondaire" data-dismiss="modal" onclick="desactivePopup ();">{{ 'Fermer' | trad }}</button>
        {% endif %}
    </div>
</div>

<script>
    $("#modal-title").html('{{ titrePopup? (titrePopup | raw):('Erreur lors de la validation du formulaire' | trad)}}');
</script>