From 444319f9a57ef4e76b65f6aceef482acd26308fe Mon Sep 17 00:00:00 2001 From: Romulus21 Date: Sun, 1 Nov 2026 16:14:41 +0100 Subject: [PATCH] =?UTF-8?q?Masque=20le=20choix=20d'ic=C3=B4ne=20=C3=A0=20l?= =?UTF-8?q?a=20cr=C3=A9ation=20d'un=20article?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Un nouvel article prend le panier ; l'icône reste modifiable depuis l'éditeur de l'article. Closes #4 Co-Authored-By: Claude Opus 5.5 --- src/app/sheets.rs | 72 +++++++++++++++++++++++++---------------------- 1 file changed, 39 insertions(+), 33 deletions(-) diff --git a/src/app/sheets.rs b/src/app/sheets.rs index 0efafb0..4b3c671 100644 --- a/src/app/sheets.rs +++ b/src/app/sheets.rs @@ -184,39 +184,45 @@ fn ItemForm(editor: ItemEditor, list_id: i64) -> impl IntoView { -
- - "Icône" - -
- {Icon::ALL - .iter() - .map(|&i| { - view! { - - } - }) - .collect_view()} -
-
+ // New items keep the basket: the icon can be changed when editing. + {item_id + .map(|_| { + view! { +
+ + "Icône" + +
+ {Icon::ALL + .iter() + .map(|&i| { + view! { + + } + }) + .collect_view()} +
+
+ } + })}
{item_id