Skip to content

Commit

Permalink
Updated signup page markup and styles
Browse files Browse the repository at this point in the history
  • Loading branch information
epixa committed Sep 21, 2011
1 parent a46b1fb commit 6e62c7f
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{% extends "FOSUserBundle::layout.html.twig" %}

{% block title %}Signup - {{ parent() }}{% endblock %}

{% block bodyClass %}{{ parent() }} split{% endblock %}

{% block fos_user_content %}
{% include "FOSUserBundle:Registration:register_content.html.twig" %}
{% endblock fos_user_content %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<section id="signup" class="form">
<h2>Create a new account</h2>

<form action="{{ path('fos_user_registration_register') }}" method="post" class="fos_user_registration_register" {{ form_enctype(form) }}>
<fieldset>
{{ form_errors(form) }}

<label for="fos_user_registration_form_username">Username</label>
{{ form_widget(form.username) }}
{{ form_errors(form.username) }}

<label for="fos_user_registration_form_email">Email</label>
{{ form_widget(form.email) }}
{{ form_errors(form.email) }}

<label for="fos_user_registration_form_plainPassword_first">Password</label>
{{ form_widget(form.plainPassword.first) }}
{{ form_errors(form.plainPassword.first) }}

<label for="fos_user_registration_form_plainPassword_second">Confirm Password</label>
{{ form_widget(form.plainPassword.second) }}
{{ form_errors(form.plainPassword.second) }}

{{ form_rest(form) }}
</fieldset>

<fieldset class="options">
<input type="submit" value="{{ 'registration.submit'|trans({}, 'FOSUserBundle') }}" />
</fieldset>
</form>
</section>
4 changes: 4 additions & 0 deletions web/css/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@ ul.pagination li a:hover {
}

.form input[type='text'],
.form input[type='email'],
.form input[type='password'],
.form textarea,
.form select {
background-color: #fff;
Expand Down Expand Up @@ -321,6 +323,8 @@ ul.pagination li a:hover {
}

.simple_form input[type='text'],
.simple_form input[type='email'],
.simple_form input[type='password'],
.simple_form textarea,
.simple_form select {
background-color: #fff;
Expand Down

0 comments on commit 6e62c7f

Please sign in to comment.