use new notifications system

This commit is contained in:
imperosol
2025-09-26 16:00:31 +02:00
parent c03b6e5d9d
commit cc58479a19
2 changed files with 6 additions and 14 deletions

View File

@@ -11,6 +11,10 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
{% block notifications %}
{# Notifications are moved inside the billing info fragment #}
{% endblock %}
<h2>{% trans %}Club members{% endtrans %}</h2> <h2>{% trans %}Club members{% endtrans %}</h2>
{% if add_member_fragment %} {% if add_member_fragment %}

View File

@@ -1,17 +1,5 @@
{% if messages %}
<div x-data="{show_alert: true}" class="alert alert-green" x-show="show_alert" x-transition> {% include "core/base/notifications.jinja" %}
<span class="alert-main">
{% for message in messages %}
{% if message.level_tag == "success" %}
{{ message }}
{% endif %}
{% endfor %}
</span>
<span class="clickable" @click="show_alert = false">
<i class="fa fa-close"></i>
</span>
</div>
{% endif %}
<form <form
hx-post="{{ url('club:club_new_members', club_id=club.id) }}" hx-post="{{ url('club:club_new_members', club_id=club.id) }}"