Show messages also in the content part
Messages are already shown in the map, if any.
This commit is contained in:
parent
fef82818e1
commit
8b4ffba859
3 changed files with 33 additions and 0 deletions
|
@ -259,6 +259,27 @@ ul.umap-autocomplete {
|
||||||
cursor: pointer;
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* **************************** */
|
/* **************************** */
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<header class="wrapper row">
|
<header class="wrapper row">
|
||||||
{% include 'umap/navigation.html' with title=SITE_NAME %}
|
{% include 'umap/navigation.html' with title=SITE_NAME %}
|
||||||
</header>
|
</header>
|
||||||
|
{% include 'umap/messages.html' with title=SITE_NAME %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
11
umap/templates/umap/messages.html
Normal file
11
umap/templates/umap/messages.html
Normal 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>
|
Loading…
Reference in a new issue