Merge pull request #1481 from ae-utbm/htmx4

Fix bad hx-swap on club list and moderation view
This commit is contained in:
klmp200 authored and GitHub committed 2026-09-09 22:10:25 +02:00
commit 8de4d9a4d0
4 files changed
+16 -10

No files matched your search

@@ -31,7 +31,7 @@
{% if is_fragment %}
hx-post="{{ action }}"
hx-target="#content"
hx-swap="outerHtml"
hx-swap="innerHTML"
{% endif %}
>{% trans %}Confirm{% endtrans %}</button>
@@ -39,7 +39,7 @@
{% if is_fragment %}
hx-get="{{ previous }}"
hx-target="#content"
hx-swap="outerHtml"
hx-swap="innerHTML"
{% else %}
action="window.history.back()"
{% endif %}
+2 -2
View File
@@ -39,13 +39,13 @@
<p><button
hx-get="{{ url('core:file_moderate', file_id=f.id) }}"
hx-target="#content"
hx-swap="outerHtml"
hx-swap="innerHTML"
>{% trans %}Moderate{% endtrans %}</button> -
{% set current_page = url('core:file_moderation') + "?page=" + page_obj.number | string %}
<button
hx-get="{{ url('core:file_delete', file_id=f.id) }}?next={{ current_page | urlencode }}&previous={{ current_page | urlencode }}"
hx-target="#file-{{ loop.index }}"
hx-swap="outerHtml"
hx-swap="innerHTML"
>{% trans %}Delete{% endtrans %}</button></p>
</div>
{% endfor %}