Modified form comments
This commit is contained in:
parent
b134a20813
commit
25bf93b1bc
6 changed files with 24 additions and 33 deletions
|
|
@ -27,6 +27,20 @@
|
|||
{% endblock %}
|
||||
<!-- Main content -->
|
||||
{% block content %}{% endblock %}
|
||||
<div class="mt-3">
|
||||
{% if messages %}
|
||||
{% for message in messages %}
|
||||
<div class="alert alert-{{ message.tags }}">{{ message }}</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if form.errors %}
|
||||
{% for field in form %}
|
||||
{% for error in field.errors %}
|
||||
<div class="alert alert-danger">{{ error }}</div>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
|
|
|||
Reference in a new issue