{% extends 'base.html.twig' %} {% block title %}Accepter Absences{% endblock %} {% block body %}

Compléter les informations d'absences pour ce salarié

{{ form_start(form) }} {% if not form.vars.valid %}
    {% for child in form.children %} {% for error in child.vars.errors %}
  • {{ error.message }}
  • {% endfor %} {% endfor %}
{% endif %}
{{ form_label(form.salarie, null, {'label_attr': {'class': 'form-label'}}) }} {{ form_widget(form.salarie, {'attr': {'class': 'form-select', 'id': 'salarie_field'}}) }}
{{ form_label(form.libelle, null, {'label_attr': {'class': 'form-label'}}) }} {{ form_widget(form.libelle, {'attr': {'class': 'form-control'}}) }}
{{ form_label(form.type, null, {'label_attr': {'class': 'form-label'}}) }} {{ form_widget(form.type, {'attr': {'class': 'form-select'}, 'id': 'typeAbsence' }) }}
{{ form_label(form.dateDebut, '', {'label_attr': {'class': 'form-label'}}) }} {{ form_widget(form.dateDebut, {'attr': {'class': 'form-control', 'type': 'date', 'name': 'dateDebut'}}) }}
{{ form_label(form.dateFin, '', {'label_attr': {'class': 'form-label'}}) }} {{ form_widget(form.dateFin, {'attr': {'class': 'form-control', 'type': 'date', 'name': 'dateFin'}}) }}
{{ form_end(form) }}
{% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}