{% if legend %}
{{ legend|safe }}
{% endif %} {{ fields|safe }}