31 lines
1.1 KiB
Twig
31 lines
1.1 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block body %}
|
|
<div class="uk-width-1-1">
|
|
{{ dump(userInformation) }}
|
|
</div>
|
|
{% if userInformation.resourceOwner.name == 'yahoo' %}
|
|
{% set name = userInformation.nickname %}
|
|
{% else %}
|
|
{% set name = userInformation.email %}
|
|
{% endif %}
|
|
<h3>{{ 'header.register' | trans({'%name%': name }, 'HWIOAuthBundle') }}</h3>
|
|
|
|
|
|
{{ form_start(form, {'action': path('hwi_oauth_connect_registration', {'key': key}), 'attr': {'class': 'hwi_oauth_registration_register uk-form uk-form-horizontal'}}) }}
|
|
{{ form_widget(form) }}
|
|
<div>
|
|
<button type="submit" class="btn btn-primary">{{ 'connect.registration.submit'|trans({}, 'HWIOAuthBundle') }}</button>
|
|
<a href="{{ path('hwi_oauth_connect') }}" class="btn">{{ 'connect.registration.cancel' | trans({}, 'HWIOAuthBundle') }}</a>
|
|
</div>
|
|
{{ form_end(form) }}
|
|
|
|
|
|
{% if userInformation.profilePicture is not empty %}
|
|
<img src="{{ userInformation.profilePicture }}" />
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endblock body %}
|