Akron | ca9bd98 | 2016-12-06 16:59:57 +0100 | [diff] [blame^] | 1 | {% if form.errors %} |
2 | <div class="alert alert-danger" role="alert"> | ||||
3 | {% for field in form %} | ||||
4 | {% for message in field.errors %} | ||||
5 | <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> | ||||
6 | <span class="sr-only">Error:</span> | ||||
7 | {{ message }} <br> | ||||
8 | {% endfor %} | ||||
9 | {% endfor %} | ||||
10 | </div> | ||||
11 | {% endif %} |