{% trans_default_domain 'FOSUserBundle' %}

{% form_theme form with ['Front/Form/fields.html.twig'] %}

<div id="formRegister" class="form form-user-register bg-alabaster pa">
    {{ form_start(form, {attr: {id: 'form-register', class: 'form-user-register-form'}}) }}
        <div 
            id="recaptchaRegister" 
            class="g-recaptcha" 
            data-sitekey="{{ google_recaptcha_public_key }}"
            data-callback="registerCallback"
            data-size="invisible"
        ></div>
        {#% if 1 == step %#}
        <fieldset>
            <legend>{{ 'views.registration.content.fieldset.legend'|trans([], 'FOSUserBundle') }}</legend>
            {{ form(form) }}
        </fieldset>
        {#% endif %#}
    {{ form_end(form) }}
</div>
