Source

django-formrenderingtools / demo / demoproject / demoapp / templates / form_layouts / altering_all_elements / field / default.html

Full commit
{% if field.is_hidden %}
{{ field }}
{% else %}
{% load form_layouts %}
<div class="formItem{% if field.errors %} hasErrors{% endif %}{% if field.field.required %} required{% endif %} {{ field.html_name }}">
  {% field_errors %}
  {{ field }}
  {% label %}
  {% help_text %}
</div>
{% endif %}