{# templates/inscription/ajouter.html.twig #} {% extends 'base.html.twig' %} {% block body %}

Créer une nouvelle inscription

{{ form_start(form, {'attr': {'class': 'needs-validation', 'novalidate': 'novalidate'}}) }}
{{ form_label(form.dateInscription, 'Date d\'inscription', {'label_attr': {'class': 'form-label'}}) }} {{ form_widget(form.dateInscription, {'attr': {'class': 'form-control'}}) }} {{ form_errors(form.dateInscription) }}
{{ form_label(form.cours, 'Cours', {'label_attr': {'class': 'form-label'}}) }} {{ form_widget(form.cours, {'attr': {'class': 'form-control'}}) }} {{ form_errors(form.cours) }}
{{ form_label(form.eleve, 'Élève', {'label_attr': {'class': 'form-label'}}) }} {{ form_widget(form.eleve, {'attr': {'class': 'form-control'}}) }} {{ form_errors(form.eleve) }}
{{ form_widget(form.enregistrer, {'attr': {'class': 'btn btn-primary'}}) }}
{{ form_end(form) }}
{% endblock %}