{% comment %} The rule editor. Three condition halves and three actions, in one form. The contact half is templates/contacts/_filter_bar.html — the same builder the segment editor uses, driven by the same payload from apps.contacts.builder.builder_config. It serialises its Alpine state into one hidden `filter` input, so the server hands the document straight to the condition engine instead of re-assembling it from separate fields; a second parser for a language that already has one is exactly what ROADMAP contract 8 exists to prevent. Its script half has to come with it — see the include at the bottom. {% endcomment %} {% load common_extras %} {% comment %} No id on this root. It is swapped into rule_settings.html's #inbox-rule-editor with htmx's default innerHTML, so repeating that id here would put two elements with one id in the document — and every later hx-target="#inbox-rule-editor" would resolve to the outer wrapper. {% endcomment %}