{% extends 'events/management/base.html' %}
{% from 'forms/_form.html' import form_header, form_footer, form_row, form_rows, form_fieldset, form_row_static %}
{% from 'events/management/_registrations_visibility_list.html' import render_registrations_visibility_list %}

{% block title %}{% trans %}Privacy dashboard{% endtrans %}{% endblock %}

{% block content %}
    {{ form_header(form, id='privacy-dashboard-form') }}
    {% call form_fieldset(_('Data controller')) %}
        {{ form_rows(form, fields=form._data_controller_fields) }}
    {% endcall %}
    {% call form_fieldset(_('Privacy notice')) %}
        {{ form_rows(form, fields=form._privacy_policy_fields) }}
    {% endcall %}
    {% call form_row_static() %}
        <input class="i-button big highlight" type="submit" value="{% trans %}Save{% endtrans %}"
               data-disabled-until-change data-save-reminder>
    {% endcall %}
    {% if regforms %}
        {% call form_fieldset(_('Registration forms')) %}
            {{ render_registrations_visibility_list(regforms) }}
        {% endcall %}
    {% endif %}
    {{ form_footer(form) }}
{% endblock %}
