feat(Product): Ajoute description et quantité aux produits, et formulaire associé.
```
This commit is contained in:
Serreau Jovann
2026-01-21 14:38:16 +01:00
parent e3c42a7aa4
commit 2afd6e6be8
8 changed files with 170 additions and 7 deletions

View File

@@ -73,6 +73,21 @@
{{ form_widget(form.ref, {'attr': {'placeholder': 'REF-000', 'class': 'w-full bg-slate-900/50 border-white/5 rounded-2xl text-white font-mono focus:ring-blue-500/20 focus:border-blue-500 transition-all py-3.5 px-5'}}) }}
</div>
</div>
{# À placer juste après le bloc Référence Interne #}
<div class="md:col-span-2 mt-6">
{{ form_label(form.description, 'Description détaillée', {'label_attr': {'class': 'text-[10px] font-black text-slate-500 uppercase tracking-[0.2em] ml-1 mb-2 block'}}) }}
{{ form_widget(form.description, {
'attr': {
'class': 'w-full bg-slate-900/50 border-white/5 rounded-2xl text-white focus:ring-blue-500/20 focus:border-blue-500 transition-all py-3.5 px-5 min-h-[150px]',
'placeholder': 'Décrivez les dimensions, la capacité, les points forts...'
}
}) }}
{% if form_errors(form.description) %}
<div class="text-rose-500 text-[10px] font-bold mt-2 ml-2 uppercase tracking-widest">
{{ form_errors(form.description) }}
</div>
{% endif %}
</div>
</div>
</div>