{{ 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|*' } }) }} {# Lieu de pension #}
{{ form_widget(form.stable, { 'attr': { 'class': 'input-style w-full ' ~ (form_errors(form.stable) ? 'input-error') } }) }}
{{ form_errors(form.stable) }}
{# Première ligne : période + type #}
{{ form_widget(form.periode, { 'attr': { 'class': 'input-style w-fit ' ~ (form_errors(form.periode) ? 'input-error') } }) }}
{{ form_errors(form.periode) }}
{{ form_widget(form.type, { 'attr': { 'class': 'input-style w-full ' ~ (form_errors(form.type) ? 'input-error') } }) }}
{{ form_errors(form.type) }}
{# Deuxième ligne : prix + date paiement + type paiement #}
{{ form_widget(form.price, { 'attr': { 'class': 'input-style w-20 ' ~ (form_errors(form.price) ? 'input-error') } }) }}
{{ form_errors(form.price) }}
{{ form_widget(form.paymentDate, { 'attr': { 'class': 'input-style w-fit ' ~ (form_errors(form.paymentDate) ? 'input-error') } }) }}
{{ form_errors(form.paymentDate) }}
{{ form_widget(form.paymentType, { 'attr': { 'data-view-cheque-number-target': 'type', 'class': 'input-select-style ' ~ (form_errors(form.paymentType) ? 'input-error') } }) }}
{{ form_errors(form.paymentType) }}
{# Bouton #}
{{ form_end(form) }}