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

{% block title %}{{ title }} | SALSABIL Madrassas{% endblock %}

{% block content %}
    <div class="admin-page-stack">
        <section class="admin-page-header">
            <div><p class="admin-eyebrow">FINANCES</p><h1 class="admin-page-title">{{ title }}</h1><p>Les listes sont limitées à {{ ecole.nom }}.</p></div>
            <a class="admin-btn admin-btn-light" href="{{ path('school_finance_regle_index') }}">Retour</a>
        </section>
        {{ form_start(form, {attr: {class: 'admin-form'}}) }}
            <section class="admin-card admin-form-section">
                <div class="admin-card-head"><div><h2>Portée et montant</h2><p>Plus la règle est précise, plus elle est prioritaire.</p></div></div>
                <div class="admin-form-three-cols">{{ form_row(form.typeFrais) }}{{ form_row(form.anneeScolaire) }}{{ form_row(form.montant) }}</div>
                <div class="admin-form-three-cols">{{ form_row(form.section) }}{{ form_row(form.classe) }}{{ form_row(form.periodicite) }}</div>
                <div class="admin-form-three-cols">{{ form_row(form.moisDebut) }}{{ form_row(form.nombreEcheances) }}{{ form_row(form.actif) }}</div>
                {{ form_row(form.description) }}
            </section>
            <div class="admin-form-actions admin-form-actions-sticky">
                <a class="btn admin-btn admin-btn-secondary" href="{{ path('school_finance_regle_index') }}">Annuler</a>
                <button class="btn admin-btn admin-btn-primary" type="submit">Enregistrer</button>
            </div>
        {{ form_end(form) }}
    </div>
{% endblock %}
