Alerts messages
This commit is contained in:
parent
ef8d375e5f
commit
9405c0c6d2
18
SocialHelper/homepage/templates/alerts.html
Normal file
18
SocialHelper/homepage/templates/alerts.html
Normal file
@ -0,0 +1,18 @@
|
||||
{% if messages %}
|
||||
{% for message in messages %}
|
||||
|
||||
<div id="message" class="panel-title-sign mt-xl text-center">
|
||||
<div class="alert alert-{{ message.tags }} " role="alert">
|
||||
<button type="button" class="close" height="54" data-dismiss="alert"><span aria-hidden="true">×</span></button>
|
||||
<strong>
|
||||
{% if message.level == DEFAULT_MESSAGE_LEVELS.ERROR %}
|
||||
Error:
|
||||
{% else %}
|
||||
{{ message.tags|title }}
|
||||
{% endif %}
|
||||
</strong>
|
||||
{{ message }}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
@ -24,6 +24,7 @@
|
||||
|
||||
<body>
|
||||
{% include 'navbar.html' %}
|
||||
{% include 'alerts.html' %}
|
||||
{% block content %} {% endblock %}
|
||||
<script src="{% static 'js/jquery-3.2.1.min.js' %} "></script>
|
||||
<script src="{% static 'js/popper.min.js' %} "></script>
|
||||
|
Loading…
Reference in New Issue
Block a user