{% load crispy_forms_field %} {% if field.is_hidden %} {{ field }} {% else %}
{% if field.label and form_show_labels %} {{ field.label }}{% if field.field.required %}*{% endif %} {% endif %} {# help text as label paragraph #} {% if not help_text_inline %} {% include 'crispy-daisyui/layout/help_text.html' %} {% endif %} {# errors #} {% if error_text_inline %} {% include 'crispy-daisyui/layout/field_errors.html' %} {% else %} {% include 'crispy-daisyui/layout/field_errors_block.html' %} {% endif %}
{% endif %}