{{ form_start(form) }}
{{ form_label(form.name, 'Nom du produit:', {'label_attr': {'class': 'text-gray-700 text-lg font-medium'}}) }} {{ form_widget(form.name, {'attr': {'class': 'block w-full mt-1 py-2 px-3 border border-gray-300 rounded-md shadow-sm focus:ring-rose-500 focus:border-rose-500'}}) }} {{ form_errors(form.name) }}
{{ form_label(form.description, 'Description :', {'label_attr': {'class': 'text-gray-700 text-lg font-medium'}}) }} {{ form_widget(form.description, {'attr': {'class': 'block w-full mt-1 py-2 px-3 border border-gray-300 rounded-md shadow-sm focus:ring-rose-500 focus:border-rose-500'}}) }} {{ form_errors(form.description) }}
{{ form_label(form.availability, 'Disponibilité :', {'label_attr': {'class': 'text-gray-700 text-lg font-medium'}}) }} {{ form_widget(form.availability, {'attr': {'class': 'block w-full mt-1 py-2 px-3 border border-gray-300 rounded-md shadow-sm focus:ring-rose-500 focus:border-rose-500'}}) }} {{ form_errors(form.availability) }}
{{ form_label(form.stock, 'Stock des ventes :', {'label_attr': {'class': 'text-gray-700 text-lg font-medium'}}) }} {{ form_widget(form.stock, {'attr': {'class': 'block w-full mt-1 py-2 px-3 border border-gray-300 rounded-md shadow-sm focus:ring-rose-500 focus:border-rose-500'}}) }} {{ form_errors(form.stock) }}
{{ form_label(form.price, 'Prix de vente :', {'label_attr': {'class': 'text-gray-700 text-lg font-medium'}}) }} {{ form_widget(form.price, {'attr': {'class': 'block w-full mt-1 py-2 px-3 border border-gray-300 rounded-md shadow-sm focus:ring-rose-500 focus:border-rose-500'}}) }} {{ form_errors(form.price) }}
{{ form_label(form.rentalStock, 'Stock des locations :', {'label_attr': {'class': 'text-gray-700 text-lg font-medium'}}) }} {{ form_widget(form.rentalStock, {'attr': {'class': 'block w-full mt-1 py-2 px-3 border border-gray-300 rounded-md shadow-sm focus:ring-rose-500 focus:border-rose-500'}}) }} {{ form_errors(form.rentalStock) }}
{{ form_label(form.rentalPrice, 'Prix de location :', {'label_attr': {'class': 'text-gray-700 text-lg font-medium'}}) }} {{ form_widget(form.rentalPrice, {'attr': {'class': 'block w-full mt-1 py-2 px-3 border border-gray-300 rounded-md shadow-sm focus:ring-rose-500 focus:border-rose-500'}}) }} {{ form_errors(form.rentalPrice) }}
{{ form_label(form.topProduct, 'Produit vedette :', {'label_attr': {'class': 'text-gray-700 text-lg font-medium'}}) }} {{ form_widget(form.topProduct, {'attr': {'class': 'ml-3 h-4 w-4 text-rose-600 border-gray-300 rounded focus:ring-rose-500'}}) }} {{ form_errors(form.topProduct) }}
{{ form_label(form.category, 'Catégorie :', {'label_attr': {'class': 'text-gray-700 text-lg font-medium'}}) }} {{ form_widget(form.category, {'attr': {'class': 'block w-full mt-1 py-2 px-3 border border-gray-300 rounded-md shadow-sm focus:ring-rose-500 focus:border-rose-500'}}) }} {{ form_errors(form.category) }}
{% for key, imageForm in form.image %}

Image {{ key + 1 }}

{{ form_widget(imageForm, { 'attr': {'class': 'form-control-file my-2 text-sm lg:text-base', 'data-key': key + 1 } }) }}
{% endfor %}
{{ form_end(form) }}