From 90d43f98bcf548f72218678df7f1bcb9ee616b7a Mon Sep 17 00:00:00 2001 From: Arthur Belleville Date: Sun, 17 May 2026 22:21:49 +0200 Subject: [PATCH] fix(19): move edit+trash to same line as status pill Co-Authored-By: Claude Sonnet 4.6 (1M context) --- backend/templates/tablos.templ | 53 ++++++++++++++++------------------ 1 file changed, 25 insertions(+), 28 deletions(-) diff --git a/backend/templates/tablos.templ b/backend/templates/tablos.templ index c263cf6..1c6450e 100644 --- a/backend/templates/tablos.templ +++ b/backend/templates/tablos.templ @@ -125,8 +125,8 @@ templ TabloProjectCard(card TabloCardView, csrfToken string) { >
- -
+ +
if card.Tablo.Color.Valid && card.Tablo.Color.String != "" {
@@ -144,12 +144,34 @@ templ TabloProjectCard(card TabloCardView, csrfToken string) {
} -

{ card.Tablo.Title }

+

{ card.Tablo.Title }

if card.Tablo.Status == "archived" { Archivé } else { Actif } + + + +
+ @ui.IconButton(ui.IconButtonProps{ + Label: "Delete tablo", + Icon: "trash", + Variant: ui.IconButtonVariantDanger, + Tone: ui.IconButtonToneGhost, + Type: "button", + Attrs: templ.Attributes{ + "hx-get": "/tablos/" + card.Tablo.ID.String() + "/delete-confirm", + "hx-target": "closest .tablo-delete-zone", + "hx-swap": "outerHTML", + }, + }) +
@@ -166,31 +188,6 @@ templ TabloProjectCard(card TabloCardView, csrfToken string) {
- -
- - - -
- @ui.IconButton(ui.IconButtonProps{ - Label: "Delete tablo", - Icon: "trash", - Variant: ui.IconButtonVariantDanger, - Tone: ui.IconButtonToneGhost, - Type: "button", - Attrs: templ.Attributes{ - "hx-get": "/tablos/" + card.Tablo.ID.String() + "/delete-confirm", - "hx-target": "closest .tablo-delete-zone", - "hx-swap": "outerHTML", - }, - }) -
-