1
|
<%--
|
2
|
Created by IntelliJ IDEA.
|
3
|
User: sofia
|
4
|
Date: 19/10/2017
|
5
|
Time: 4:30 μμ
|
6
|
To change this template use File | Settings | File Templates.
|
7
|
--%>
|
8
|
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
9
|
<!DOCTYPE html>
|
10
|
<html lang="en-gb" dir="ltr" vocab="http://schema.org/">
|
11
|
<head>
|
12
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
13
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
14
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
15
|
<base href=".">
|
16
|
<title>OpenAIRE - Register</title>
|
17
|
<script src="./js/jquery.js"></script>
|
18
|
<script src="./js/uikit.js"></script>
|
19
|
<script src="./js/validation.js"></script>
|
20
|
<script src="./OpenAIRE_files/uikit-icons-max.js"></script>
|
21
|
<link rel="stylesheet" style="text/css" href="./css/theme.css">
|
22
|
<link rel="stylesheet" style="text/css" href="./css/custom.css">
|
23
|
<link rel="stylesheet" style="text/css" href="./css/aai-custom.css">
|
24
|
</head>
|
25
|
<body class="" style="">
|
26
|
<div class="uk-offcanvas-content uk-height-viewport">
|
27
|
<!-- MENU STARTS HERE -->
|
28
|
<!-- MAIN MENU STARTS HERE -->
|
29
|
<div class="tm-header tm-header-transparent" uk-header="">
|
30
|
<div class="uk-container uk-container-expand">
|
31
|
<nav class="uk-navbar" uk-navbar="{"align":"left"}">
|
32
|
<div class="uk-navbar-center">
|
33
|
<div class="uk-logo uk-navbar-item">
|
34
|
<img alt="OpenAIRE" class="uk-responsive-height" src="./images/Logo_Horizontal.png">
|
35
|
</div>
|
36
|
</div>
|
37
|
</nav>
|
38
|
</div>
|
39
|
</div>
|
40
|
<!-- MENU ENDS HERE -->
|
41
|
<!-- CONTENT STARTS HERE -->
|
42
|
<div class="first_page_section uk-section-default uk-section uk-padding-remove-vertical">
|
43
|
<div class="first_page_banner_headline uk-grid-collapse uk-flex-middle uk-margin-remove-vertical uk-grid" uk-grid="">
|
44
|
</div>
|
45
|
</div>
|
46
|
<div class=" uk-section uk-margin-small-top tm-middle custom-main-content" id="tm-main">
|
47
|
<div class="uk-container uk-container-small uk-margin-medium-top uk-margin-small-bottom uk-text-center">
|
48
|
<h2 class="uk-h2 uk-margin-small-bottom">Create new OpenAIRE account</h2>
|
49
|
<div class="uk-text-meta uk-margin-large-bottom">Use the same credentials for all our services</div>
|
50
|
<div uk-grid="" class="uk-grid uk-grid-stack">
|
51
|
<div class="tm-main uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l uk-row-first uk-first-column">
|
52
|
<div class="uk-grid ">
|
53
|
<!-- CENTER SIDE -->
|
54
|
<div class="uk-width-1-1@m uk-width-1-1@s uk-text-center">
|
55
|
<h3 class="uk-h3">Create an account</h3>
|
56
|
<div class="middle-box text-center loginscreen animated fadeInDown ">
|
57
|
<div class="uk-width-1-3@m uk-align-center">
|
58
|
<!-- REGISTER FORM -->
|
59
|
<div id="registerForm">
|
60
|
<form action="register" method="POST" target="GWTBootstrap3_AbstractForm_RepositoryManager_1" role="form" class="m-t" id="register_form">
|
61
|
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
|
62
|
<div class="alert alert-success" aria-hidden="true" style="display: none;"></div>
|
63
|
<div class="alert alert-danger" aria-hidden="true" style="display: none;"></div>
|
64
|
<div class="form-group">
|
65
|
<span class="msg_first_name_error uk-text-danger uk-text-small uk-float-left" style="display:none">Please enter your first name.</span>
|
66
|
<input id="first_name" name="first_name" type="text" placeholder="First name" class="form-control"></div>
|
67
|
<div class="form-group">
|
68
|
<span class="msg_last_name_error uk-text-danger uk-text-small uk-float-left" style="display:none">Please enter your last name.</span>
|
69
|
<input id="last_name" name="last_name" type="text" placeholder="Last name" class="form-control"></div>
|
70
|
<div class="form-group">
|
71
|
<input id="organization" name="organization" type="text" placeholder="Affiliation / Organization:" class="form-control"></div>
|
72
|
<div class="form-group">
|
73
|
<span class="msg_username_error uk-text-danger uk-text-small uk-float-left" style="display:none">Please enter your username.</span>
|
74
|
<input id="username" name="username" type="text" placeholder="Username" class="form-control"></div>
|
75
|
<div class="form-group">
|
76
|
<span class="msg_email_error uk-text-danger uk-text-small uk-float-left" style="display:none">Please enter your email.</span>
|
77
|
<span class="msg_email_validation_error uk-text-danger uk-text-small uk-float-left" style="display:none">Please enter a valid email.</span>
|
78
|
<span class="msg_email_conf_error uk-text-danger uk-text-small uk-float-left" style="display:none">These emails don't match.</span>
|
79
|
<input id="email" name="email" type="text" placeholder="Email" class="form-control"></div>
|
80
|
<div class="form-group">
|
81
|
<input id="email_conf" name="email_conf" type="text" placeholder="Confirm email" class="form-control"></div>
|
82
|
<%--<div class="form-group">--%>
|
83
|
<%--<span class="msg_password_error uk-text-danger uk-text-small uk-float-left" style="display:none">Please enter your password.</span>--%>
|
84
|
<%--<span class="msg_pass_conf_error uk-text-danger uk-text-small uk-float-left" style="display:none">These passwords don't match.</span>--%>
|
85
|
<%--<p><span class="msg_please_add uk-text-danger uk-text-small uk-float-left" style="display:none">Please add:  </span></p>--%>
|
86
|
<%--<span class="msg_lowercase_letter uk-text-danger uk-text-small uk-float-left" style="display:none">A lowercase letter.  </span>--%>
|
87
|
<%--<span class="msg_capital_letter uk-text-danger uk-text-small uk-float-left" style="display:none">A capital (uppercase) letter.   </span>--%>
|
88
|
<%--<span class="msg_number uk-text-danger uk-text-small uk-float-left" style="display:none">A number.  </span>--%>
|
89
|
<%--<span class="msg_lenght uk-text-danger uk-text-small uk-float-left" style="display:none">Minimum 6 characters.  </span>--%>
|
90
|
<%--<input id="password" name="password" type="password" placeholder="Password" class="form-control"></div>--%>
|
91
|
<%--<div class="form-group">--%>
|
92
|
<%--<input id="password_conf" name="password_conf" type="password" placeholder="Confirm password" class="form-control"></div>--%>
|
93
|
<div class="uk-margin uk-grid-small uk-child-width-auto uk-grid uk-text-left uk-grid-stack" uk-grid="">
|
94
|
<div class="uk-width-1-1 uk-text-meta uk-text-danger uk-first-column">All fields are required</div>
|
95
|
<div class="uk-width-1-1 uk-grid-margin uk-first-column">RECAPTHA I AM NOT A ROBOT THING GOES HERE</div>
|
96
|
<div class="uk-width-1-1 uk-grid-margin uk-first-column">
|
97
|
<button type="submit" class="uk-button uk-button-primary" onclick="return validateForm();">Register</button>
|
98
|
</div>
|
99
|
</div>
|
100
|
</form>
|
101
|
</div>
|
102
|
<!-- END OF REGISTER FORM -->
|
103
|
<script>
|
104
|
|
105
|
var myInput = document.getElementById("password");
|
106
|
//var myEmailInput = document.getElementById("email");
|
107
|
|
108
|
// When the user starts to type something inside the password field
|
109
|
myInput.onkeyup = function() {
|
110
|
|
111
|
// Validate lowercase letters
|
112
|
var lowerCaseLetters = /[a-z]/g;
|
113
|
if (myInput.value.match(lowerCaseLetters)) {
|
114
|
$(".msg_lowercase_letter").fadeOut();
|
115
|
} else {
|
116
|
$(".msg_lowercase_letter").fadeIn();
|
117
|
}
|
118
|
|
119
|
// Validate capital letters
|
120
|
var upperCaseLetters = /[A-Z]/g;
|
121
|
if (myInput.value.match(upperCaseLetters)) {
|
122
|
$(".msg_capital_letter").fadeOut();
|
123
|
} else {
|
124
|
$(".msg_capital_letter").fadeIn();
|
125
|
}
|
126
|
|
127
|
// Validate numbers
|
128
|
var numbers = /[0-9]/g;
|
129
|
if (myInput.value.match(numbers)) {
|
130
|
$(".msg_number").fadeOut();
|
131
|
} else {
|
132
|
$(".msg_number").fadeIn();
|
133
|
}
|
134
|
|
135
|
// Validate length
|
136
|
if (myInput.value.length >= 6) {
|
137
|
$(".msg_lenght").fadeOut();
|
138
|
} else {
|
139
|
$(".msg_lenght").fadeIn();
|
140
|
}
|
141
|
|
142
|
if(myInput.value.match(lowerCaseLetters) && myInput.value.match(upperCaseLetters)
|
143
|
&& myInput.value.match(numbers) && (myInput.value.length >= 6)){
|
144
|
if($(".msg_please_add").css('display')!='none'){
|
145
|
$(".msg_please_add").fadeOut();
|
146
|
}
|
147
|
} else {
|
148
|
if($(".msg_please_add").css('display')=='none') {
|
149
|
$(".msg_please_add").fadeIn();
|
150
|
}
|
151
|
}
|
152
|
}
|
153
|
|
154
|
// myEmailInput.onfocusOut = function() {
|
155
|
//
|
156
|
// }
|
157
|
|
158
|
$("#first_name").focusin(function () {
|
159
|
$(this).removeClass('aai-form-danger');
|
160
|
$(".msg_first_name_error").fadeOut();
|
161
|
});
|
162
|
|
163
|
$("#last_name").focusin(function () {
|
164
|
$(this).removeClass('aai-form-danger');
|
165
|
$(".msg_last_name_error").fadeOut();
|
166
|
});
|
167
|
|
168
|
$("#username").focusin(function () {
|
169
|
$(this).removeClass('aai-form-danger');
|
170
|
$(".msg_username_error").fadeOut();
|
171
|
});
|
172
|
|
173
|
$("#email").focusin(function () {
|
174
|
$(this).removeClass('aai-form-danger');
|
175
|
$(".msg_email_error").fadeOut();
|
176
|
$(".msg_email_validation_error").fadeOut();
|
177
|
});
|
178
|
|
179
|
$("#email_conf").focusin(function () {
|
180
|
$(this).removeClass('aai-form-danger');
|
181
|
$(".msg_email_conf_error").fadeOut();
|
182
|
});
|
183
|
|
184
|
$("#password").focusin(function () {
|
185
|
$(this).removeClass('aai-form-danger');
|
186
|
$(".msg_please_add").fadeOut();
|
187
|
$(".msg_password_error").fadeOut();
|
188
|
$(".msg_pass_conf_error").fadeOut();
|
189
|
$(".msg_lowercase_letter").fadeOut();
|
190
|
$(".msg_capital_letter").fadeOut();
|
191
|
$(".msg_number").fadeOut();
|
192
|
$(".msg_lenght").fadeOut();
|
193
|
});
|
194
|
|
195
|
$("#password_conf").focusin(function () {
|
196
|
$(this).removeClass('aai-form-danger');
|
197
|
$(".msg_pass_conf_error").fadeOut();
|
198
|
});
|
199
|
|
200
|
</script>
|
201
|
</div>
|
202
|
</ul>
|
203
|
</div>
|
204
|
</div>
|
205
|
<!-- END OF CENTER SIDE -->
|
206
|
</div>
|
207
|
</div>
|
208
|
</div>
|
209
|
</div>
|
210
|
</div>
|
211
|
<!-- CONTENT ENDS HERE -->
|
212
|
<!-- FOOTER STARTS HERE-->
|
213
|
<div class="custom-footer">
|
214
|
<div class="uk-section-primary uk-section uk-section-small uk-padding-remove-bottom">
|
215
|
<div class="uk-container">
|
216
|
<div class="uk-grid-margin uk-grid uk-grid-stack" uk-grid="">
|
217
|
<div class="uk-width-expand@m uk-light uk-first-column">
|
218
|
FOOTER???
|
219
|
</div>
|
220
|
</div>
|
221
|
</div>
|
222
|
</div>
|
223
|
</div>
|
224
|
</div>
|
225
|
</body>
|
226
|
</html>
|