freeCodeCamp/server/views/account/email-signup.jade

52 lines
2.4 KiB
Plaintext
Raw Normal View History

2014-12-08 00:25:43 +00:00
extends ../layout
block content
2015-01-10 01:52:19 +00:00
.jumbotron.text-center
h2 Sign up with an email address here:
2015-06-09 23:43:08 +00:00
form.form-horizontal(method='POST', action='/api/users', name="signupForm", novalidate="novalidate")
2015-01-10 01:52:19 +00:00
input(type='hidden', name='_csrf', value=_csrf)
.form-group
2015-01-10 03:07:20 +00:00
.col-sm-6.col-sm-offset-3
input.form-control(type='email', ng-model='email', ng-keypress='', name='email', id='email', placeholder='email', autofocus, required, autocomplete="off", unique-email='')
.col-sm-6.col-sm-offset-3(ng-cloak, ng-show="signupForm.email.$error.required && !signupForm.email.$pristine")
alert(type='danger')
span.ion-close-circled
| Your email address is required.
.col-sm-6.col-sm-offset-3(ng-cloak, ng-show="signupForm.$error.email && !signupForm.email.$pristine")
alert(type='danger')
span.ion-close-circled
| Please enter a valid email format.
.col-sm-6.col-sm-offset-3(ng-cloak, ng-show="signupForm.email.$error.unique && !signupForm.email.$pristine")
2015-01-10 03:07:20 +00:00
alert(type='danger')
span.ion-close-circled
| That email address is already in use.
2015-01-10 01:52:19 +00:00
.form-group
.col-sm-6.col-sm-offset-3
input.form-control(type='password', ng-model='password', name='password', id='password', placeholder='password', required, ng-minlength=8)
.col-sm-6.col-sm-offset-3(ng-cloak, ng-show="signupForm.password.$error.minlength && !signupForm.password.$pristine")
2015-01-10 04:30:29 +00:00
alert(type='danger')
span.ion-close-circled
| Your password must be at least 8 characters long.
2015-01-10 01:52:19 +00:00
.form-group
.col-sm-6.col-sm-offset-3
2015-01-10 04:30:29 +00:00
input.form-control(type='password', ng-model='confirmPassword', name='confirmPassword', id='confirmPassword', placeholder='confirm password', required, ng-minlength=5)
.col-sm-6.col-sm-offset-3(ng-cloak, ng-show="(confirmPassword !== password) && !signupForm.confirmPassword.$pristine")
alert(type='danger')
span.ion-close-circled
| Passwords must match.
2015-01-10 01:52:19 +00:00
.form-group
.col-sm-6.col-sm-offset-3
button.btn.btn-success(type='submit', ng-disabled='signupForm.$invalid')
2015-01-10 01:52:19 +00:00
span.ion-person-add
| Signup
br
br
br
br
br
br
br
br
br
script.
var challengeName = 'Email Signup'