{% extends '@ajax-layout/layout.twig' %}

{% block body %}
<div class="modal-body clearfix display_table">
	<span class="icone-modal information"></span>
    <div class="display_cell">    
    	{{ message |raw  }}
    </div>
</div>

<div class="modal-footer">
    {% if uriRetour!='' %}
        <a data-cy="modeleClose" href="{{ uriRetour }}"><button type="button" class="button principal">{{ 'Fermer'|trad }}</button></a>
    {% elseif onclick %}
        <a data-cy="modeleClose" type="button" class="button principal button_right" onclick="{{ onclick }}">{{ 'Fermer' | trad }}</a>
    {% else %}
        {% if postRetour and postRetour!=''  %}
        <a data-cy="modeleClose" onClick="redirectJSWithPost('{{ path(pathRetour) }}', {{ postRetour }});" ><button type="button" class="button secondaire button_right" data-dismiss="modal">{{ 'Fermer'|trad }}</button></a>
        {% else %}
        	<button data-cy="modeleClose" type="button" class="button secondaire button_right" data-dismiss="modal" onClick='desactivePopup();'>{{ 'Fermer'|trad }}</button></a>
        {% endif %}
    {% endif %}
</div>
<script>
    $("#modal-title").html('{{ titrePopup? (titrePopup | raw):('Informations' | trad)}}');

    $( document ).ready(function() {
        $('.modal-header').addClass('popup_informative');
    });
</script>
{% endblock %}