{% load wagtailadmin_tags %}
{# Avoid semantic markup here. Children of this panel can either be fields, or other groups. #}
{% for child in self.visible_children %}
{% if child.heading %}
{% fragment as label_content %}
{{ child.heading }}{% if child.is_required %}*{% endif %}
{% endfragment %}
{% if child.id_for_label %}
{% else %}