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

<form
	action="{{ action }}"
	onsubmit="return ajaxSubmit(event)"
	data-onsuccess-goto="{{ continueTo }}"
>
	<div class="bs-row flex-y-center">
		<span class="bs-col-auto icone-modal interrogation mr-base"></span>
		<p class="bs-col">{{ message | raw }}</p>
	</div>

	<div class="modal-footer text-right">
        {# <a href='{{ returnPath }}' redirectJSWithPost('{{ returnPath }}', {{ returnPost? returnPost:'' }} );> #}
        <a href='{{ returnPath }}'>
            <button type="button" class="button secondaire">
                {{- labelNon | default('Non' | trad) -}}
            </button>
        </a>
        <a href='{{ continuePath }}'>
            <button type="button" class="button principal">
                {{- labelOui | default('Oui' | trad) -}}
            </button>
        </a>
	</div>
</form>
<script>
	$("#modal-title").html('{{ titrePopup ? (titrePopup|e('js')|raw) : ('Erreur'| trad)}}');
    $("#modal-content").removeClass('modal_small');
    $("#modal-content").addClass('modal_large');
</script>
{% endblock %}
