This repository was archived by the owner on Dec 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathspRegistrationForm.tpl.html
More file actions
73 lines (69 loc) · 2.56 KB
/
spRegistrationForm.tpl.html
File metadata and controls
73 lines (69 loc) · 2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<style>
.btn.btn-social {
margin-right: 7px;
min-width: 100px;
}
.btn.btn-facebook {
color: white;
background-color: #3B5998;
border-color: #37528C;
}
.btn.btn-facebook:hover,
.btn.btn-facebook:focus {
color: white;
background-color: #2F487B;
border-color: #2F487B;
}
.btn.btn-google {
color: white;
background-color: #dc4e41;
border-color: #C1453A;
}
.btn.btn-google:hover,
.btn.btn-google:focus {
color: white;
background-color: #C74539;
border-color: #AF4138;
}
.sp-loading {
text-align: center;
}
</style>
<div class="row">
<div class="col-sm-offset-4 col-xs-12 col-sm-4">
<p class="alert alert-success" ng-show="created && !enabled">Your account has been created. Please check your email for a verification link.</p>
<p ng-show="created && !enabled" class="pull-right">
<a href="/login">Back to Login</a>
</p>
<p class="alert alert-success" ng-show="created && enabled && !authenticating">Your account has been created. <a href="/login">Login Now</a>.</p>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<div ng-show="!viewModel" class="sp-loading">
Loading...
</div>
<form sp-auto-focus-form="viewModel" class="form-horizontal" ng-hide="!viewModel || (created && !authenticating)" ng-submit="submit()">
<div class="form-group" ng-repeat="field in viewModel.form.fields">
<label for="sp-{{field.name}}" class="col-xs-12 col-sm-4 control-label">{{field.label}}</label>
<div class="col-xs-12 col-sm-4">
<input class="form-control" name="{{field.name}}" id="sp-{{field.name}}" type="{{field.type}}" ng-model="formModel[field.name]" placeholder="{{field.placeholder}}" ng-disabled="creating" ng-required="field.required">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-4 col-sm-4">
<p class="alert alert-danger" ng-show="error" ng-bind="error"></p>
<button type="submit" class="btn btn-primary" ng-disabled="creating">Register</button>
</div>
</div>
<div class="form-group" ng-show="viewModel.accountStores.length">
<div class="col-sm-offset-4 col-sm-4">
<p>Or register with:</p>
<button ng-repeat="accountStore in viewModel.accountStores" type="button" class="btn btn-social btn-{{accountStore.provider.providerId}}" sp-social-login="accountStore" sp-options="{{accountStore.provider}}" style="text-transform: capitalize;">
{{providerName}}
</button>
</div>
</div>
</form>
</div>
</div>