Masque le choix d'icône à la création d'un article
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 <noreply@anthropic.com>
This commit is contained in:
1 parent
a34e86dea6
commit
444319f9a5
1 file changed
+6
@@ -184,6 +184,10 @@ fn ItemForm(editor: ItemEditor, list_id: i64) -> impl IntoView {
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
// New items keep the basket: the icon can be changed when editing.
|
||||
{item_id
|
||||
.map(|_| {
|
||||
view! {
|
||||
<fieldset class="flex flex-col gap-1.5">
|
||||
<legend class="mb-1.5 font-mono text-xs tracking-[0.2em] text-ink/60 uppercase">
|
||||
"Icône"
|
||||
@@ -217,6 +221,8 @@ fn ItemForm(editor: ItemEditor, list_id: i64) -> impl IntoView {
|
||||
.collect_view()}
|
||||
</div>
|
||||
</fieldset>
|
||||
}
|
||||
})}
|
||||
|
||||
<div class="flex gap-3">
|
||||
{item_id
|
||||
|
||||
Reference in new issue
Block a user