Skip to content

Commit

Permalink
Fixes #692: Form errors are not displayed on checkbox fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Nov 14, 2016
1 parent 18a516e commit 9eaf153
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions netbox/templates/utilities/render_field.html
Expand Up @@ -16,6 +16,13 @@
<input type="checkbox" name="_nullify" value="{{ field.name }}" /> Set null
</label>
{% endif %}
{% if field.errors %}
<ul>
{% for error in field.errors %}
<li class="text-danger">{{ error }}</li>
{% endfor %}
</ul>
{% endif %}
</div>
{% elif field|widget_type == 'textarea' %}
<div class="col-md-12">
Expand Down

0 comments on commit 9eaf153

Please sign in to comment.