From 7864c39872f1128344c66f92708d8b513459e1e8 Mon Sep 17 00:00:00 2001 From: Arthur Belleville Date: Sun, 17 May 2026 22:20:53 +0200 Subject: [PATCH] =?UTF-8?q?feat(19):=20tablo=20card=20=E2=80=94=20icon+tit?= =?UTF-8?q?le+status=20pill,=20date,=20progress,=20edit+trash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 (1M context) --- backend/templates/tablos.templ | 73 ++++++++++++++++++++-------------- 1 file changed, 43 insertions(+), 30 deletions(-) diff --git a/backend/templates/tablos.templ b/backend/templates/tablos.templ index 2e6fd4d..c263cf6 100644 --- a/backend/templates/tablos.templ +++ b/backend/templates/tablos.templ @@ -125,7 +125,7 @@ templ TabloProjectCard(card TabloCardView, csrfToken string) { >
- +
if card.Tablo.Color.Valid && card.Tablo.Color.String != "" {
@@ -144,38 +144,51 @@ templ TabloProjectCard(card TabloCardView, csrfToken string) {
} -

{ card.Tablo.Title }

-
- -
+

{ card.Tablo.Title }

if card.Tablo.Status == "archived" { - Archivé + Archivé } else { - Actif + 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", - }, - }) -
+
+ +
+ + { card.Tablo.CreatedAt.Time.Format("2 Jan 2006") } +
+ +
+
+ { strconv.Itoa(card.DoneTasks) }/{ strconv.Itoa(card.TotalTasks) } tâches + { strconv.Itoa(card.Progress) }% +
+
+
+
+
+ +
+ + + +
+ @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", + }, + })