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

{% from 'events/registration/_template_hooks.html' import regform_attrs_template_hook %}

{% block subtitle %}
    {% trans id=registration.friendly_id, name=registration.full_name, regform_title=registration.registration_form.title -%}
        Modify #{{ id }}: {{ name }} in "{{ regform_title }}"
    {%- endtrans %}
{% endblock %}

{% block content %}
    <div id="registration-form-submission-container"
         data-event-id="{{ event.id }}"
         data-regform-id="{{ regform.id }}"
         data-submit-url="{{ request.url }}"
         data-currency="{{ regform.currency }}"
         data-form-data="{{ form_data | tojson | forceescape }}"
         data-registration-data="{{ registration_data | tojson | forceescape }}"
         data-registration-uuid="{{ registration.uuid }}"
         data-file-data="{{ file_data | tojson | forceescape }}"
         data-management="{{ management | tojson | forceescape }}"
         data-paid="{{ paid | tojson | forceescape }}"
         data-publish-to-participants="{{ regform.publish_registrations_participants.name }}"
         data-publish-to-public="{{ regform.publish_registrations_public.name }}"
         data-consent-to-publish="{{ registration.consent_to_publish.name }}"
         data-policy-agreement-required="{{ regform.require_privacy_policy_agreement | tojson | forceescape }}"
         {{ regform_attrs_template_hook(event, regform, true, registration) }}
    ></div>
{% endblock %}
