From 174ed9c25d50883913656149ed00f53d810e2691 Mon Sep 17 00:00:00 2001 From: gilles Date: Sun, 8 Mar 2026 19:34:39 +0100 Subject: [PATCH] =?UTF-8?q?feat(plantes):=20popup=20vari=C3=A9t=C3=A9=20+?= =?UTF-8?q?=20bouton=20=E2=9E=95=20Vari=C3=A9t=C3=A9=20+=20temp=5Fgerminat?= =?UTF-8?q?ion/temps=5Flevee=5Fj?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Ajoute detailPlantObj (ref) synchronisé dans openDetails/prevVariety/nextVariety/closeDetail - Renomme detailVarieties (ref) en detailPlantGroup pour la navigation par groupe de nom_commun - Ajoute detailVarieties comme computed depuis detailPlantObj.value.varieties - Ajoute refs/fonctions formulaire variété : showFormVariety, editVariety, formVariety, openAddVariety, openEditVariety, closeFormVariety, submitVariety, deleteVariety - Bouton ➕ Variété dans le footer du popup détail - Liste des PlantVariety dans le popup détail (avec édition/suppression et alerte DLUO) - Champs temp_germination et temps_levee_j dans la section caractéristiques - Popup formulaire variété (z-[70]) avec tous les champs Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/views/PlantesView.vue | 203 +++++++++++++++++++++++++++-- 1 file changed, 190 insertions(+), 13 deletions(-) diff --git a/frontend/src/views/PlantesView.vue b/frontend/src/views/PlantesView.vue index 7b83d55..3ca5f5e 100644 --- a/frontend/src/views/PlantesView.vue +++ b/frontend/src/views/PlantesView.vue @@ -85,7 +85,7 @@
-
+
@@ -134,6 +134,14 @@ Mois: {{ detailPlant.plantation_mois }}
+
+ T° germination + {{ detailPlantObj.temp_germination }} +
+
+ Temps de levée + {{ detailPlantObj.temps_levee_j }} +
@@ -203,6 +211,28 @@ + +
+

+ 🌿 Variétés ({{ detailVarieties.length }}) +

+
+
+
+ {{ v.variete || '(sans nom)' }} + 🛒 {{ v.boutique_nom }} + {{ v.prix_achat.toFixed(2) }}€ + ⚠️ DLUO +
+
+ + +
+
+
+
+
@@ -228,6 +258,10 @@
+
@@ -462,6 +496,81 @@ + + +
+
+
+

+ {{ editVariety ? 'Modifier la variété' : '➕ Nouvelle variété' }} +

+ +
+

+ Plante : {{ detailPlantObj?.nom_commun }} +

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +