{% extends 'school/base.html.twig' %}
{% form_theme form 'bootstrap_5_layout.html.twig' %}

{% block title %}Rejeter la demande | SALSABIL Madrassas{% endblock %}

{% block content %}
    <div class="admin-page-stack">
        <section class="admin-page-header">
            <div>
                <p class="admin-eyebrow">{{ inscription.numeroDossier }}</p>
                <h1 class="admin-page-title">Rejeter la demande</h1>
                <p>Le motif pourra être envoyé au candidat par WhatsApp si un numéro est disponible.</p>
            </div>
            <a class="admin-btn admin-btn-light" href="{{ path('school_inscription_show', {id: inscription.id}) }}">Retour au dossier</a>
        </section>

        {{ form_start(form, {attr: {class: 'admin-form'}}) }}
            <section class="admin-card admin-form-section">
                {{ form_row(form.motifRejet) }}
            </section>
            <div class="admin-form-actions admin-form-actions-sticky">
                <a class="btn admin-btn admin-btn-secondary" href="{{ path('school_inscription_show', {id: inscription.id}) }}">Annuler</a>
                <button class="btn admin-btn admin-btn-primary" type="submit">Confirmer le rejet</button>
            </div>
        {{ form_end(form) }}
    </div>
{% endblock %}
