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 %}
|
2017-04-25 15:45:32 -07:00
|
|
|
<div class="uk-width-1-1">
|
|
|
|
|
2017-04-22 12:43:30 -07:00
|
|
|
{% if userInformation.resourceOwner.name == 'yahoo' %}
|
2017-04-25 15:45:32 -07:00
|
|
|
{% set name = userInformation.nickname %}
|
2017-04-22 12:43:30 -07:00
|
|
|
{% else %}
|
2017-04-25 15:45:32 -07:00
|
|
|
{% set name = userInformation.email %}
|
2017-04-22 12:43:30 -07:00
|
|
|
{% endif %}
|
|
|
|
<h3>{{ 'header.register' | trans({'%name%': name }, 'HWIOAuthBundle') }}</h3>
|
|
|
|
|
|
|
|
|
2017-04-25 15:45:32 -07:00
|
|
|
{{ 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'}}) }}
|
|
|
|
<div class="uk-form-controls uk-form-controls-text uk-margin-small-bottom">
|
|
|
|
{{ form_widget(form.name, {'attr':{'class':'uk-input uk-form-large', 'placeholder':'Your name'}}) }}
|
|
|
|
</div>
|
|
|
|
{{ form_label(form.email, 'Email address', {'label_attr':{'class':'uk-form-label uk-visible@m'}}) }}
|
|
|
|
<div class="uk-form-controls uk-form-controls-text uk-margin-small-bottom">
|
|
|
|
{{ form_widget(form.email, {'attr':{'class':'uk-input uk-form-large', 'placeholder':'Email address'}}) }}
|
|
|
|
</div>
|
|
|
|
{{ form_label(form.plainPassword.first, 'Password', {'label_attr':{'class':'uk-form-label uk-visible@m'}}) }}
|
|
|
|
<div class="uk-form-controls uk-form-controls-text uk-margin-small-bottom">
|
|
|
|
{{ form_widget(form.plainPassword.first, {'attr':{'class':'uk-input uk-form-large', 'placeholder':'Create password'}}) }}
|
|
|
|
</div>
|
|
|
|
{{ form_label(form.plainPassword.second, 'Repeat password', {'label_attr':{'class':'uk-form-label uk-visible@m'}}) }}
|
|
|
|
<div class="uk-form-controls uk-form-controls-text uk-margin-small-bottom">
|
|
|
|
{{ form_widget(form.plainPassword.second, {'attr':{'class':'uk-input uk-form-large', 'placeholder':'Repeat password'}}) }}
|
|
|
|
</div>
|
|
|
|
{{ form_label(form.rsvp, 'Number of guests? (including yourself)', {'label_attr':{'class':'uk-form-label uk-visible@m'}}) }}
|
|
|
|
<div class="uk-form-controls uk-form-controls-text uk-margin-small-bottom">
|
|
|
|
{{ form_widget(form.rsvp, {'attr':{'placeholder':'Guest\'s including yourself.'}}) }}
|
|
|
|
</div>
|
|
|
|
{{ form_label(form.comment) }}
|
|
|
|
<div class="uk-form-controls uk-form-controls-text">
|
|
|
|
{{ form_widget(form.comment) }}
|
|
|
|
</div>
|
|
|
|
<div class="uk-child-width-1-2@m uk-child-width-1-1@s uk-grid uk-grid-divider uk-margin-medium-top" uk-grid>
|
|
|
|
<div>
|
|
|
|
<input type="submit" class="uk-width-1-1 uk-button-primary uk-button uk-button-large"
|
|
|
|
value="{{ 'connect.registration.submit'|trans({}, 'HWIOAuthBundle') }}"/>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<a href="{{ path('hwi_oauth_connect') }}"
|
|
|
|
class="uk-width-1-1 uk-button uk-button-large uk-button-danger">{{ 'connect.registration.cancel' | trans({}, 'HWIOAuthBundle') }}</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ form_end(form) }}
|
2017-04-22 12:43:30 -07:00
|
|
|
|
|
|
|
|
2017-04-25 15:45:32 -07:00
|
|
|
{% if userInformation.profilePicture is not empty %}
|
|
|
|
<img src="{{ userInformation.profilePicture }}"/>
|
|
|
|
{% endif %}
|
2017-04-22 12:43:30 -07:00
|
|
|
|
2017-04-25 15:45:32 -07:00
|
|
|
</div>
|
2017-04-09 18:08:01 -07:00
|
|
|
|
2017-04-22 12:43:30 -07:00
|
|
|
{% endblock body %}
|