{% if self.legend %}{{ self.legend|safe }}{% endif %} {{ self.fields_html|safe }}