{#- Each widget lives in widgets/, so a project can override one by dropping a file with the same name into its own template folder. -#} {% import "adminsite/_icons.html" as icons %} {%- set field_id = "field-" ~ row.path|replace(".", "-") -%} {#- Ties the input to its name, and to its error or help, for screen readers. -#} {%- set field_attrs -%} aria-labelledby="{{ field_id }}-label" {%- if row.error or row.field.help_text %} aria-describedby="{{ field_id }}-note"{% endif %} {%- if row.error %} aria-invalid="true"{% endif %} {%- endset -%} {%- set wide = row.widget in ("textarea", "json", "file", "image") or row.field.collection|default(false) or row.field.multiple|default(false) -%}