{% extends "layout.html.twig" %} {% trans_default_domain 'FOSUserBundle' %} {% block title %} {{ "title" | trans({}, "SocialLogin") }} {% endblock %} {% block body %}

{{ 'header' | trans({}, 'SocialLogin') }}

{{ 'registration.fill_info'|trans|default('أكمل بياناتك لإنشاء حسابك') }}

{% for flashMessage in app.session.flashbag.get('user_register_invitation_note') %} {% endfor %} {% for flashMessage in app.flashes('error') %} {% endfor %}
{{ form_row(registrationForm._token) }} {# Hidden field carries the social auth token back to the controller #} {# ── Username ── #}
{{ form_widget(registrationForm.username, {'attr': {'class': 'form-control', 'placeholder': 'form.placeholder.username'|trans, 'autocomplete': 'username'}}) }} {{ form_errors(registrationForm.username) }}

{# ── Country ── #}
{{ form_widget(registrationForm.country, {'attr': {'class': 'form-control'}}) }} {{ form_errors(registrationForm.country) }}
{# ── Cell ── #}
{{ form_widget(registrationForm.cell, {'attr': {'class': 'form-control', 'placeholder': 'form.placeholder.cell'|trans}}) }} {{ form_errors(registrationForm.cell) }}
{# ── Birth Year ── #}
{{ form_widget(registrationForm.birthYear, {'attr': {'class': 'form-control'}}) }} {{ form_errors(registrationForm.birthYear) }}
{# ── Academic Interests (Select2 tags) ── #}
{{ 'form.academic_interests_note'|trans }} {{ 'form.academic_interests_help'|trans }}
{# ── Newsletter Subscription ── #}
{{ form_widget(registrationForm.subscribeNewsletter) }}
{# ── Public Profile (inverted: checked = private) ── #}
{{ form_widget(registrationForm.publicProfile) }}
{# ── reCaptcha ── #} {% if registrationForm.reCaptcha is defined %}
{{ form_widget(registrationForm.reCaptcha, {'attr': {'data-toggle': 'reCaptcha', 'data-type': 'checkbox'}}) }}
{{ form_errors(registrationForm.reCaptcha) }} {% endif %} {{ form_errors(registrationForm) }}
{% endblock %} {% block css %} {{ parent() }} {% endblock %} {% block scripts %} {{ parent() }} {% endblock %}