{% load djblets_forms %} {% load djblets_utils %} {% if field.is_hidden %} {{field}} {% else %} {% with field|form_field_has_label_first as label_first %}
{{field.errors}} {% if not label_first %}{{field}}{% endif %} {% label_tag field %} {% if label_first %}{{field}}{% endif %} {% if field.help_text %}

{{field.help_text}}

{% endif %} {% if form.disabled_reasons|contains:fieldname %}

{{form.disabled_reasons|getitem:fieldname|safe}}

{% endif %}
{% endwith %} {% endif %}