tellform/public/modules/users/views/authentication/signup.client.view.html

71 lines
3.1 KiB
HTML
Raw Normal View History

2015-06-30 19:42:02 +00:00
<section class="row auth signup-view" data-ng-controller="AuthenticationController">
<!-- <h3 class="col-md-12 text-center">Sign up using your social accounts</h3>
2015-06-29 22:51:29 +00:00
<div class="col-md-12 text-center">
<a href="/auth/facebook" class="undecorated-link">
<img src="/modules/users/img/buttons/facebook.png">
</a>
<a href="/auth/twitter" class="undecorated-link">
<img src="/modules/users/img/buttons/twitter.png">
</a>
<a href="/auth/google" class="undecorated-link">
<img src="/modules/users/img/buttons/google.png">
</a>
<a href="/auth/linkedin" class="undecorated-link">
<img src="/modules/users/img/buttons/linkedin.png">
</a>
<a href="/auth/github" class="undecorated-link">
<img src="/modules/users/img/buttons/github.png">
</a>
2015-06-30 19:42:02 +00:00
</div> -->
2016-07-04 21:31:33 +00:00
<h3 class="col-md-12 text-center">{{ 'SIGNUP_HEADER_TEXT' | translate }}</h3>
2015-06-30 19:42:02 +00:00
<div class="col-xs-offset-2 col-xs-8 col-md-offset-3 col-md-6">
2016-07-04 21:31:33 +00:00
<form name="userForm" data-ng-submit="signup()" class="signin form-horizontal" autocomplete="off">
2015-06-29 22:51:29 +00:00
<fieldset>
2015-06-30 19:42:02 +00:00
<div data-ng-show="error" id="signup_errors" class="text-center text-danger">
2016-07-04 21:31:33 +00:00
{{'SIGNUP_ERROR_TEXT' | translate}}: <br>
2015-06-30 19:42:02 +00:00
<strong data-ng-bind="error"></strong>
</div>
2015-06-29 22:51:29 +00:00
<div class="form-group">
2016-06-16 00:38:22 +00:00
<label for="firstName">{{ 'FIRST_NAME_LABEL' | translate }}</label>
2016-03-30 01:16:36 +00:00
<input type="text" ng-pattern="/^[a-zA-Z0-9 \-.]*$/" required id="firstName" name="firstName" class="form-control" ng-model="credentials.firstName" placeholder="First Name">
2015-06-29 22:51:29 +00:00
</div>
<div class="form-group">
2016-06-16 00:38:22 +00:00
<label for="lastName">{{ 'LAST_NAME_LABEL' | translate }}</label>
2016-03-30 01:16:36 +00:00
<input type="text" ng-pattern="/^[a-zA-Z0-9 \-.]*$/" required id="lastName" name="lastName" class="form-control" ng-model="credentials.lastName" placeholder="Last Name">
2015-06-29 22:51:29 +00:00
</div>
2016-06-16 00:38:22 +00:00
<div class="row form-group">
2016-07-04 21:31:33 +00:00
<div class="field-title">
2016-06-16 00:38:22 +00:00
<b>{{ 'LANGUAGE_LABEL' | translate }}</b>
</div>
2016-07-04 21:31:33 +00:00
<div class="field-input">
2016-06-16 00:38:22 +00:00
<select ng-model="user.language" required>
<option ng-repeat="language in languages"
ng-selected="language == user.language"
value="{{language}}">
{{language}}
</option>
</select>
</div>
</div>
2015-07-07 01:56:38 +00:00
<hr>
2016-06-09 03:32:33 +00:00
<div class="form-group">
2016-07-04 21:31:33 +00:00
<label for="username">{{ 'USERNAME_LABEL' | translate }}</label>
<input type="text" id="username" name="username" class="form-control" ng-pattern="languageRegExp" ng-minlength="4" ng-model="credentials.username" placeholder="Username">
2016-06-09 03:32:33 +00:00
</div>
2015-06-29 22:51:29 +00:00
<div class="form-group">
2016-06-16 00:38:22 +00:00
<label for="email">{{ 'EMAIL_LABEL' | translate }}</label>
2016-03-30 01:16:36 +00:00
<input type="email" id="email" name="email" class="form-control" ng-model="credentials.email" placeholder="Email">
2015-06-29 22:51:29 +00:00
</div>
<div class="form-group">
2016-06-16 00:38:22 +00:00
<label for="password">{{ 'PASSWORD_LABEL' | translate }}</label>
2016-03-30 01:16:36 +00:00
<input type="password" id="password" name="password" class="form-control" ng-model="credentials.password" placeholder="Password">
2015-06-29 22:51:29 +00:00
</div>
<div class="text-center form-group">
2016-06-16 00:38:22 +00:00
<button type="submit" class="btn btn-large btn-primary">{{ 'SIGNUP_BTN' | translate }}</button>
2015-06-29 22:51:29 +00:00
</div>
2015-06-30 19:42:02 +00:00
2015-06-29 22:51:29 +00:00
</fieldset>
</form>
</div>
2016-03-30 01:16:36 +00:00
</section>