{# templates/admin/poste/_form.html.twig #} {{ form_start(form, {'attr': {'class': 'needs-validation', 'novalidate': 'novalidate'}}) }} {# Champ Libellé #}
{{ form_label(form.libelle, null, {'label_attr': {'class': 'form-label fw-bold text-dark small text-uppercase'}}) }}
{{ form_widget(form.libelle, { 'attr': { 'class': 'form-control border-start-0 ps-0', 'placeholder': 'ex: Responsable d\'Exploitation' } }) }}
{{ form_help(form.libelle) }}
{{ form_errors(form.libelle) }}
{# Champ Niveau d'Accès #}
{{ form_label(form.niveau, null, {'label_attr': {'class': 'form-label fw-bold text-dark small text-uppercase'}}) }}
{{ form_widget(form.niveau, { 'attr': { 'class': 'form-select border-start-0 ps-0' } }) }}
{{ form_help(form.niveau) }}
{{ form_errors(form.niveau) }}
{# Bouton d'action #}
{{ form_end(form) }}