{% extends 'events/registration/management/_regform_base.html' %}

{% block back_button_url -%}
    {{ url_for('.manage_regform', regform) }}
{%- endblock %}

{% block subtitle %}
    {% trans title=regform.title -%}
        Configure fields in form "{{ title }}"
    {%- endtrans %}
{% endblock %}

{% block content %}
    <div id="registration-form-setup-container"
         data-event-id="{{ event.id }}"
         data-event-start-date="{{ event.start_dt_local.date() }}"
         data-event-end-date="{{ event.end_dt_local.date() }}"
         data-regform-id="{{ regform.id }}"
         data-currency="{{ regform.currency }}"
         data-data-retention-range="{{ data_retention_range | tojson | forceescape }}"
         data-has-predefined-affiliations="{{ has_predefined_affiliations | tojson | forceescape }}"
         data-form-data="{{ form_data | tojson | forceescape }}"></div>
{% endblock %}
