mirror of
https://github.com/ae-utbm/sith.git
synced 2026-09-09 14:04:36 +00:00
Fix moderation view
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
{% if is_fragment %}
|
{% if is_fragment %}
|
||||||
hx-post="{{ action }}"
|
hx-post="{{ action }}"
|
||||||
hx-target="#content"
|
hx-target="#content"
|
||||||
hx-swap="outerHtml"
|
hx-swap="innerHTML"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
>{% trans %}Confirm{% endtrans %}</button>
|
>{% trans %}Confirm{% endtrans %}</button>
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
{% if is_fragment %}
|
{% if is_fragment %}
|
||||||
hx-get="{{ previous }}"
|
hx-get="{{ previous }}"
|
||||||
hx-target="#content"
|
hx-target="#content"
|
||||||
hx-swap="outerHtml"
|
hx-swap="innerHTML"
|
||||||
{% else %}
|
{% else %}
|
||||||
action="window.history.back()"
|
action="window.history.back()"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -39,13 +39,13 @@
|
|||||||
<p><button
|
<p><button
|
||||||
hx-get="{{ url('core:file_moderate', file_id=f.id) }}"
|
hx-get="{{ url('core:file_moderate', file_id=f.id) }}"
|
||||||
hx-target="#content"
|
hx-target="#content"
|
||||||
hx-swap="outerHtml"
|
hx-swap="innerHTML"
|
||||||
>{% trans %}Moderate{% endtrans %}</button> -
|
>{% trans %}Moderate{% endtrans %}</button> -
|
||||||
{% set current_page = url('core:file_moderation') + "?page=" + page_obj.number | string %}
|
{% set current_page = url('core:file_moderation') + "?page=" + page_obj.number | string %}
|
||||||
<button
|
<button
|
||||||
hx-get="{{ url('core:file_delete', file_id=f.id) }}?next={{ current_page | urlencode }}&previous={{ current_page | urlencode }}"
|
hx-get="{{ url('core:file_delete', file_id=f.id) }}?next={{ current_page | urlencode }}&previous={{ current_page | urlencode }}"
|
||||||
hx-target="#file-{{ loop.index }}"
|
hx-target="#file-{{ loop.index }}"
|
||||||
hx-swap="outerHtml"
|
hx-swap="innerHTML"
|
||||||
>{% trans %}Delete{% endtrans %}</button></p>
|
>{% trans %}Delete{% endtrans %}</button></p>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user