{#- Each widget lives in widgets/, so a project can override one by dropping a file with the same name into its own template folder. -#}
{{ row.label }} {% if row.readonly %} read only {% elif row.required %} required {% endif %} {% if row.readonly %} {% include "adminsite/widgets/readonly.html" %} {% else %} {% include ["adminsite/widgets/" ~ row.widget ~ ".html", "adminsite/widgets/input.html"] %} {% endif %} {% if row.error %}

{{ row.error }}

{% elif row.field.help_text %}

{{ row.field.help_text }}

{% endif %}