{% macro render_registrations_visibility_labels(regform) %} {% if regform.publish_registrations_participants.name == 'hide_all' %} {% trans %}Hiding all{% endtrans %} {% elif regform.publish_registrations_participants.name == 'show_with_consent' %} {% trans %}Showing with consent{% endtrans %} {% elif regform.publish_registrations_participants.name == 'show_all' %} {% trans %}Showing all{% endtrans %} {% endif %} {% if regform.publish_registrations_public.name == 'hide_all' %} {% trans %}Hiding all{% endtrans %} {% elif regform.publish_registrations_public.name == 'show_with_consent' %} {% trans %}Showing with consent{% endtrans %} {% elif regform.publish_registrations_public.name == 'show_all' %} {% trans %}Showing all{% endtrans %} {% endif %} {% endmacro %} {% macro render_registrations_visibility_list(regforms, settings_icon='settings') %}