{{ form_start(form, { attr: { class: 'needs-validation', novalidate: 'novalidate' } }) }}
{{ form_label(form.title, null, { label_attr: { class: 'form-label fw-semibold' } }) }}
{{ form_widget(form.title, { attr: { class: 'form-control form-control-lg', placeholder: 'Titre de votre annonce' } }) }}
{{ form_label(form.description, null, { label_attr: { class: 'form-label fw-semibold' } }) }}
{{ form_widget(form.description, { attr: { class: 'form-control', rows: 7, placeholder: 'Décrivez l’état, dimensions, accessoires, etc.' } }) }}
{{ form_label(form.price, null, { label_attr: { class: 'form-label fw-semibold' } }) }}
{{ form_widget(form.price, { attr: { class: 'form-control', inputmode: 'decimal' } }) }}
{{ form_label(form.condition, null, { label_attr: { class: 'form-label fw-semibold' } }) }}
{{ form_widget(form.condition, { attr: { class: 'form-select' } }) }}
{{ form_label(form.location, null, { label_attr: { class: 'form-label fw-semibold' } }) }}
{{ form_widget(form.location, { attr: { class: 'form-control', placeholder: 'Ville / zone' } }) }}
{# ====== FOTOS (CollectionType) ====== #}
{% if form.photos is defined %}
Photos
{% for photoForm in form.photos %}
{{ form_row(photoForm.imageFile) }}
{% if photoForm.vars.data and photoForm.vars.data.fileName %}
{% endif %}
{% endfor %}
{% endif %}
{{ form_end(form) }}