doughnut-wedding/app/Resources/HWIOAuthBundle/views/Connect/registration.html.twig

30 lines
1.1 KiB
Twig
Raw Normal View History

2017-04-22 12:43:30 -07:00
{% extends 'base.html.twig' %}
2017-04-09 18:08:01 -07:00
2017-04-22 12:43:30 -07:00
{% block body %}
<div class="uk-width-1-1">
2017-04-24 12:21:22 -07:00
{{ dump(form) }}
2017-04-22 12:43:30 -07:00
{% 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'}}) }}
2017-04-09 18:08:01 -07:00
{{ 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) }}
2017-04-22 12:43:30 -07:00
2017-04-09 18:08:01 -07:00
{% if userInformation.profilePicture is not empty %}
<img src="{{ userInformation.profilePicture }}" />
{% endif %}
2017-04-22 12:43:30 -07:00
2017-04-09 18:08:01 -07:00
</div>
2017-04-22 12:43:30 -07:00
{% endblock body %}