summaryrefslogtreecommitdiff
path: root/Omni/Jr/Web.hs
diff options
context:
space:
mode:
authorBen Sima <ben@bensima.com>2025-11-29 20:35:09 -0500
committerBen Sima <ben@bensima.com>2025-11-29 20:35:09 -0500
commit926018e989cba4286c98eb2682e51ef32b2ee0c8 (patch)
treed4233bb6efb7d40afb633bec2bb9096c14e26bcf /Omni/Jr/Web.hs
parentec138a6010ec6a1f8d4ae32c4ba5915a9e7942ef (diff)
Fix Cancel button on description edit form
The fix is complete: 1. Changed the Cancel element from `<a href="#">` to `<button type="butt 2. Added button reset styling (transparent background, no border, underl The `<button>` element works better with HTMX because it doesn't have th Task-Id: t-178
Diffstat (limited to 'Omni/Jr/Web.hs')
-rw-r--r--Omni/Jr/Web.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Omni/Jr/Web.hs b/Omni/Jr/Web.hs
index a4fdee1..bed26a6 100644
--- a/Omni/Jr/Web.hs
+++ b/Omni/Jr/Web.hs
@@ -1838,8 +1838,8 @@ instance Lucid.ToHtml DescriptionEditPartial where
Lucid.div_ [Lucid.id_ "description-block", Lucid.class_ "description-block editing"] <| do
Lucid.div_ [Lucid.class_ "description-header"] <| do
Lucid.h3_ (if isEpic then "Design" else "Description")
- Lucid.a_
- [ Lucid.href_ "#",
+ Lucid.button_
+ [ Lucid.type_ "button",
Lucid.class_ "cancel-link",
Lucid.makeAttribute "hx-get" ("/tasks/" <> tid <> "/description/view"),
Lucid.makeAttribute "hx-target" "#description-block",