{% extends 'base.html.twig' %} {% block title %}BANC - James Gestion de Production{% endblock %} {% block body %}

Ajouter / Modifier un Banc

{{ form_start(form) }} {{ form_errors(form) }} {# Affiche les erreurs générales du formulaire #}
{{ form_row(form.designation, {'attr': {'class': 'form-control'}}) }}
{{ form_row(form.longueurMax, {'attr': {'class': 'form-control'}}) }}
{{ form_row(form.largeurMax, {'attr': {'class': 'form-control'}}) }}
{{ form_row(form.epaisseurMax, {'attr': {'class': 'form-control'}}) }}
{{ form_row(form.nombreCouche, {'attr': {'class': 'form-control'}}) }}
{# Custom Switch pour le champ ctf #}
{{ form_widget(form.ctf, { 'attr': { 'class': 'form-check-input', 'role': 'switch', 'id': 'banc_ctf' } }) }}
{# Custom Switch pour le champ epure #}
{{ form_widget(form.epure, { 'attr': { 'class': 'form-check-input', 'role': 'switch', 'id': 'banc_epure' } }) }}
{# Custom Switch pour le champ hydraulique #}
{{ form_widget(form.hydraulique, { 'attr': { 'class': 'form-check-input', 'role': 'switch', 'id': 'banc_hydraulique' } }) }}
{# Custom Switch pour le champ droit #}
{{ form_widget(form.droit, { 'attr': { 'class': 'form-check-input', 'role': 'switch', 'id': 'banc_droit' } }) }}
{{ form_row(form.tempsCollage, {'attr': {'class': 'form-control'}}) }}
{{ form_row(form.tempsSerrage, {'attr': {'class': 'form-control'}}) }}
{{ form_row(form.rangee, {'attr': {'class': 'form-control'}}) }}
       Retour {{ form_end(form) }}
{% endblock %}