forked from Sylius/Sylius
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CJMAX-12] Integrated registration page
- Loading branch information
1 parent
ae27b5a
commit 731def0
Showing
2 changed files
with
108 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
app/Resources/SyliusWebBundle/views/Frontend/User/register.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{% extends 'SyliusWebBundle:Frontend:layout.html.twig' %} | ||
|
||
{% block title %} | ||
- Register | ||
{% endblock %} | ||
|
||
{% block topbar %} | ||
<ul class="breadcrumb"> | ||
<li><a href={{ path('sylius_homepage') }}>Home</a></li> | ||
<li>Register</li> | ||
</ul> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="box text-center"> | ||
<div class="row"> | ||
<div class="col-sm-10 col-sm-offset-1"> | ||
<h1>Register</h1> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{{ parent() }} | ||
|
||
<div class="col-md-6 col-md-offset-3"> | ||
<div class="box"> | ||
<form action="{{ path('sylius_user_registration') }}" method="post"> | ||
<div class="row"> | ||
{{ form_errors(form) }} | ||
|
||
<div class="col-md-12"> | ||
{{ form_label(form.email, null, {'label_attr': {'class': 'text-muted pull-left'}}) }} | ||
{{ form_widget(form.email) }} | ||
{{ form_errors(form.email) }} | ||
</div> | ||
<div class="col-md-6"> | ||
{{ form_label(form.firstName, null, {'label_attr': {'class': 'text-muted pull-left'}}) }} | ||
{{ form_widget(form.firstName) }} | ||
{{ form_errors(form.firstName) }} | ||
</div> | ||
<div class="col-md-6"> | ||
{{ form_label(form.lastName, null, {'label_attr': {'class': 'text-muted pull-left'}}) }} | ||
{{ form_widget(form.lastName) }} | ||
{{ form_errors(form.lastName) }} | ||
</div> | ||
<div class="spacer-50"> </div> | ||
<div class="col-md-12"> | ||
{{ form_label(form.user.plainPassword.first, null, {'label_attr': {'class': 'text-muted pull-left'}}) }} | ||
{{ form_widget(form.user.plainPassword.first) }} | ||
{{ form_errors(form.user.plainPassword.first) }} | ||
</div> | ||
<div class="col-md-12"> | ||
{{ form_label(form.user.plainPassword.second, null, {'label_attr': {'class': 'text-muted pull-left'}}) }} | ||
{{ form_widget(form.user.plainPassword.second) }} | ||
{{ form_errors(form.user.plainPassword.second) }} | ||
</div> | ||
|
||
{{ form_rest(form) }} | ||
</div> | ||
<div class="spacer-50"> </div> | ||
|
||
<div class="box form-actions clearfix text-center"> | ||
<button class="btn btn-primary btn-lg" type="submit"> | ||
<i class="fa fa-user-plus"></i> | ||
Register | ||
</button> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
{% endblock %} |