{# @author: Benjamin AMOUZOU #} {% extends 'exploitation/template-exploitation.html.twig'%} {% block titre_enfant %} Planning hebdomadaire {% endblock %} {% block style %} {% endblock %} {% block contenu_principal_exploitation %}
{% include('template-message.html.twig') %}
Planning hebdomadaire
{# Affichage des journees #}
{% for journee in form.journees %} {% set numeroJournee = loop.index - 1 %}
Journée n° {{ loop.index }}
{{form_label(journee.date,"Date", {'label_attr': {'class': 'col-form-label col-form-label-sm'}})}} *
{{form_widget(journee.date, {'attr': {'class': 'form-control form-control-sm'}})}}
{# Affichage des opérations #} {% for operation in journee.operations %} {% set numeroOperation = loop.index - 1 %}
Opération n° 1
{{form_label(operation.typeOperation,"Type operation", {'label_attr': {'class': 'col-form-label col-form-label-sm'}})}} *
{{form_widget(operation.typeOperation, {'attr': {'class': 'custom-select custom-select-sm'}})}}
{{form_label(operation.heureDebut,"Heure début", {'label_attr': {'class': 'col-form-label col-form-label-sm'}})}} *
{{form_widget(operation.heureDebut, {'attr': {'class': 'form-control form-control-sm px-1'}})}}
{{form_label(operation.heureFin,"Heure fin", {'label_attr': {'class': 'col-form-label col-form-label-sm'}})}} *
{{form_widget(operation.heureFin, {'attr': {'class': 'form-control form-control-sm'}})}}
{{form_label(operation.statut,"Statut", {'label_attr': {'class': 'col-form-label col-form-label-sm'}})}}
{{form_widget(operation.statut, {'attr': {'class': 'custom-select custom-select-sm'}})}}
{{form_label(operation.nbreTour, "Nombre de tour", {'label_attr': {'class': 'col-form-label col-form-label-sm'}})}}
{{form_widget(operation.nbreTour, {'attr': {'class': 'form-control form-control-sm'}})}}
{{form_label(operation.commentaire,"Commentaire", {'label_attr': {'class': 'col-form-label col-form-label-sm'}})}}
{{form_widget(operation.commentaire, {'attr': {'class': 'form-control form-control-sm'}})}}
{# Affichage des fournisseurs formels et informels #}
{#
#} {# #} {#
#}
{% for fournisseur in operation.fournisseurs %}
{{form_widget(fournisseur, {'attr': {'class': 'custom-control-input'}})}} {{form_label(fournisseur, "", {'label_attr': {'class': 'custom-control-label col-form-label col-form-label-sm'}})}}
{% endfor %}
{# {% if operation.fournisseurs is defined and operation %} #}
{#
#} {# #} {#
#}
{% for fournisseur in operation.informels %}
{{form_widget(fournisseur, {'attr': {'class': 'custom-control-input'}})}} {{form_label(fournisseur, "", {'label_attr': {'class': 'custom-control-label col-form-label col-form-label-sm'}})}}
{% endfor %}
{% endfor %}
{% endfor %}
{{form_row(form._token)}}
  Annuler
{% endblock %} {% block script %} {% endblock %}