From 72c53b8fb410b3ce176b6f3c4b6c357fcae0fbdb Mon Sep 17 00:00:00 2001 From: George Katsikas <giorgakis.katsikas@gmail.com> Date: Tue, 16 Jul 2024 13:01:11 +0300 Subject: [PATCH] add dynsel clear button --- scipost_django/common/templates/htmx/dynsel.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scipost_django/common/templates/htmx/dynsel.html b/scipost_django/common/templates/htmx/dynsel.html index 96a427c52..09dcfd03f 100644 --- a/scipost_django/common/templates/htmx/dynsel.html +++ b/scipost_django/common/templates/htmx/dynsel.html @@ -1,5 +1,13 @@ <div class="hx-dynsel"> <div class="input-query-container"> + <div role="button" + type="button" + hx-get="{% url "common:empty" %}" + hx-swap="outerHTML" + hx-target="next option[selected]"> + <span class="text-body"></span> + </div> + {% include "django/forms/widgets/select.html" %} <input name="q" -- GitLab