{% 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.operation.title.' ~ app.user.type)|trans({}, 'sentence')|raw }}
        </h3>
    </div>
{% endblock %}

{% block body %}
    <p>
        {{ ('sentence.modal.itdlc.cancel.operation.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 visite" data-id="{{ ope.id }}"  data-type="{{ app.user.type }}">Oui</button>
    </div>
    <script>
        var modal_cta_ajax_url = '{{ path('cancel_operation_itdlc', { ope : ope.id, type : app.user.type }) }}';
        var modal_cta_ajax_data = {};
    </script>
{% endblock %}