add basic design to userbundle && refactor
This commit is contained in:
@@ -3,26 +3,90 @@
|
||||
{% trans_default_domain 'FOSUserBundle' %}
|
||||
|
||||
{% block fos_user_content %}
|
||||
{{ form_start(form, {'method': 'post', 'action': path('fos_user_registration_register'), 'attr': {'class': 'fos_user_registration_register'}}) }}
|
||||
<div class="register">
|
||||
<h1>
|
||||
Sign up
|
||||
</h1>
|
||||
<div class="form">
|
||||
{{ form_start(form, {'method': 'post', 'action': path('fos_user_registration_register'), 'attr': {'class': 'fos_user_registration_register'}}) }}
|
||||
<input type="hidden" name="_csrf_token" value="{{ csrf_token }}"/>
|
||||
|
||||
{{ form_label(form.email) }}
|
||||
{{ form_widget(form.email) }}
|
||||
{{ form_errors(form.email) }}
|
||||
<div class="input input--kozakura">
|
||||
{{ form_widget(form.email, {'attr': {'class': 'input__field input__field--kozakura'}}) }}
|
||||
<label class="input__label input__label--kozakura" for="fos_user_registration_form_email">
|
||||
<span class="input__label-content input__label-content--kozakura" data-content="Email">Email</span>
|
||||
</label>
|
||||
<svg class="graphic graphic--kozakura" width="300%" height="100%" viewBox="0 0 1200 60"
|
||||
preserveAspectRatio="none">
|
||||
<path d="M1200,9c0,0-305.005,0-401.001,0C733,9,675.327,4.969,598,4.969C514.994,4.969,449.336,9,400.333,9C299.666,9,0,9,0,9v43c0,0,299.666,0,400.333,0c49.002,0,114.66,3.484,197.667,3.484c77.327,0,135-3.484,200.999-3.484C894.995,52,1200,52,1200,52V9z"/>
|
||||
</svg>
|
||||
{{ form_errors(form.email) }}
|
||||
</div>
|
||||
|
||||
{{ form_label(form.username) }}
|
||||
{{ form_widget(form.username) }}
|
||||
{{ form_errors(form.username) }}
|
||||
<div class="input input--kozakura">
|
||||
{{ form_widget(form.username, {'attr': {'class': 'input__field input__field--kozakura'}}) }}
|
||||
<label class="input__label input__label--kozakura" for="fos_user_registration_form_username">
|
||||
<span class="input__label-content input__label-content--kozakura"
|
||||
data-content="Username">Username</span>
|
||||
</label>
|
||||
<svg class="graphic graphic--kozakura" width="300%" height="100%" viewBox="0 0 1200 60"
|
||||
preserveAspectRatio="none">
|
||||
<path d="M1200,9c0,0-305.005,0-401.001,0C733,9,675.327,4.969,598,4.969C514.994,4.969,449.336,9,400.333,9C299.666,9,0,9,0,9v43c0,0,299.666,0,400.333,0c49.002,0,114.66,3.484,197.667,3.484c77.327,0,135-3.484,200.999-3.484C894.995,52,1200,52,1200,52V9z"/>
|
||||
</svg>
|
||||
{{ form_errors(form.username) }}
|
||||
</div>
|
||||
|
||||
{{ form_label(form.plainPassword.first) }}
|
||||
{{ form_widget(form.plainPassword.first) }}
|
||||
{{ form_errors(form.plainPassword.first) }}
|
||||
<div class="input input--kozakura">
|
||||
{{ form_widget(form.plainPassword.first, {'attr': {'class': 'input__field input__field--kozakura'}}) }}
|
||||
<label class="input__label input__label--kozakura" for="fos_user_registration_form_plainPassword_first">
|
||||
<span class="input__label-content input__label-content--kozakura"
|
||||
data-content="Password">Password</span>
|
||||
</label>
|
||||
<svg class="graphic graphic--kozakura" width="300%" height="100%" viewBox="0 0 1200 60"
|
||||
preserveAspectRatio="none">
|
||||
<path d="M1200,9c0,0-305.005,0-401.001,0C733,9,675.327,4.969,598,4.969C514.994,4.969,449.336,9,400.333,9C299.666,9,0,9,0,9v43c0,0,299.666,0,400.333,0c49.002,0,114.66,3.484,197.667,3.484c77.327,0,135-3.484,200.999-3.484C894.995,52,1200,52,1200,52V9z"/>
|
||||
</svg>
|
||||
{{ form_errors(form.plainPassword.first) }}
|
||||
</div>
|
||||
|
||||
{{ form_label(form.plainPassword.second) }}
|
||||
{{ form_widget(form.plainPassword.second) }}
|
||||
{{ form_errors(form.plainPassword.second) }}
|
||||
<div class="input input--kozakura">
|
||||
{{ form_widget(form.plainPassword.second, {'attr': {'class': 'input__field input__field--kozakura'}}) }}
|
||||
<label class="input__label input__label--kozakura"
|
||||
for="fos_user_registration_form_plainPassword_second">
|
||||
<span class="input__label-content input__label-content--kozakura" data-content="Repeat password">Repeat password</span>
|
||||
</label>
|
||||
<svg class="graphic graphic--kozakura" width="300%" height="100%" viewBox="0 0 1200 60"
|
||||
preserveAspectRatio="none">
|
||||
<path d="M1200,9c0,0-305.005,0-401.001,0C733,9,675.327,4.969,598,4.969C514.994,4.969,449.336,9,400.333,9C299.666,9,0,9,0,9v43c0,0,299.666,0,400.333,0c49.002,0,114.66,3.484,197.667,3.484c77.327,0,135-3.484,200.999-3.484C894.995,52,1200,52,1200,52V9z"/>
|
||||
</svg>
|
||||
{{ form_errors(form.plainPassword.second) }}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input type="submit" value="{{ 'registration.submit'|trans }}" />
|
||||
<div class="input-submit">
|
||||
<input class="submit" type="submit" value="{{ 'registration.submit'|trans }}"/>
|
||||
</div>
|
||||
{{ form_end(form) }}
|
||||
</div>
|
||||
|
||||
{% include('@JotunheimrUser/Social/facebook.html.twig') %}
|
||||
</div>
|
||||
{{ form_end(form) }}
|
||||
{% endblock fos_user_content %}
|
||||
|
||||
{% block javascripts %}
|
||||
{{ parent() }}
|
||||
|
||||
{% javascripts
|
||||
'@JotunheimrUserBundle/Resources/public/js/register.js' %}
|
||||
<script type="text/javascript" src="{{ asset_url }}"></script>
|
||||
{% endjavascripts %}
|
||||
{% endblock %}
|
||||
|
||||
{% block stylesheets %}
|
||||
{{ parent() }}
|
||||
|
||||
{% stylesheets filter='cssrewrite'
|
||||
'@JotunheimrUserBundle/Resources/public/css/font-awesome/css/font-awesome.min.css'
|
||||
'@JotunheimrUserBundle/Resources/public/css/register.css' %}
|
||||
<link rel="stylesheet" media="screen" href="{{ asset_url }}"/>
|
||||
{% endstylesheets %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user