{% extends 'Front/Render/Modal/layout.html.twig' %}

{% set modalClass = 'itdlc cancel' %}
{% set headerClass = 'bg-tangerine' %}
{% set bodyClass = 'text-center' %}
{% set footerClass = '' %}

{% block header %}
    <div class="text-center">
        <h3 class="item-title h3 text-no-transform text-normal text-center">
            {{ ('sentence.modal.itdlc.cancel.demande.title.' ~ app.user.type)|trans({}, 'sentence')|raw }}  
        </h3>
    </div>
{% endblock %}

{% block body %}
    <p>
        {{ ('sentence.modal.itdlc.cancel.demande.description.' ~ app.user.type)|trans({}, 'sentence')|raw }}
    </p>
{% endblock %}

{% block footer %}
    <div class="text-center">
        <button data-fancybox-close class="btn btn-lg" title="Fermer">Non</button>
        <button class="btn btn-lg modal-cta-ajax" title="Annuler la demande" data-id="{{ demande.id }}">Oui</button>
    </div>
    <script>
        var modal_cta_ajax_url = '{{ path('cancel_demande_itdlc', { demande : demande.id }) }}';
        var modal_cta_ajax_data = {};
    </script>
{% endblock %}