Tidying up

This commit is contained in:
terakilobyte
2015-01-09 22:07:20 -05:00
parent b4395e2b59
commit c90c61720e

View File

@ -5,13 +5,12 @@ block content
form.form-horizontal(method='POST', action='/email-signup', name="signupForm", novalidate="novalidate") form.form-horizontal(method='POST', action='/email-signup', name="signupForm", novalidate="novalidate")
input(type='hidden', name='_csrf', value=_csrf) input(type='hidden', name='_csrf', value=_csrf)
.form-group .form-group
h3 .col-sm-6.col-sm-offset-3
.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='')
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-show="signupForm.email.$error.unique && !signupForm.email.$pristine")
.col-sm-3(ng-show="signupForm.email.$error.unique && !signupForm.email.$pristine") alert(type='danger')
alert(type='danger') span.ion-close-circled
span.ion-close-circled | This email is taken.
| This email is taken.
.form-group .form-group
.col-sm-6.col-sm-offset-3 .col-sm-6.col-sm-offset-3
input.form-control(type='text', name='username', ng-keypress='', autocomplete="off", id='username', placeholder='username', ng-model='username', unique-username='', required, ng-minlength=5, ng-maxlength=20) input.form-control(type='text', name='username', ng-keypress='', autocomplete="off", id='username', placeholder='username', ng-model='username', unique-username='', required, ng-minlength=5, ng-maxlength=20)