{% extends 'base.html.twig' %} {% block title %}Visite Médicale{% endblock %} {% block body %}

Modifier Visite Médicale {{ salarie.titre }} {{ salarie.nom }} {{ salarie.prenom }}

{{ form_start(form) }} {% if not form.vars.valid %}
    {% for child in form.children %} {% for error in child.vars.errors %}
  • {{ error.message }}
  • {% endfor %} {% endfor %}
{% endif %}
Date de la dernière visite médicale effectuée: {% if visite.etat == 'fait' %} {{ visite.dateDerniere|date('d/m/Y') }} {% endif %}
{{ form_label(form.type, null, {'label_attr': {'class': 'form-label'}}) }} {{ form_widget(form.type, {'attr': {'class': 'form-select'}}) }}
{{ form_label(form.rendezVous, null, {'label_attr': {'class': 'form-label'}}) }} {{ form_widget(form.rendezVous, {'attr': {'class': 'form-select'}}) }}
{{ form_label(form.dateRendezVous, null, {'label_attr': {'class': 'form-label', 'style':'color:transparent'}}) }} {{ form_widget(form.dateRendezVous, {'attr': {'class': 'form-control', 'type': 'date', 'name': 'dateRendezVous'}}) }}
{{ form_label(form.etat, null, {'label_attr': {'class': 'form-label'}}) }} {{ form_widget(form.etat, {'attr': {'class': 'form-select'}}) }}
{{ form_label(form.commentaire, null, {'label_attr': {'class': 'form-label'}}) }} {{ form_widget(form.commentaire, {'attr': {'class': 'form-control'}}) }}
{{ form_end(form) }}
{% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}