{% load i18n %} {% comment %} Custom StructBlock form template. Prefix-correct ``w-rules`` keys are built from the ``__PREFIX__`` token that Wagtail substitutes with this block's content-path prefix when the block is rendered in the editor; ``children..prefix`` gives the same prefix for a sibling field. The ``w-rules`` controller itself is added to this template's root by ``StructBlock.Meta.form_attrs``. The first non-whitespace output must be a single root element: Wagtail applies ``Meta.form_attrs`` to the first node of the parsed template. {% endcomment %}
{{ children.key.render_form }}
{{ children.fallback.render_form }}

{% trans "Choose a value to see the fields you can reference." %}

{% for key, model in context_models.items %} {% endfor %}
{{ children.object_id.render_form }} {% for key, model in context_models.items %} {% endfor %}