{% from 'forms/_form.html' import form_header, form_footer, form_rows %} {% macro _render_column_selector(item_id, item, filter_choices, is_static_item=false, filter_only=false) %} {% set filters = filters['items'] if is_static_item else filters['fields'] %} {% set filter_title = item.get('filter_title', item.title) if is_static_item else item.title %}
{{ filter_title }}
{% if not filter_only %}
{% endif %}
{% if filter_choices %}
{% endif %}
{% endmacro %} {% macro _render_regform_item_col_selector(section) %}

{{ section.title }}

{% for field in section.active_fields %} {% set filter_choices = field.field_impl.filter_choices %} {{ _render_column_selector(field.id, field, filter_choices) }} {% endfor %}
{% endmacro %}
Customize registration list
{% set filter_icon = '' | safe %} {%- trans -%} Change the configuration of the registration list by enabling/disabling the columns listed below, or by applying filtering ({{ filter_icon }}) options. {%- endtrans -%}

{% trans %}General registration info{% endtrans %}

{% for item_id, item in static_items.items() %} {% set filter_choices = item.get('filter_choices') %} {% set filter_only = item.get('filter_only', false) %} {{ _render_column_selector(item_id, item, filter_choices, is_static_item=true, filter_only=filter_only) }} {% endfor %}
{% for section in regform.sections if section.is_visible and section.active_fields %} {{ _render_regform_item_col_selector(section) }} {% endfor %} {% set disabled_sections = regform.disabled_sections|selectattr('active_fields')|list %} {% if disabled_sections %}

{%- trans %}Disabled sections{% endtrans -%}

{% for section in disabled_sections %} {{ _render_regform_item_col_selector(section) }} {% endfor %}
{% endif %}