diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@smile.fr> | 2015-10-05 22:16:18 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@smile.fr> | 2015-10-05 22:16:18 +0200 |
commit | ec3ce598f6423fcccd88a4fdd77f817c50bc5ab6 (patch) | |
tree | 1897d513ea9f1041e19e29b1e763eb8969f3b51c /src/Wallabag/UserBundle/Resources/views/themes/material/Registration/register_content.html.twig | |
parent | 4c5e5441831430af2b8f49dbeb0c76da6993eceb (diff) | |
download | wallabag-ec3ce598f6423fcccd88a4fdd77f817c50bc5ab6.tar.gz wallabag-ec3ce598f6423fcccd88a4fdd77f817c50bc5ab6.tar.zst wallabag-ec3ce598f6423fcccd88a4fdd77f817c50bc5ab6.zip |
material design for register/login/recover pages
Diffstat (limited to 'src/Wallabag/UserBundle/Resources/views/themes/material/Registration/register_content.html.twig')
-rw-r--r-- | src/Wallabag/UserBundle/Resources/views/themes/material/Registration/register_content.html.twig | 40 |
1 files changed, 36 insertions, 4 deletions
diff --git a/src/Wallabag/UserBundle/Resources/views/themes/material/Registration/register_content.html.twig b/src/Wallabag/UserBundle/Resources/views/themes/material/Registration/register_content.html.twig index 26a91433..b356f58c 100644 --- a/src/Wallabag/UserBundle/Resources/views/themes/material/Registration/register_content.html.twig +++ b/src/Wallabag/UserBundle/Resources/views/themes/material/Registration/register_content.html.twig | |||
@@ -2,12 +2,44 @@ | |||
2 | 2 | ||
3 | <form action="{{ path('fos_user_registration_register') }}" {{ form_enctype(form) }} method="POST" class="fos_user_registration_register"> | 3 | <form action="{{ path('fos_user_registration_register') }}" {{ form_enctype(form) }} method="POST" class="fos_user_registration_register"> |
4 | <div class="card-content"> | 4 | <div class="card-content"> |
5 | {{ form_widget(form) }} | 5 | <div class="row"> |
6 | <input type="submit" value="{{ 'registration.submit'|trans }}" /> | 6 | |
7 | {{ form_errors(form) }} | ||
8 | {{ form_widget(form._token) }} | ||
9 | |||
10 | {% for flashMessage in app.session.flashbag.get('notice') %} | ||
11 | <span class="black-text"><p>{{ flashMessage }}</p></span> | ||
12 | {% endfor %} | ||
13 | |||
14 | <div class="input-field col s12"> | ||
15 | {{ form_errors(form.email) }} | ||
16 | <label for="fos_user_registration_form_email">{% trans %}Email{% endtrans %}</label> | ||
17 | <input type="text" id="fos_user_registration_form_email" name="fos_user_registration_form[email]" /> | ||
18 | </div> | ||
19 | |||
20 | <div class="input-field col s12"> | ||
21 | {{ form_errors(form.username) }} | ||
22 | <label for="fos_user_registration_form_username">{% trans %}Username{% endtrans %}</label> | ||
23 | <input type="text" id="fos_user_registration_form_username" name="fos_user_registration_form[username]" /> | ||
24 | </div> | ||
25 | |||
26 | <div class="input-field col s12"> | ||
27 | {{ form_errors(form.plainPassword.first) }} | ||
28 | <label for="fos_user_registration_form_plainPassword_first">{% trans %}Password{% endtrans %}</label> | ||
29 | <input type="password" id="fos_user_registration_form_plainPassword_first" name="fos_user_registration_form[plainPassword][first]" /> | ||
30 | </div> | ||
31 | |||
32 | <div class="input-field col s12"> | ||
33 | {{ form_errors(form.plainPassword.second) }} | ||
34 | <label for="fos_user_registration_form_plainPassword_second">{% trans %}Repeat password{% endtrans %}</label> | ||
35 | <input type="password" id="fos_user_registration_form_plainPassword_second" name="fos_user_registration_form[plainPassword][second]" /> | ||
36 | </div> | ||
37 | </div> | ||
7 | </div> | 38 | </div> |
8 | <div class="card-action"> | 39 | <div class="card-action center"> |
40 | <a href="{{ path('fos_user_security_login') }}" class="waves-effect waves-light grey btn"><i class="material-icons left"></i> {% trans %}Login{% endtrans %}</a> | ||
9 | <button class="btn waves-effect waves-light" type="submit" name="send"> | 41 | <button class="btn waves-effect waves-light" type="submit" name="send"> |
10 | {% trans %}Create account{% endtrans %} | 42 | {{ 'registration.submit'|trans({}, 'FOSUserBundle') }} |
11 | <i class="mdi-content-send right"></i> | 43 | <i class="mdi-content-send right"></i> |
12 | </button> | 44 | </button> |
13 | </div> | 45 | </div> |