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

{% block body %}

<div class="modal-body clearfix display_table">
	{% if iconePopup == 'information' %}
		<span class="icone-modal information"></span>
	{% else %}
		<span class="icone-modal interrogation"></span>
	{% endif %}

    <div class="display_cell">
    	{{ message }}
  	</div>
</div>
<div class="modal-footer">
	<a href='#' onClick="redirectJSWithPost('{{ pathURL }}', {{ postURL? postURL:'' }} );">
		<button type="button" class="button {% if cancel %}secondaire{% else %}principal{% endif %}">
			{% if cancel %}
				{{ 'Annuler' | trad}}
			{% else %}
				{{ 'Confirmer' | trad}}
			{% endif %}
		</button>
	</a>
</div>

<script>
$( ".modal-close" ).click(function() {
	redirectJSWithPost('{{ pathURL }}', '{{ postURL? postURL:'' }}' );
});
{% if titre %}
    $("#modal-title").html('{{ titre }}');
{% endif %}

</script>


{% endblock %}