{{ form_start(form, { 'attr': { 'class': 'space-y-2 md:space-y-4 w-full', 'data-action': 'live#action:prevent', 'data-live-action-param': 'save', 'data-model': 'norender|*' } }) }}
{{ form_widget(form.date, {'attr': {'class': 'input-style w-fit ' ~ (form_errors(form.date) ? 'input-error')}}) }}
{{ form_errors(form.date) }}
{{ form_widget(form.label, {'attr': {'class': 'input-style w-full md:w-96 ' ~ (form_errors(form.label) ? 'input-error')}}) }}
{{ form_errors(form.label) }}
{% for subForm in form.diseaseAnalyses %}
{{ form_widget(subForm.analysisType, { attr: { class: 'w-full input-select-style ' ~ (form_errors(subForm.analysisType) ? 'input-error') } }) }}
{{ form_errors(subForm.analysisType) }}
{{ form_widget(subForm.value, { attr: { class: 'w-20 input-style ' ~ (form_errors(subForm.value) ? 'input-error') } }) }}
{{ form_errors(subForm.value) }}
{# Bouton supprimer (géré par LiveCollectionType) #}
{{ form_widget(subForm.vars.button_delete) }}
{% endfor %} {# Bouton ajouter (géré par LiveCollectionType) #}
{{ form_widget(form.diseaseAnalyses.vars.button_add) }}
{% if addNewTypeAnalysis %}

Ajouter un nouveau type d'analyse

{% if errorNewTypeAnalysis %}
{{ errorNewTypeAnalysis }}
{% endif %}
{% endif %}
{{ form_widget(form.remarks, {'attr': {'class': 'input-style w-full ' ~ (form_errors(form.remarks) ? 'input-error')}}) }}
{{ form_errors(form.remarks) }}
{{ form_widget(form.price, {'attr': {'class': 'input-style w-20 ' ~ (form_errors(form.price) ? 'input-error')}}) }}
{{ form_errors(form.price) }}
{# Bouton de sauvegarde #}
{{ form_end(form) }}