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
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
11
|
<html lang="en-gb" dir="ltr" vocab="http://schema.org/">
|
12
|
<head>
|
13
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
14
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
15
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
16
|
<base href=".">
|
17
|
<title>OpenAIRE - Register</title>
|
18
|
<script src="./js/jquery.js"></script>
|
19
|
<script src="./js/uikit.js"></script>
|
20
|
<script src="./js/validation.js"></script>
|
21
|
<script src="./js/uikit-icons-max.js"></script>
|
22
|
<link rel="stylesheet" style="text/css" href="./css/theme.css">
|
23
|
<link rel="stylesheet" style="text/css" href="./css/custom.css">
|
24
|
<link rel="stylesheet" style="text/css" href="./css/aai-custom.css">
|
25
|
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon/favicon-32x32.png">
|
26
|
<link rel="icon" type="image/png" sizes="96x96" href="images/favicon//favicon-96x96.png">
|
27
|
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon/favicon-16x16.png">
|
28
|
<link href="images/favicon/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
|
29
|
</head>
|
30
|
<body class="" style="">
|
31
|
<div class="uk-offcanvas-content uk-height-viewport">
|
32
|
<!-- MENU STARTS HERE -->
|
33
|
<!-- MAIN MENU STARTS HERE -->
|
34
|
<div class="tm-header tm-header-transparent" uk-header="">
|
35
|
<div class="uk-container uk-container-expand">
|
36
|
<nav class="uk-navbar" uk-navbar="{"align":"left"}">
|
37
|
<div class="uk-navbar-center">
|
38
|
<div class="uk-logo uk-navbar-item">
|
39
|
<img alt="OpenAIRE" class="uk-responsive-height" src="./images/Logo_Horizontal.png">
|
40
|
</div>
|
41
|
</div>
|
42
|
</nav>
|
43
|
</div>
|
44
|
</div>
|
45
|
<!-- MENU ENDS HERE -->
|
46
|
<!-- CONTENT STARTS HERE -->
|
47
|
<div class="first_page_section uk-section-default uk-section uk-padding-remove-vertical">
|
48
|
<div class="first_page_banner_headline uk-grid-collapse uk-flex-middle uk-margin-remove-vertical uk-grid" uk-grid="">
|
49
|
</div>
|
50
|
</div>
|
51
|
<div class=" uk-section uk-margin-small-top tm-middle custom-main-content" id="tm-main">
|
52
|
<div class="uk-container uk-container-small uk-margin-medium-top uk-margin-small-bottom uk-text-center">
|
53
|
<h2 class="uk-h2 uk-margin-small-bottom">Add a new service</h2>
|
54
|
<%--<div class="uk-text-meta uk-margin-large-bottom">Use the same credentials for all our services</div>--%>
|
55
|
<div class="tm-main uk-width-2-3@s uk-width-2-3@m uk-width-3-4@l uk-row-first uk-first-column uk-align-center">
|
56
|
<div class="uk-grid ">
|
57
|
<!-- CENTER SIDE -->
|
58
|
<div class="uk-width-1-1@m uk-width-1-1@s uk-text-center">
|
59
|
<h3 class="uk-h3">Please provide the basic information on your new service</h3>
|
60
|
<div class="middle-box text-center loginscreen animated fadeInDown ">
|
61
|
<div class="k-width-1-1@m uk-width-1-1@s uk-text-center">
|
62
|
<!-- REGISTER FORM -->
|
63
|
<div id="registerForm">
|
64
|
<form action="registerService" method="POST" role="form" class="m-t" id="register_form">
|
65
|
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
|
66
|
<div class="alert alert-success" aria-hidden="true" style="display: none;"></div>
|
67
|
<div class="alert alert-danger" aria-hidden="true" style="display: none;"></div>
|
68
|
<span id="server_error" class="uk-text-danger uk-text-small uk-float-left">${message}</span>
|
69
|
<c:remove var="message" scope="session" />
|
70
|
<div class="form-group">
|
71
|
<span class="msg_first_name_error uk-text-danger uk-text-small uk-float-left" style='${msg_first_name_error_display}'>Please enter a name for your service.</span>
|
72
|
<input id="first_name" name="first_name" type="text" placeholder="Name (*)" class="form-control" value=${first_name}></div>
|
73
|
<c:remove var="msg_first_name_error_display" scope="session" />
|
74
|
<c:remove var="first_name" scope="session" />
|
75
|
<div class="form-group">
|
76
|
<textarea id="description" name="description" type="textarea" placeholder="Description:" class="form-control uk-textarea" rows="3" value=${description}></textarea>
|
77
|
<c:remove var="organization" scope="session" />
|
78
|
<div class="uk-width-1-1 uk-grid-margin uk-first-column">
|
79
|
<button type="submit" class="uk-button uk-button-default" onclick="">Cancel</button>
|
80
|
<button type="submit" class="uk-button uk-button-primary" onclick="return validate();">Add new service</button>
|
81
|
</div>
|
82
|
</div>
|
83
|
</form>
|
84
|
</div>
|
85
|
<!-- END OF REGISTER FORM -->
|
86
|
<script>
|
87
|
function validate() {
|
88
|
// Check if name is filled
|
89
|
if($("#first_name").val() != undefined) {
|
90
|
if($.trim($("#first_name").val()).length <= 0) {
|
91
|
$("#first_name").addClass('uk-input aai-form-danger');
|
92
|
$(".msg_first_name_error").show();
|
93
|
return false;
|
94
|
} else {
|
95
|
$(".msg_first_name_error").hide();
|
96
|
$("#first_name").removeClass('aai-form-danger');
|
97
|
}
|
98
|
return true;
|
99
|
}
|
100
|
}
|
101
|
$("#first_name").focusin(function () {
|
102
|
$(this).removeClass('aai-form-danger');
|
103
|
$(".msg_first_name_error").fadeOut();
|
104
|
});
|
105
|
</script>
|
106
|
</div>
|
107
|
</ul>
|
108
|
</div>
|
109
|
</div>
|
110
|
<!-- END OF CENTER SIDE -->
|
111
|
</div>
|
112
|
</div>
|
113
|
</div>
|
114
|
</div>
|
115
|
</div>
|
116
|
<!-- CONTENT ENDS HERE -->
|
117
|
<!-- FOOTER STARTS HERE-->
|
118
|
<div class="custom-footer" style="z-index: 200;">
|
119
|
<div class="uk-section-primary uk-section uk-section-small">
|
120
|
<div class="uk-container">
|
121
|
<div class="uk-grid-margin uk-grid uk-grid-stack" uk-grid="">
|
122
|
<div class="uk-width-1-1@m uk-first-column">
|
123
|
<div class="uk-margin uk-margin-remove-top uk-margin-remove-bottom uk-text-center">
|
124
|
<img alt="OpenAIRE" class="el-image" src="./images/Logo_Horizontal_white_small.png">
|
125
|
</div>
|
126
|
<div class="footer-license uk-margin uk-margin-remove-bottom uk-text-center uk-text-lead">
|
127
|
<div><a href="http://creativecommons.org/licenses/by/4.0/" target="_blank" rel="license"><img alt="Creative" src="./images/80x15.png" style="height: auto; max-width: 100%; vertical-align: middle;"></a> UNLESS OTHERWISE INDICATED, ALL MATERIALS CREATED BY THE OPENAIRE CONSORTIUM ARE LICENSED UNDER A <a href="http://creativecommons.org/licenses/by/4.0/" rel="license">CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE</a>.</div>
|
128
|
<div>OPENAIRE IS POWERED BY <a href="http://www.d-net.research-infrastructures.eu/">D-NET</a>.</div>
|
129
|
</div>
|
130
|
<div class="uk-margin uk-margin-remove-top uk-margin-remove-bottom uk-text-right">
|
131
|
<a class="uk-totop uk-icon" href="#" uk-scroll="" uk-totop="">
|
132
|
</a>
|
133
|
</div>
|
134
|
</div>
|
135
|
</div>
|
136
|
</div>
|
137
|
</div>
|
138
|
</div>
|
139
|
</div>
|
140
|
</body>
|
141
|
</html>
|