{% if field.label %} {# The default is to use the xl class, legend_classes can be set using a custom LayoutObject to wrap the field #} {# This follows the recommended Question Page pattern#} {% if field.name == page_heading_field %}

{% endif %} {{ field.label|safe }} {% if field.name == page_heading_field %}

{% endif %}
{% endif %}