Skip to content

Commit

Permalink
Fixes netbox-community#692: Form errors are not displayed on checkbox…
Browse files Browse the repository at this point in the history
… fields
  • Loading branch information
jeremystretch committed Nov 14, 2016
1 parent ef817e2 commit 792ee98
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 792ee98

Please sign in to comment.