{% with classes=field.css_classes label=label|default:field.label help_text=help_text|default:field.help_text required=field.field.required %} {% include "helper/forms/errors.html" with errors=field.errors %} {% if field_type == "radio" %}
{{ label }}
{% for widget in field %}
{{ widget }}
{% endfor %} {% if help_text %}{{ help_text }}{% endif %}
{% elif field_type == "checkbox" %}
{% if help_text %}{{ help_text }}{% endif %}
{% else %}
{% if label %}{% if field.id_for_label %}{% endif %}{% endif %}
{{ field }} {% if help_text %}{{ help_text }}{% endif %}
{% endif %} {% endwith %}