{% import "@users/macros/admin-fields.twig" as fieldsTemplates %}
{% spaceless %}
<h1>{{ translate('Membership profile') }}</h1>
{% set sections = [] %}
<table class="form-table">
	<tbody>
		{% for field in fields %}
			{% if field.enabled  %}
				{% if field.section not in sections %}
					<h2>{{ field.section }}</h2>
					{% set sections = sections|merge([field.section]) %}
				{% endif %}
				{{ fieldsTemplates.outputField(field) }}
			{% endif %}
		{% endfor %}
	</tbody>
</table>
{% endspaceless %}