1 2 3 4 5 6 7 8 9 10 | {% if form.errors %}
<div class="alert alert-error">
<button type="button" class="close" data-dismiss="alert">×</button>
{% for field in form %}
{% if field.errors %}
<li>{{ field.label }}: {{ field.errors|striptags }}</li>
{% endif %}
{% endfor %}
</div>
{% endif %}
|
More like this
- Take a django.core.mail email message and replace any MEDIA_URL-served images with attached images by agrossman@gmail.com 1 year, 4 months ago
- Add delete buttons to admin changelist by kylefox 6 years ago
- Javascript constraints in admin app and fieldsets to tabs (jquery) by jpic 4 years, 2 months ago
- Bootstrap button dropdown widget (replaces forms.Select) by benjaoming 9 months, 3 weeks ago
- boostrap prepend-input for widgets by DimmuR 8 months ago
Comments