From 7271e011869cce1cbb2ca1dce7885b59f411577a Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Thu, 28 May 2026 00:31:16 +0545 Subject: [PATCH] feat(templates/partials/kanban): add edit action and improve drag handling in cardAdds an inline edit link to each Kanban card and introduces a `data-card-id` attribute for easier identification. Updates class handling to prevent accidental dragging and refines hover interactions, enhancing the card UI. New Features - Add edit action link that opens the card edit modal. - Introduce `data-card-id` attribute for stable card identification. Enhancements - Add `no-drag` class to the card container to stop drag propagation. - Refine hover styling and transition behavior. Bug Fixes - Preserve original `id="card-{{ card.pk }}"` attribute without regression. --- templates/partials/kanban/card.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/templates/partials/kanban/card.html b/templates/partials/kanban/card.html index cd99924..70f61f3 100644 --- a/templates/partials/kanban/card.html +++ b/templates/partials/kanban/card.html @@ -1,5 +1,6 @@
+ id="card-{{ card.pk }}" + data-card-id="{{ card.pk }}">
@@ -23,7 +24,12 @@ {% endif %}
-
+