2017-04-09 18:08:01 -07:00
{% trans_default_domain 'FOSUserBundle' %}
2017-05-05 22:49:54 -07:00
{% set show_social = false %}
2017-04-16 16:55:58 -07:00
{{ form_errors ( form ) }}
2017-05-05 22:49:54 -07:00
{% set ownerCount = hwi_oauth_resource_owners ( ) | length %}
<div class="uk-margin-medium-bottom uk-child-width-1- {{ ownerCount + 1 }} uk-visible@m uk-grid-small uk-grid-divider" uk-grid>
<div class="uk-text-center">
Connect with :
</div>
{% for owner in hwi_oauth_resource_owners ( ) %}
<div class="uk-text-center uk-registration-connect">
<a href=" {{ hwi_oauth_login_url ( owner ) }} "> {{ owner | trans ( { } , 'HWIOAuthBundle' ) | capitalize }} </a>
</div>
{% endfor %}
2017-04-16 16:55:58 -07:00
</div>
2017-04-26 21:32:43 -07:00
2017-04-16 16:55:58 -07:00
{{ form_start ( form , { 'method' : 'post' , 'action' : path ( 'fos_user_registration_register' ) , 'attr' : { 'class' : 'fos_user_registration_register uk-form' }} ) }}
<fieldset class="uk-fieldset">
<legend class="uk-legend">
Register account
</legend>
<div class="uk-margin">
<div hidden> {{ form_label ( form .email ) }} </div>
<div class="uk-form-controls uk-form-controls-text">
2017-05-05 22:49:54 -07:00
{{ form_errors ( form .email ) }}
2017-04-16 16:55:58 -07:00
{{ form_widget ( form .email , { 'attr' : { 'placeholder' :'Email address' , 'class' :'uk-input uk-form-large uk-padding-small' } } ) }}
</div>
2017-05-05 22:49:54 -07:00
</div>
2017-04-16 16:55:58 -07:00
<div class="uk-margin">
2017-04-22 12:43:30 -07:00
<div hidden> {{ form_label ( form .name , 'Name' , { 'label_attr' : { 'class' :'uk-form-label' }} ) }}</div>
2017-04-16 16:55:58 -07:00
<div class="uk-form-controls uk-form-controls-text">
2017-04-26 21:32:43 -07:00
{{ form_errors ( form .name ) }}
2017-04-22 12:43:30 -07:00
{{ form_widget ( form .name , { 'attr' : { 'placeholder' :'Name' , 'class' :'uk-input uk-form-large uk-padding-small' } } ) }}
2017-04-16 16:55:58 -07:00
</div>
</div>
<div class="uk-margin">
<div hidden> {{ form_label ( form .rsvp ) }} </div>
<div class="uk-form-controls uk-form-controls-text">
2017-04-26 21:32:43 -07:00
{{ form_errors ( form .rsvp ) }}
2017-04-16 16:55:58 -07:00
{{ form_widget ( form .rsvp ) }}
</div>
2017-05-05 22:49:54 -07:00
</div>
2017-04-26 21:32:43 -07:00
<div class="uk-margin">
<div hidden> {{ form_label ( form .comment , null , { 'label_attr' : { 'class' :'uk-form-label' }} ) }}</div>
<div class="uk-form-controls uk-form-controls-text">
{{ form_errors ( form .comment ) }}
{{ form_widget ( form .comment ) }}
</div>
</div>
2017-04-16 16:55:58 -07:00
<div class="uk-margin">
<div hidden> {{ form_label ( form .plainPassword .first , 'Password' , { 'label_attr' : { 'class' :'uk-form-label' }} ) }}</div>
<div class="uk-form-controls uk-form-controls-text">
2017-04-26 21:32:43 -07:00
{{ form_errors ( form .plainPassword ) }}
2017-04-16 16:55:58 -07:00
{{ form_widget ( form .plainPassword .first , { 'attr' : { 'placeholder' :'Password' , 'class' :'uk-input uk-form-large uk-padding-small' } } ) }}
</div>
2017-04-26 21:32:43 -07:00
</div>
2017-04-16 16:55:58 -07:00
<div class="uk-margin">
<div hidden> {{ form_label ( form .plainPassword .second , 'Repeat ' , { 'label_attr' : { 'class' :'uk-form-label' }} ) }}</div>
<div class="uk-form-controls uk-form-controls-text">
{{ form_widget ( form .plainPassword .second , { 'attr' : { 'placeholder' :'Repeat Password' , 'class' :'uk-input uk-form-large uk-padding-small' } } ) }}
2017-04-09 18:08:01 -07:00
</div>
2017-04-16 16:55:58 -07:00
</div>
<div class="uk-margin uk-grid" uk-grid>
2017-05-05 22:49:54 -07:00
<div class="uk-width-1-2">
<button type="submit" value="Register" class="uk-button uk-button-primary uk-button-large">Register</button>
2017-04-16 16:55:58 -07:00
</div>
<div class="uk-form-controls-text uk-text-muted uk-margin-small-top uk-width-1-2">
<div class="uk-text-large uk-visible@m">Already have an account? Login <a href=" {{ path ( 'fos_user_security_login' ) }} ">here</a>.</div>
<div class="uk-hidden@m uk-padding-small uk-padding-remove-vertical">Already have an account? Login <a href=" {{ path ( 'fos_user_security_login' ) }} ">here</a>.</div>
</div>
</div>
</fieldset>
2017-04-09 18:08:01 -07:00
{{ form_end ( form ) }}
2017-04-16 16:55:58 -07:00