Allow a user to register from the landing page. Fix spacing issues.

This commit is contained in:
yackob03 2013-10-01 19:37:33 -04:00
parent 70685e2aa8
commit 0d6d463fc1
5 changed files with 205 additions and 137 deletions

View file

@ -8,12 +8,21 @@
</div>
<div class="signup-container">
<form method="post" class="form-signup">
<input type="text" class="form-control" placeholder="Create a username" name="username" autofocus>
<input type="text" class="form-control" placeholder="Email address" name="email">
<input type="password" class="form-control" placeholder="Create a password" name="password">
<button class="btn btn-lg btn-primary btn-block" type="submit">Get Started!</button>
</form>
<div ng-show="user.anonymous">
<form class="form-signup" name="signupForm" ng-submit="register()" data-trigger="manual" data-content="{{ registerError }}" data-placement="left" ng-show="!awaitingConfirmation">
<input type="text" class="form-control" placeholder="Create a username" name="username" ng-model="newUser.username" autofocus required>
<input type="email" class="form-control" placeholder="Email address" ng-model="newUser.email" required>
<input type="password" class="form-control" placeholder="Create a password" ng-model="newUser.password" required>
<input type="password" class="form-control" placeholder="Verify your password" ng-model="newUser.repeatePassword" match="newUser.password" required>
<button class="btn btn-lg btn-primary btn-block" ng-disabled="signupForm.$invalid" type="submit">Get Started!</button>
</form>
<div ng-show="awaitingConfirmation">
<div class="sub-message">Thank you for registering! We have sent you an activation email. You must <b>verify your email address</b> before you can continue.</div>
</div>
</div>
<div ng-show="!user.anonymous">
<div class="sub-message">Some message about how awesome it is to be a Quay user goes here.</div>
</div>
</div>
<div class="shoutouts">