{% extends 'base.html.twig' %} {% block title %}Register with {{ userInformation.resourceOwner.name|capitalize }}{% endblock title %} {% block body %}
{% if userInformation.response.name is defined %} {% set name = userInformation.response.name %} {% elseif userInformation.response.data.username is defined %} {% set name = userInformation.response.data.username %} {% elseif userInformation.resourceOwner.name == 'yahoo' %} {% set name = userInformation.nickname %} {% else %} {% set name = userInformation.email %} {% endif %}
{% if userInformation.profilePicture is not empty %} {% endif %}

Register with {{ userInformation.resourceOwner.name|capitalize }} account?

{{ form_start(form, {'action': path('hwi_oauth_connect_registration', {'key': key}), 'attr': {'class': 'hwi_oauth_registration_register uk-form uk-form-horizontal'}}) }} {{ form_label(form.name, 'Name', {'label_attr':{'class':'uk-form-label uk-visible@m'}}) }}
{{ form_errors(form.name) }} {{ form_widget(form.name, {'value': name,'attr':{'class':'uk-input uk-form-large', 'placeholder':'Your name'}}) }}
{{ form_label(form.email, 'Email address', {'label_attr':{'class':'uk-form-label uk-visible@m'}}) }}
{{ form_errors(form.email) }} {{ form_widget(form.email, {'attr':{'class':'uk-input uk-form-large', 'placeholder':'Email address'}}) }}
{{ form_label(form.plainPassword.first, 'Password', {'label_attr':{'class':'uk-form-label uk-visible@m'}}) }}
{{ form_errors(form.plainPassword.first) }} {{ form_widget(form.plainPassword.first, {'attr':{'class':'uk-input uk-form-large', 'placeholder':'Create password'}}) }}
{{ form_label(form.plainPassword.second, 'Repeat password', {'label_attr':{'class':'uk-form-label uk-visible@m'}}) }}
{{ form_errors(form.plainPassword.second) }} {{ form_widget(form.plainPassword.second, {'attr':{'class':'uk-input uk-form-large', 'placeholder':'Repeat password'}}) }}
{{ form_label(form.rsvp, 'Number of guests? (including yourself)', {'label_attr':{'class':'uk-form-label uk-visible@m'}}) }}
{{ form_errors(form.rsvp) }} {{ form_widget(form.rsvp, {'attr':{'placeholder':'Number of guests including yourself.'}}) }}
{{ form_label(form.comment) }}
{{ form_errors(form.comment) }} {{ form_widget(form.comment) }}
{{ 'connect.registration.cancel' | trans({}, 'HWIOAuthBundle') }}
{{ form_end(form) }}
{% endblock body %}