{% import '_form_macros.html.twig' as f %} {{ form_start(form, {attr: { 'data-controller': 'expense-form collection', 'novalidate': 'novalidate', 'class': 'rounded-2xl bg-surface border border-line p-5' }}) }} {{ f.errors_summary(form) }} {{ f.section("L'essentiel") }}
{{ f.field(form.description, 2) }} {{ f.field(form.totalAmount) }} {{ f.field(form.date) }} {{ f.field(form.paidBy) }}
{{ f.section('Rattachement', 'Devis concerné, intervenant et source de financement.') }}
{{ f.field(form.quote, 2) }} {{ f.field(form.company) }} {{ f.field(form.financing) }}
{{ f.toggle(form.advancedMode) }}
{# Advanced section #}
{{ f.field(form.paidAmount) }}

Répartir le montant total entre un ou plusieurs devis.

{% for v in form.allocations %}
{{ form_widget(v) }}
{% endfor %}
{{ form_errors(form.allocations, {attr: {class: 'form-error'}}) }}
{% do form.allocations.setRendered() %}
Plus d'options
{{ f.field(form.dueDate) }} {{ f.field(form.attachmentFile) }}
{{ f.toggle(form.terrain) }}
{{ f.field(form.category) }} {{ f.field(form.notes, 2) }}
{{ f.actions(path('app_expense_index')) }} {{ form_end(form) }}