Fixes #692: Form errors are not displayed on checkbox fields

This commit is contained in:
Jeremy Stretch 2016-11-14 11:13:27 -05:00
parent 18a516ee53
commit 9eaf153673

View File

@ -16,6 +16,13 @@
<input type="checkbox" name="_nullify" value="{{ field.name }}" /> Set null <input type="checkbox" name="_nullify" value="{{ field.name }}" /> Set null
</label> </label>
{% endif %} {% endif %}
{% if field.errors %}
<ul>
{% for error in field.errors %}
<li class="text-danger">{{ error }}</li>
{% endfor %}
</ul>
{% endif %}
</div> </div>
{% elif field|widget_type == 'textarea' %} {% elif field|widget_type == 'textarea' %}
<div class="col-md-12"> <div class="col-md-12">