From f043536988705492d75faa5b0d2c1fe7cf4cea64 Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Thu, 26 Sep 2024 12:43:35 -0300 Subject: [PATCH] feat: double click to edit transaction In the future this should be used to view, not edit --- app/templates/transactions/fragments/item.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/templates/transactions/fragments/item.html b/app/templates/transactions/fragments/item.html index afcf9d6..6ed4f47 100644 --- a/app/templates/transactions/fragments/item.html +++ b/app/templates/transactions/fragments/item.html @@ -3,8 +3,11 @@
+ hx-trigger="dblclick" + hx-get="{% url 'transaction_edit' transaction_id=transaction.id %}" + hx-target="#generic-offcanvas" + _="on mouseover remove .tw-invisible from the first .transaction-actions in me end + on mouseout add .tw-invisible to the first .transaction-actions in me end">