diff options
author | Pacien TRAN-GIRARD | 2015-02-08 20:03:02 +0100 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2015-02-08 20:03:02 +0100 |
commit | c00cb6ae05f548f7ae270a93ad44f57207380406 (patch) | |
tree | d4fff3d2ec28fcfb5be4e0eed2621f8ac1462b74 /app/views/pages/auth/signupForm.scala.html | |
parent | 00443f9d168dc4fc272dee84c9ab8641062bf259 (diff) | |
download | minibay-c00cb6ae05f548f7ae270a93ad44f57207380406.tar.gz |
Put views in packages
Diffstat (limited to 'app/views/pages/auth/signupForm.scala.html')
-rw-r--r-- | app/views/pages/auth/signupForm.scala.html | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/app/views/pages/auth/signupForm.scala.html b/app/views/pages/auth/signupForm.scala.html new file mode 100644 index 0000000..b026167 --- /dev/null +++ b/app/views/pages/auth/signupForm.scala.html | |||
@@ -0,0 +1,43 @@ | |||
1 | @(signupForm: Form[SignupData])(implicit flash: Flash, token: play.filters.csrf.CSRF.Token) | ||
2 | |||
3 | @templates.ebe("Sign up")() { | ||
4 | |||
5 | <div class="pure-g"> | ||
6 | <div class="pure-u-1 pure-u-lg-1-2 centered"> | ||
7 | |||
8 | <h2>Sign up</h2> | ||
9 | |||
10 | @views.html.fragments.forms.globalErrors(signupForm) | ||
11 | |||
12 | @helper.form(action = routes.Profile.signupSubmit(), 'class -> "pure-form pure-form-stacked") { | ||
13 | |||
14 | @helper.CSRF.formField | ||
15 | |||
16 | <fieldset> | ||
17 | @views.html.fragments.forms.labeledField(signupForm("username"), "text", "Username") | ||
18 | @views.html.fragments.forms.labeledField(signupForm("password"), "password", "Password") | ||
19 | @views.html.fragments.forms.labeledField(signupForm("passwordCheck"), "password", "Password check") | ||
20 | </fieldset> | ||
21 | |||
22 | <fieldset> | ||
23 | @views.html.fragments.forms.labeledField(signupForm("firstName"), "text", "First name") | ||
24 | @views.html.fragments.forms.labeledField(signupForm("lastName"), "text", "Last name") | ||
25 | @views.html.fragments.forms.labeledField(signupForm("birthdate"), "date", "Birthdate") | ||
26 | </fieldset> | ||
27 | |||
28 | <fieldset> | ||
29 | @views.html.fragments.forms.labeledField(signupForm("email"), "email", "E-mail address") | ||
30 | @views.html.fragments.forms.labeledField(signupForm("phone"), "tel", "Phone number") | ||
31 | @views.html.fragments.forms.labeledField(signupForm("address"), "text", "Address") | ||
32 | @views.html.fragments.forms.labeledField(signupForm("postalCode"), "text", "Postal code") | ||
33 | @views.html.fragments.forms.labeledField(signupForm("country"), "text", "Country code") | ||
34 | </fieldset> | ||
35 | |||
36 | <button type="submit" class="pure-button pure-input-1 pure-button-primary">Sign up</button> | ||
37 | |||
38 | } | ||
39 | |||
40 | </div> | ||
41 | </div> | ||
42 | |||
43 | } | ||