Removed jquery-validate, use server-side only instead
This commit is contained in:
@ -7,17 +7,6 @@ body {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.help-block.error,
|
|
||||||
label.error {
|
|
||||||
color: #e74c3c;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-control.error,
|
|
||||||
.form-control.error:focus {
|
|
||||||
border: 2px solid #e74c3c;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.btn-label {
|
.btn-label {
|
||||||
position: relative;
|
position: relative;
|
||||||
left: -12px;
|
left: -12px;
|
||||||
|
2
public/js/lib/jquery.validate.js
vendored
2
public/js/lib/jquery.validate.js
vendored
File diff suppressed because one or more lines are too long
@ -1,3 +1,2 @@
|
|||||||
/* global $ */
|
/* global $ */
|
||||||
|
|
||||||
$('form').validate();
|
|
@ -50,5 +50,4 @@ html
|
|||||||
|
|
||||||
script(src='/js/lib/jquery.js')
|
script(src='/js/lib/jquery.js')
|
||||||
script(src='/js/lib/bootstrap.js')
|
script(src='/js/lib/bootstrap.js')
|
||||||
script(src='/js/lib/jquery.validate.js')
|
|
||||||
script(src='/js/main.js')
|
script(src='/js/main.js')
|
||||||
|
@ -8,23 +8,23 @@ block content
|
|||||||
.row
|
.row
|
||||||
.col-xs-6.col-sm-6.col-md-6
|
.col-xs-6.col-sm-6.col-md-6
|
||||||
label.control-label(for='firstName') First Name
|
label.control-label(for='firstName') First Name
|
||||||
input.form-control(type='text', name='firstName', id='firstName', placeholder='First Name', autofocus='', required='')
|
input.form-control(type='text', name='firstName', id='firstName', placeholder='First Name', autofocus='')
|
||||||
.col-xs-6.col-sm-6.col-md-6
|
.col-xs-6.col-sm-6.col-md-6
|
||||||
label.control-label(for='lastName') Last Name
|
label.control-label(for='lastName') Last Name
|
||||||
input.form-control(type='text', name='lastName', id='lastName', placeholder='Last Name', required='')
|
input.form-control(type='text', name='lastName', id='lastName', placeholder='Last Name')
|
||||||
.form-group
|
.form-group
|
||||||
label.control-label(for='email') Email
|
label.control-label(for='email') Email
|
||||||
input.form-control(type='email', name='email', id='email', placeholder='Email', required='')
|
input.form-control(type='email', name='email', id='email', placeholder='Email')
|
||||||
.form-group
|
.form-group
|
||||||
label.control-label(for='password') Password
|
label.control-label(for='password') Password
|
||||||
input.form-control(type='password', name='password', id='password', placeholder='Password', required='')
|
input.form-control(type='password', name='password', id='password', placeholder='Password')
|
||||||
.form-group
|
.form-group
|
||||||
label.control-label(for='confirmPassword') Confirm Password
|
label.control-label(for='confirmPassword') Confirm Password
|
||||||
input.form-control(type='password', id='confirmPassword', placeholder='Confirm Password', required='')
|
input.form-control(type='password', id='confirmPassword', placeholder='Confirm Password')
|
||||||
.form-group
|
.form-group
|
||||||
button.btn.btn.btn-primary(type='submit') Signup
|
button.btn.btn.btn-primary(type='submit') Signup
|
||||||
|
|
||||||
if messages.length
|
if messages.length
|
||||||
.alert.alert-danger
|
.alert.alert-danger
|
||||||
for message in messages
|
for message in messages
|
||||||
div= message
|
div= message
|
||||||
|
Reference in New Issue
Block a user