1
|
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
2
|
<!DOCTYPE html>
|
3
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
4
|
<html lang="en-gb" dir="ltr" vocab="http://schema.org/">
|
5
|
<head>
|
6
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
7
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
8
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
9
|
<base href=".">
|
10
|
<title>OpenAIRE - Register</title>
|
11
|
<script src="./js/jquery.js"></script>
|
12
|
<script src="./js/uikit.min.js"></script>
|
13
|
<script src="./js/validation.js"></script>
|
14
|
<script src="./js/uikit-icons-max.js"></script>
|
15
|
<link rel="stylesheet" style="text/css" href="./css/theme.css">
|
16
|
<link rel="stylesheet" style="text/css" href="./css/custom.css">
|
17
|
<link rel="stylesheet" style="text/css" href="./css/aai-custom.css">
|
18
|
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon/favicon-32x32.png">
|
19
|
<link rel="icon" type="image/png" sizes="96x96" href="images/favicon//favicon-96x96.png">
|
20
|
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon/favicon-16x16.png">
|
21
|
<link href="images/favicon/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
|
22
|
</head>
|
23
|
<body class="" style="">
|
24
|
<div class="uk-offcanvas-content uk-height-viewport">
|
25
|
<!-- MENU STARTS HERE -->
|
26
|
<!-- MAIN MENU STARTS HERE -->
|
27
|
<div class="tm-header tm-header-transparent" uk-header="">
|
28
|
<div class="uk-container uk-container-expand">
|
29
|
<nav class="uk-navbar" uk-navbar="{"align":"left"}">
|
30
|
<div class="uk-navbar-center">
|
31
|
<div class="uk-logo uk-navbar-item">
|
32
|
<img alt="OpenAIRE" class="uk-responsive-height" src="./images/Logo_Horizontal.png">
|
33
|
</div>
|
34
|
</div>
|
35
|
<!-- user menu -->
|
36
|
<div class=uk-navbar-right>
|
37
|
<ul class="uk-navbar-nav user_actions">
|
38
|
<li><a href="#"> Sign in </a></li>
|
39
|
<li>
|
40
|
<a class="login uk-icon" aria-expanded="false">
|
41
|
<svg height="60" width="60"><circle cx="30" cy="30" r="20" stroke-width="2"></circle>
|
42
|
<text dy=".4em" font-size="16" text-anchor="middle" x="50%" y="50%"> AK </text></svg>
|
43
|
</a>
|
44
|
<div class="uk-navbar-dropdown uk-navbar-dropdown-bottom-right" id="userMenu" style="left: 344.433px; top: 100px;">
|
45
|
<div class="uk-navbar-dropdown-grid uk-child-width-1-1 uk-grid uk-grid-stack" uk-grid="">
|
46
|
<div class="uk-first-column uk-height-max-medium uk-overflow-auto">
|
47
|
<ul class="uk-nav uk-navbar-dropdown-nav">
|
48
|
<li class=""><a href="./personalToken">Personal token</a></li>
|
49
|
<li class=""><a href="./registeredServices">Registered services</a></li>
|
50
|
<li class="uk-nav-divider "></li>
|
51
|
<li>
|
52
|
<a id="logout">Log out</a>
|
53
|
</li>
|
54
|
</ul>
|
55
|
</div>
|
56
|
</div>
|
57
|
</div>
|
58
|
</li>
|
59
|
</ul>
|
60
|
</div>
|
61
|
</nav>
|
62
|
</div>
|
63
|
</div>
|
64
|
<!-- MENU ENDS HERE -->
|
65
|
<!-- CONTENT STARTS HERE -->
|
66
|
<div class="first_page_section uk-section-default uk-section uk-padding-remove-vertical">
|
67
|
<div class="first_page_banner_headline uk-grid-collapse uk-flex-middle uk-margin-remove-vertical uk-grid" uk-grid="">
|
68
|
</div>
|
69
|
</div>
|
70
|
<div class=" uk-section uk-margin-small-top uk-container uk-container-large" id="tm-main">
|
71
|
<div class="uk-grid ">
|
72
|
<div class="uk-width-1-4@m">
|
73
|
<div class="uk-card uk-card-default uk-card-body">
|
74
|
<div class="uk-h4">APIs access</div>
|
75
|
<ul class="uk-nav uk-nav-default">
|
76
|
<li class=""><a href="./personalToken">Personal token</a></li>
|
77
|
<li class=""><a href="./registeredServices">Registered services</a></li>
|
78
|
</ul>
|
79
|
</div>
|
80
|
</div>
|
81
|
<!-- CENTER SIDE -->
|
82
|
<div class="uk-width-2-3@l uk-width-2-3@m">
|
83
|
|
84
|
<h2 class="uk-h2 uk-margin-small-bottom">Edit service</h2>
|
85
|
<h3 class="uk-h4">Please fill in the updated values for your service</h3>
|
86
|
<div class="middle-box text-center loginscreen animated fadeInDown ">
|
87
|
<div class="k-width-1-1@m uk-width-1-1@s uk-text-center">
|
88
|
<!-- REGISTER FORM -->
|
89
|
<div id="registerForm">
|
90
|
<form action="editRegisteredService" method="POST" role="form" class="m-t" id="register_form">
|
91
|
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
|
92
|
<input type="hidden" name="serviceId" value="${serviceId}"/>
|
93
|
<div class="alert alert-success" aria-hidden="true" style="display: none;"></div>
|
94
|
<div class="alert alert-danger" aria-hidden="true" style="display: none;"></div>
|
95
|
<div class="form-group">
|
96
|
<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>
|
97
|
<input id="first_name" name="first_name" type="text" placeholder="Name (*)" class="form-control" value="${first_name}"></div>
|
98
|
<c:remove var="msg_first_name_error_display" scope="session" />
|
99
|
<c:remove var="first_name" scope="session" />
|
100
|
<div class="form-group">
|
101
|
<textarea id="description" name="description" type="textarea" placeholder="Description:" class="form-control uk-textarea" rows="3" value="${description}">
|
102
|
${description}</textarea>
|
103
|
<c:remove var="description" scope="session" />
|
104
|
<div class="uk-width-1-1 uk-grid-margin uk-first-column">
|
105
|
<button type="button" class="uk-button uk-button-default" onclick="document.location.href='./registeredServices'">Cancel</button>
|
106
|
<button type="submit" class="uk-button uk-button-primary" onclick="return validate();">Update service</button>
|
107
|
</div>
|
108
|
</div>
|
109
|
</form>
|
110
|
</div>
|
111
|
<!-- END OF REGISTER FORM -->
|
112
|
<script>
|
113
|
function validate() {
|
114
|
// Check if name is filled
|
115
|
if($("#first_name").val() != undefined) {
|
116
|
if($.trim($("#first_name").val()).length <= 0) {
|
117
|
$("#first_name").addClass('uk-input aai-form-danger');
|
118
|
$(".msg_first_name_error").show();
|
119
|
return false;
|
120
|
} else {
|
121
|
$(".msg_first_name_error").hide();
|
122
|
$("#first_name").removeClass('aai-form-danger');
|
123
|
}
|
124
|
return true;
|
125
|
}
|
126
|
}
|
127
|
$("#first_name").focusin(function () {
|
128
|
$(this).removeClass('aai-form-danger');
|
129
|
$(".msg_first_name_error").fadeOut();
|
130
|
});
|
131
|
</script>
|
132
|
</div>
|
133
|
</ul>
|
134
|
</div>
|
135
|
</div>
|
136
|
<!-- END OF CENTER SIDE -->
|
137
|
</div>
|
138
|
</div>
|
139
|
<!-- CONTENT ENDS HERE -->
|
140
|
<!-- FOOTER STARTS HERE-->
|
141
|
<div class="custom-footer" style="z-index: 200;">
|
142
|
<div class="uk-section-primary uk-section uk-section-small">
|
143
|
<div class="uk-container">
|
144
|
<div class="uk-grid-margin uk-grid uk-grid-stack" uk-grid="">
|
145
|
<div class="uk-width-1-1@m uk-first-column">
|
146
|
<div class="uk-margin uk-margin-remove-top uk-margin-remove-bottom uk-text-center">
|
147
|
<img alt="OpenAIRE" class="el-image" src="./images/Logo_Horizontal_white_small.png">
|
148
|
</div>
|
149
|
<div class="footer-license uk-margin uk-margin-remove-bottom uk-text-center uk-text-lead">
|
150
|
<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>
|
151
|
<div>OPENAIRE IS POWERED BY <a href="http://www.d-net.research-infrastructures.eu/">D-NET</a>.</div>
|
152
|
</div>
|
153
|
<div class="uk-margin uk-margin-remove-top uk-margin-remove-bottom uk-text-right">
|
154
|
<a class="uk-totop uk-icon" href="#" uk-scroll="" uk-totop="">
|
155
|
</a>
|
156
|
</div>
|
157
|
</div>
|
158
|
</div>
|
159
|
</div>
|
160
|
</div>
|
161
|
</div>
|
162
|
</div>
|
163
|
</body>
|
164
|
</html>
|