Created
November 14, 2013 17:02
-
-
Save tangorri/7470380 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form novalidate name="signupForm" ng-submit="onSingupSubmit()" ng-controller="SignupCtrl"> | |
<div class="account-form white-rounded-top"> | |
<h3 translate>PAGE_ACCOUNT.SIGNUP</h3> | |
<div ng-repeat="error in errors" class="alert alert-danger" translate>{{error}}</div> | |
<div ng-repeat="info in infos" class="alert alert-info" translate>{{info}}</div> | |
<div class="form-group" ng-class="{'has-error': signupForm.login.$invalid}"> | |
<input class="form-control" ng-model="account.login" type="email" name="login" placeholder="{{'PAGE_ACCOUNT.EMAIL' | translate }}" required> | |
<span class="help-block" ng-show="signupForm.login.$invalid" translate>PAGE_ACCOUNT.EMAIL_VALID_HELPER</span> | |
</div> | |
<div class="form-group" ng-class="{'has-error': signupForm.password.$invalid}"> | |
<input class="form-control" ng-model="account.password" type="password" name="password" placeholder="{{'PAGE_ACCOUNT.PASSWORD' | translate }}" ng-minlength="8" required> | |
<span class="help-block" ng-show="signupForm.password.$invalid" translate>PAGE_ACCOUNT.PASSWORD_VALID_HELPER</span> | |
</div> | |
<div class="form-group" ng-class="{'has-error': signupForm.password_confirmation.$invalid}"> | |
<input class="form-control" ng-model="account.passwordConfirm" type="password" name="password_confirmation" placeholder="{{'PAGE_ACCOUNT.PASSWORD_CONFIRM' | translate }}" required equals="{{password}}"> | |
<span class="help-block" ng-show="signupForm.password_confirmation.$invalid" translate>PAGE_ACCOUNT.PASSWORD_CONFIRM_VALID_HELPER</span> | |
</div> | |
<button translate class="validation-btn" ng-disabled="!signupForm.$valid">PAGE_ACCOUNT.SIGNUP</button> | |
<a translate href="#/Account/Signin/" class="small_link">PAGE_ACCOUNT.ALLREADY_HAVE_ACCOUNT</a> | |
</div> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment