{% load form_helpers %} {% comment %} The conditions editor. The Form tab shows rows the server renders, the JSON tab holds the field that is actually submitted, and the two are synchronized by `ui/src/js/conditions-editor.js`. {% endcomment %} Every condition must pass for this to run. With no conditions it runs for every change to the selected object types.
{% comment %} `hx-include` names the two fields by the ids Django gives them. Rename either field and nothing is sent, with no error: the rows come back empty and every field picker closed. {% endcomment %}
{% comment %} A screen reader is told nothing when a condition is swapped in or deleted, so `ui/src/js/conditions-editor.js` writes the count here after every change, the way `inc/paginator.html` announces a new page range. {% endcomment %}
{% render_field form.conditions %}