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