mirror of
https://github.com/ae-utbm/sith.git
synced 2025-10-10 00:34:41 +00:00
Add macro to refresh messages from htmx swap
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
{% from 'core/macros.jinja' import update_notifications %}
|
||||
|
||||
<div id=billing-infos-fragment>
|
||||
<div
|
||||
class="collapse"
|
||||
@@ -29,7 +31,6 @@
|
||||
>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
{% include "core/base/notifications.jinja" %}
|
||||
{{ update_notifications(messages) }}
|
||||
</div>
|
||||
|
@@ -1,7 +1,7 @@
|
||||
{% extends "core/base.jinja" %}
|
||||
|
||||
{% block notifications %}
|
||||
{# Notifications are moved inside the billing info fragment #}
|
||||
{# Notifications are moved under the billing form #}
|
||||
{% endblock %}
|
||||
|
||||
{% block title %}
|
||||
@@ -60,6 +60,7 @@
|
||||
<div @htmx:after-request="fill">
|
||||
{{ billing_infos_form }}
|
||||
</div>
|
||||
{% include "core/base/notifications.jinja" %}
|
||||
<form
|
||||
method="post"
|
||||
action="{{ settings.SITH_EBOUTIC_ET_URL }}"
|
||||
|
Reference in New Issue
Block a user