{% extends "/layout/master.html.twig" %} {% block title %}📂 NotiFile - Ajouter/Modifier{% endblock %} {% block body %}

{{ file.id is defined ? '✏️ Modifier un Document' : '➕ Ajouter un Document' }}

Voir la liste {% if file.id is defined %} Ajouter un nouveau {% endif %}
{{ form_start(form, { 'attr': {'class': 'needs-validation'} }) }}
📄 Informations Générales
{{ form_label(form.name) }} {{ form_widget(form.name, { 'attr': {'class': 'form-control'} }) }}
{{ form_label(form.expirationDate) }} {{ form_widget(form.expirationDate, { 'attr': {'class': 'form-control', 'type': 'date'} }) }}
{{ form_label(form.priority) }} {{ form_widget(form.priority, { 'attr': {'class': 'form-select'} }) }}
📧 Contact & Fichier
{{ form_label(form.email) }} {{ form_widget(form.email, { 'attr': {'class': 'form-control'} }) }}
{{ form_label(form.file) }} {{ form_widget(form.file, { 'attr': {'class': 'form-control'} }) }}
⏰ Rappels & Statut
{{ form_label(form.reminderBeforeDays) }} {{ form_widget(form.reminderBeforeDays, { 'attr': {'class': 'form-control'} }) }}
{{ form_label(form.reminderAfterDays) }} {{ form_widget(form.reminderAfterDays, { 'attr': {'class': 'form-control'} }) }}
{{ form_label(form.status) }} {{ form_widget(form.status, { 'attr': {'class': 'form-select'} }) }}
📝 Notes
{{ form_label(form.notes) }} {{ form_widget(form.notes, { 'attr': {'class': 'form-control'} }) }}
✍️ Description
{{ form_label(form.description) }} {{ form_widget(form.description, { 'attr': {'class': 'form-control', 'rows': '4'} }) }}
{{ form_end(form) }}
{% endblock %}