add @ sign and autofocus to twitter form

This commit is contained in:
Michael Q Larson
2015-01-24 15:20:48 -08:00
parent 54c3305281
commit 65384b2913

View File

@ -65,7 +65,11 @@ block content
.form-group.text-center
label(for="existingUserName") If you paired with someone, enter their username here.
.col-xs-10.col-xs-offset-1.col-sm-8.col-sm-offset-2.col-md-8.col-md-offset-2
input.form-control#completed-with(name="existingUser", placeholder='Otherwise just leave it blank', existing-username='', ng-model="existingUser")
.input-group.twitter-input
// extra field to distract password tools like lastpass from injecting css into our username field
input.form-control(ng-show="false")
span.input-group-addon @
input.form-control#completed-with(name="existingUser", placeholder='Otherwise just leave it blank', existing-username='', ng-model="existingUser", autofocus)
.col-xs-10.col-xs-offset-1.col-sm-8.col-sm-offset-2.col-md-8.col-md-offset-2(ng-show="completedWithForm.$error.exists && !completedWithForm.existingUser.$pristine")
alert(type='danger')
span.ion-close-circled