{% load dash_tags %}
{% for line in fieldset %}
{% for field in line %}
{% if field.is_checkbox %}
{{ field.label_tag|add_class:'label-text !inline-block relative' }} {{ field.field }}
{% else %} {{ field.label_tag|add_class:'label-text py-2 px-1 !inline-block relative' }} {% if field.is_readonly %}
{{ field.contents }}
{% else %}
{{ field.field }}
{% endif %} {% endif %} {% if not line.fields|length == 1 and not field.is_readonly %}
{{ field.errors }}
{% endif %} {% if line.fields|length == 1 %} {{ line.errors }} {% endif %}
{% if field.field.help_text %}
{{ field.field.help_text|safe }}
{% endif %}
{% endfor %}
{% endfor %}