Show flash messages on event list.

This commit is contained in:
Edward Betts 2026-02-17 11:34:40 +00:00
parent b835956ea9
commit bc2c884589
3 changed files with 14 additions and 12 deletions

View file

@ -16,18 +16,7 @@
<body>
{% block nav %}{{ navbar() }}{% endblock %}
{% with messages = get_flashed_messages() %}
{% if messages %}
<div class="container-fluid mt-2">
{% for message in messages %}
<div class="alert alert-success alert-dismissible fade show" role="alert">
{{ message }}
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
{% endfor %}
</div>
{% endif %}
{% endwith %}
{% include "flash_messages.html" %}
{% block content %}{% endblock %}
{% block scripts %}{% endblock %}
<script src="{{ url_for("static", filename="bootstrap5/js/bootstrap.bundle.min.js") }}"></script>