mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-01-24 16:24:14 +03:00
Added messages to entrance page
This commit is contained in:
parent
2c93ef4009
commit
0e41e5e8d0
|
@ -11,6 +11,17 @@
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="d-flex justify-content-center h-100 py-4">
|
<div class="d-flex justify-content-center h-100 py-4">
|
||||||
<div class="col-md-4 py-4 my-4 px-4">
|
<div class="col-md-4 py-4 my-4 px-4">
|
||||||
|
{% if messages %}
|
||||||
|
{% for message in messages %}
|
||||||
|
<div class="alert alert-dismissible {% if message.tags %}alert-{{ message.tags }}{% endif %}">
|
||||||
|
{{ message }}
|
||||||
|
<button type="button"
|
||||||
|
class="btn-close"
|
||||||
|
data-bs-dismiss="alert"
|
||||||
|
aria-label="Close"></button>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user