From af8b4fa38f89ea5de510ba346fc99fc98916f41a Mon Sep 17 00:00:00 2001 From: Arthur Belleville Date: Sun, 17 May 2026 22:18:52 +0200 Subject: [PATCH] fix(19): status badge and edit/trash on same line Co-Authored-By: Claude Sonnet 4.6 (1M context) --- backend/templates/tablos.templ | 51 +++++++++++++++++----------------- 1 file changed, 25 insertions(+), 26 deletions(-) diff --git a/backend/templates/tablos.templ b/backend/templates/tablos.templ index 7bdf796..2e6fd4d 100644 --- a/backend/templates/tablos.templ +++ b/backend/templates/tablos.templ @@ -146,37 +146,36 @@ templ TabloProjectCard(card TabloCardView, csrfToken string) { }

{ 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", - }, - }) +
+ + + +
+ @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", + }, + }) +