{% 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>Le type sera automatiquement lié à {{ ecole.nom }}.</p></div>
            <a class="admin-btn admin-btn-light" href="{{ path('school_finance_type_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>Informations du frais</h2><p>Code, périodicité et montant indicatif.</p></div></div>
                <div class="admin-form-three-cols">{{ form_row(form.code) }}{{ form_row(form.libelle) }}{{ form_row(form.nature) }}</div>
                <div class="admin-form-three-cols">{{ form_row(form.periodicite) }}{{ form_row(form.montantDefaut) }}{{ form_row(form.ordre) }}</div>
                {{ form_row(form.description) }}
                {{ form_row(form.actif) }}
            </section>
            <div class="admin-form-actions admin-form-actions-sticky">
                <a class="btn admin-btn admin-btn-secondary" href="{{ path('school_finance_type_index') }}">Annuler</a>
                <button class="btn admin-btn admin-btn-primary" type="submit">Enregistrer</button>
            </div>
        {{ form_end(form) }}
    </div>
{% endblock %}
