Skip to content

Commit

Permalink
utilize angular valid / email directive
Browse files Browse the repository at this point in the history
  • Loading branch information
enkodellc committed Jun 4, 2014
1 parent 0857f8b commit d4a8774
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/modules/users/views/signup.client.view.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h3 class="col-md-12 text-center">Sign up using your social accounts</h3>
</div>
<h3 class="col-md-12 text-center">Or with your email</h3>
<div class="col-xs-offset-2 col-xs-8 col-md-offset-5 col-md-2">
<form data-ng-submit="signup()" class="signin form-horizontal" novalidate autocomplete="off">
<form name="userForm" data-ng-submit="userForm.$valid && signup()" class="signin form-horizontal" novalidate autocomplete="off">
<fieldset>
<div class="form-group">
<label for="firstName">First Name</label>
Expand All @@ -28,7 +28,7 @@ <h3 class="col-md-12 text-center">Or with your email</h3>
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="text" id="email" name="email" class="form-control" data-ng-model="credentials.email" placeholder="Email">
<input type="email" id="email" name="email" class="form-control" data-ng-model="credentials.email" placeholder="Email">
</div>
<div class="form-group">
<label for="username">Username</label>
Expand All @@ -48,4 +48,4 @@ <h3 class="col-md-12 text-center">Or with your email</h3>
</fieldset>
</form>
</div>
</section>
</section>

0 comments on commit d4a8774

Please sign in to comment.