Show messages also in the content part

Messages are already shown in the map, if any.
This commit is contained in:
Yohan Boniface 2023-06-16 14:45:43 +02:00
parent fef82818e1
commit 8b4ffba859
3 changed files with 33 additions and 0 deletions

View file

@ -259,6 +259,27 @@ ul.umap-autocomplete {
cursor: pointer;
}
/* **************************** */
/* Messages */
/* **************************** */
.messages li {
border-radius: 1px;
color: white;
margin-bottom: 20px;
padding: 20px;
text-align: center;
width: 100%;
background-color: #444;
font-weight: bold;
}
.messages .success {
background-color: #16a085;
}
.messages .error {
background-color: #c60f13;
}
/* **************************** */

View file

@ -15,6 +15,7 @@
<header class="wrapper row">
{% include 'umap/navigation.html' with title=SITE_NAME %}
</header>
{% include 'umap/messages.html' with title=SITE_NAME %}
{% endblock %}
{% block content %}

View file

@ -0,0 +1,11 @@
<div class="wrapper">
<div class="row">
{% if messages %}
<ul class="messages">
{% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>