Show Django messages
This commit is contained in:
parent
0c9aae7e66
commit
49bf9465d7
2 changed files with 16 additions and 0 deletions
|
|
@ -87,6 +87,12 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
|||
</nav>
|
||||
|
||||
<main class="container my-3">
|
||||
{% for message in messages %}
|
||||
<div class="alert {{ message.tags }} alert-dismissible" role="alert" >
|
||||
{{ message }}
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% block content %}
|
||||
<p>Default content...</p>
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue