{#- An object's form, whatever its fields, on the Abilian Design System: each field drawn by its kind, its help and its errors under it; the view's own buttons at the foot. Shared by the administration's forms and the generic one. Imported `with context`. -#} {% import "forum/_post_fields.html" as fields %} {#- One field, by its kind. -#} {% macro field_of(field) %} {% set described = ([field.id ~ "-help"] if field.description else []) + ([field.id ~ "-error"] if field.errors else []) %} {% set aria %}{% if field.errors %}aria-invalid="true"{% endif %} {% if described %}aria-describedby="{{ described | join(' ') }}"{% endif %}{% endset %} {% if field.type == "BooleanField" %}