mirror of
https://github.com/ae-utbm/sith.git
synced 2026-09-09 14:04:36 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
35a55ff95a
|
||
|
|
00cae33a33
|
||
|
|
4bfcb6a267
|
@@ -15,9 +15,6 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% extends "core/base.jinja" %}
|
{% extends "core/base.jinja" %}
|
||||||
{% block additional_css %}
|
|
||||||
<link rel="stylesheet" href="{{ static("club/list.scss") }}">
|
|
||||||
{% endblock %}
|
|
||||||
{% block description -%}
|
{% block description -%}
|
||||||
{% trans %}The list of all clubs existing at UTBM.{% endtrans %}
|
{% trans %}The list of all clubs existing at UTBM.{% endtrans %}
|
||||||
{%- endblock %}
|
{%- endblock %}
|
||||||
@@ -26,6 +23,12 @@
|
|||||||
{%- endblock %}
|
{%- endblock %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% block additional_css %}
|
||||||
|
{% if not is_fragment %}
|
||||||
|
<link rel="stylesheet" href="{{ static("club/list.scss") }}">
|
||||||
|
{% endif %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% from "core/macros.jinja" import paginate_htmx %}
|
{% from "core/macros.jinja" import paginate_htmx %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
@@ -33,15 +36,17 @@
|
|||||||
<h3>{% trans %}Filters{% endtrans %}</h3>
|
<h3>{% trans %}Filters{% endtrans %}</h3>
|
||||||
<form
|
<form
|
||||||
id="club-list-filters"
|
id="club-list-filters"
|
||||||
hx-get="{{ url("club:club_list") }}"
|
method="GET"
|
||||||
|
hx-action="{{ url("club:club_list") }}"
|
||||||
hx-target="#content"
|
hx-target="#content"
|
||||||
hx-swap="outerHtml"
|
hx-swap="innerHTML"
|
||||||
hx-push-url="true"
|
hx-push-url="true"
|
||||||
|
hx-disable="find input, find button"
|
||||||
>
|
>
|
||||||
<div class="row gap-4x">
|
<div class="row gap-4x">
|
||||||
{{ form }}
|
{{ form }}
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-blue margin-bottom">
|
<button class="btn btn-blue margin-bottom">
|
||||||
<i class="fa fa-magnifying-glass"></i>{% trans %}Search{% endtrans %}
|
<i class="fa fa-magnifying-glass"></i>{% trans %}Search{% endtrans %}
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ document.body.addEventListener(
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
htmx.config.transitions = true;
|
||||||
Object.assign(window, { htmx });
|
Object.assign(window, { htmx });
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -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