1 |
49495
|
tsampikos.
|
##
|
2 |
|
|
## Velocity Template for DisplayAttributeReleasePage view-state
|
3 |
|
|
##
|
4 |
|
|
## Velocity context will contain the following properties :
|
5 |
|
|
##
|
6 |
|
|
## attributeReleaseContext - context holding consentable attributes
|
7 |
|
|
## attributeReleaseFlowDescriptor - attribute consent flow descriptor
|
8 |
|
|
## attributeDisplayNameFunction - function to display attribute name
|
9 |
|
|
## consentContext - context representing the state of a consent flow
|
10 |
|
|
## encoder - HTMLEncoder class
|
11 |
|
|
## flowExecutionKey - SWF execution key (this is built into the flowExecutionUrl)
|
12 |
|
|
## flowExecutionUrl - form action location
|
13 |
|
|
## flowRequestContext - Spring Web Flow RequestContext
|
14 |
|
|
## profileRequestContext - OpenSAML profile request context
|
15 |
|
|
## request - HttpServletRequest
|
16 |
|
|
## response - HttpServletResponse
|
17 |
|
|
## rpUIContext - context with SP UI information from the metadata
|
18 |
|
|
## environment - Spring Environment object for property resolution
|
19 |
|
|
#set ($serviceName = $rpUIContext.serviceName)
|
20 |
|
|
#set ($serviceDescription = $rpUIContext.serviceDescription)
|
21 |
|
|
#set ($informationURL = $rpUIContext.informationURL)
|
22 |
|
|
#set ($privacyStatementURL = $rpUIContext.privacyStatementURL)
|
23 |
|
|
#set ($rpOrganizationLogo = $rpUIContext.getLogo())
|
24 |
|
|
#set ($rpOrganizationName = $rpUIContext.organizationName)
|
25 |
|
|
#set ($replaceDollarWithNewline = true)
|
26 |
|
|
##
|
27 |
|
|
<!DOCTYPE html>
|
28 |
|
|
<html>
|
29 |
51769
|
tsampikos.
|
<head>
|
30 |
|
|
<meta charset="UTF-8">
|
31 |
|
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
32 |
|
|
## <link rel="stylesheet" type="text/css" href="$request.getContextPath()/css/consent.css">
|
33 |
|
|
<title>#springMessageText("idp.attribute-release.title", "Information Release")</title>
|
34 |
|
|
<script src="$request.getContextPath()/js/jquery.js"></script>
|
35 |
|
|
<script src="$request.getContextPath()/js/uikit.js"></script>
|
36 |
|
|
<link rel="stylesheet" type="text/css" href="$request.getContextPath()/css/theme.css">
|
37 |
|
|
<link rel="stylesheet" type="text/css" href="$request.getContextPath()/css/custom.css">
|
38 |
|
|
<link rel="stylesheet" type="text/css" href="$request.getContextPath()/css/aai-custom.css">
|
39 |
49495
|
tsampikos.
|
|
40 |
51769
|
tsampikos.
|
</head>
|
41 |
|
|
<body class="" style="">
|
42 |
|
|
<div class="uk-offcanvas-content uk-height-viewport">
|
43 |
|
|
<!-- MENU STARTS HERE-->
|
44 |
|
|
<div class="tm-header tm-header-transparent" uk-header="">
|
45 |
|
|
<div class="uk-container uk-container-expand">
|
46 |
|
|
<nav class="uk-navbar" uk-navbar="{"align":"left"}">
|
47 |
|
|
<div class="uk-navbar-center">
|
48 |
|
|
<div class="uk-logo uk-navbar-item">
|
49 |
|
|
<img alt="OpenAIRE" class="uk-responsive-height" src="$request.getContextPath()/images/Logo_Horizontal.png">
|
50 |
|
|
</div>
|
51 |
|
|
</div>
|
52 |
|
|
</nav>
|
53 |
49495
|
tsampikos.
|
</div>
|
54 |
51769
|
tsampikos.
|
</div>
|
55 |
|
|
<!-- MENU ENDS HERE-->
|
56 |
|
|
<div class=" uk-section tm-middle custom-main-content" id="tm-main">
|
57 |
|
|
<div class="uk-container">
|
58 |
|
|
<div uk-grid="" class="uk-grid uk-grid-stack">
|
59 |
|
|
<div class="tm-main uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l uk-align-center uk-first-column">
|
60 |
|
|
<form action="$flowExecutionUrl" method="post" style="padding:10px" >
|
61 |
|
|
<div class="uk-card uk-card-default uk-card-body">
|
62 |
49495
|
tsampikos.
|
<header>
|
63 |
51769
|
tsampikos.
|
<p>
|
64 |
|
|
#springMessageText("idp.attribute-release.serviceNameLabel", "You are about to access the service:")<br>
|
65 |
|
|
#if ($rpOrganizationLogo)
|
66 |
|
|
<img src="$encoder.encodeForHTMLAttribute($rpOrganizationLogo)" alt="logo for $encoder.encodeForHTMLAttribute($serviceName)" class="organization_logo">
|
67 |
|
|
#end
|
68 |
|
|
#if ($serviceName)
|
69 |
|
|
<span class="service_name">$serviceName</span> :
|
70 |
|
|
#if ($rpOrganizationName)
|
71 |
|
|
#springMessageText("idp.attribute-release.of", "of") <span class="organization_name">$encoder.encodeForHTML($rpOrganizationName)</span>
|
72 |
|
|
#end
|
73 |
|
|
#end
|
74 |
|
|
#if ($serviceDescription)
|
75 |
|
|
<span class="service_description">$encoder.encodeForHTML($serviceDescription)</span>
|
76 |
|
|
#end
|
77 |
|
|
#if ($informationURL)
|
78 |
|
|
<div class="uk-text-right">
|
79 |
|
|
<span class="uk-text-small"><a href="$informationURL" target="_blank">#springMessageText("idp.attribute-release.informationURLLabel", "Additional information about the service")</a></span>
|
80 |
|
|
</div>
|
81 |
|
|
#end
|
82 |
|
|
</p>
|
83 |
49495
|
tsampikos.
|
</header>
|
84 |
51769
|
tsampikos.
|
<table class="uk-table uk-table-striped uk-table-hover uk-table-small">
|
85 |
|
|
<thead>
|
86 |
|
|
<tr>
|
87 |
|
|
<th colspan="3">
|
88 |
|
|
#springMessageText("idp.attribute-release.attributesHeader", "Information to be Provided to Service")
|
89 |
|
|
</th>
|
90 |
|
|
</tr>
|
91 |
|
|
</thead>
|
92 |
|
|
<tbody>
|
93 |
|
|
#foreach ($attribute in $attributeReleaseContext.getConsentableAttributes().values())
|
94 |
|
|
<tr>
|
95 |
|
|
<td>$encoder.encodeForHTML($attributeDisplayNameFunction.apply($attribute))</td>
|
96 |
|
|
<td>
|
97 |
|
|
#foreach ($value in $attribute.values)
|
98 |
|
|
#if ($replaceDollarWithNewline)
|
99 |
|
|
#set ($encodedValue = $encoder.encodeForHTML($value.getDisplayValue()).replaceAll($encoder.encodeForHTML("$"),"<br>"))
|
100 |
|
|
#else
|
101 |
|
|
#set ($encodedValue = $encoder.encodeForHTML($value.getDisplayValue()))
|
102 |
|
|
#end
|
103 |
|
|
#if ($attributeReleaseFlowDescriptor.perAttributeConsentEnabled)
|
104 |
|
|
<label for="$attribute.id"><strong>$encodedValue</strong></label>
|
105 |
|
|
#else
|
106 |
|
|
<strong>$encodedValue</strong>
|
107 |
|
|
#end
|
108 |
|
|
<br>
|
109 |
|
|
#end
|
110 |
|
|
</td>
|
111 |
|
|
<td style="vertical-align: top">
|
112 |
|
|
#if ($attributeReleaseFlowDescriptor.perAttributeConsentEnabled)
|
113 |
|
|
#set ($inputType = "checkbox")
|
114 |
|
|
#else
|
115 |
|
|
#set ($inputType = "hidden")
|
116 |
|
|
#end
|
117 |
|
|
<input id="$attribute.id" type="$inputType" name="_shib_idp_consentIds" value="$encoder.encodeForHTML($attribute.id)" checked>
|
118 |
|
|
</td>
|
119 |
|
|
</tr>
|
120 |
|
|
#end
|
121 |
|
|
</tbody>
|
122 |
|
|
</table>
|
123 |
49495
|
tsampikos.
|
#if ($privacyStatementURL)
|
124 |
51769
|
tsampikos.
|
<p style="margin-top: 10px;">
|
125 |
|
|
<a href="$privacyStatementURL">#springMessageText("idp.attribute-release.privacyStatementURLLabel", "Data privacy information of the service")</a>
|
126 |
|
|
</p>
|
127 |
49495
|
tsampikos.
|
#end
|
128 |
|
|
<div style="float:left;">
|
129 |
|
|
<p>
|
130 |
51769
|
tsampikos.
|
#springMessageText("idp.attribute-release.confirmationQuestion", "The information above would be shared with the service if you proceed. Do you agree to release this information to the service every time you access it?")
|
131 |
49495
|
tsampikos.
|
</p>
|
132 |
51769
|
tsampikos.
|
#if ($attributeReleaseFlowDescriptor.doNotRememberConsentAllowed || $attributeReleaseFlowDescriptor.globalConsentAllowed)
|
133 |
|
|
<div id="generalConsentDiv" class="uk-dark uk-background-muted uk-padding">
|
134 |
|
|
<p>
|
135 |
|
|
#springMessageText("idp.attribute-release.consentMethod", "Select an information release consent duration:")
|
136 |
|
|
</p>
|
137 |
49495
|
tsampikos.
|
#end
|
138 |
|
|
#if ($attributeReleaseFlowDescriptor.doNotRememberConsentAllowed)
|
139 |
51769
|
tsampikos.
|
<p>
|
140 |
|
|
<input id="_shib_idp_doNotRememberConsent" type="radio" name="_shib_idp_consentOptions" value="_shib_idp_doNotRememberConsent">
|
141 |
|
|
<label for="_shib_idp_doNotRememberConsent">#springMessageText("idp.attribute-release.doNotRememberConsentItem", "I agree to send my information this time.")</label>
|
142 |
|
|
</p>
|
143 |
49495
|
tsampikos.
|
#end
|
144 |
|
|
#if ($attributeReleaseFlowDescriptor.doNotRememberConsentAllowed || $attributeReleaseFlowDescriptor.globalConsentAllowed)
|
145 |
51769
|
tsampikos.
|
<p>
|
146 |
|
|
<input id="_shib_idp_rememberConsent" type="radio" name="_shib_idp_consentOptions" value="_shib_idp_rememberConsent" checked>
|
147 |
|
|
<label for="_shib_idp_rememberConsent">#springMessageText("", "I agree that the same information will be sent automatically to this <b>$serviceName</b> in the future.")</label>
|
148 |
|
|
</p>
|
149 |
49495
|
tsampikos.
|
#end
|
150 |
51769
|
tsampikos.
|
## #if ($attributeReleaseFlowDescriptor.globalConsentAllowed)
|
151 |
|
|
## <p>
|
152 |
|
|
## <input id="_shib_idp_globalConsent" type="radio" name="_shib_idp_consentOptions" value="_shib_idp_globalConsent">
|
153 |
|
|
## <label for="_shib_idp_globalConsent">#springMessageText("idp.attribute-release.globalConsentItem", "I agree that <strong>all</strong> of my information will be released to <strong>any</strong> service.")</label>
|
154 |
|
|
## </p>
|
155 |
|
|
## #end
|
156 |
49495
|
tsampikos.
|
#if ($attributeReleaseFlowDescriptor.doNotRememberConsentAllowed || $attributeReleaseFlowDescriptor.globalConsentAllowed)
|
157 |
51769
|
tsampikos.
|
#springMessageText("idp.attribute-release.consentMethodRevoke", "This setting can be revoked at any time with the checkbox on the login page.")
|
158 |
|
|
</div>
|
159 |
|
|
#end
|
160 |
|
|
<p style="text-align: center;">
|
161 |
|
|
<input type="submit" name="_eventId_AttributeReleaseRejected" value="#springMessageText("idp.attribute-release.reject", "Reject")" style="margin-right: 30px;" class="uk-button uk-button-primary">
|
162 |
|
|
<input type="submit" name="_eventId_proceed" value="#springMessageText("idp.attribute-release.accept", "Accept")" class="uk-button uk-button-primary">
|
163 |
|
|
</p>
|
164 |
49495
|
tsampikos.
|
</div>
|
165 |
|
|
</div>
|
166 |
51769
|
tsampikos.
|
</form>
|
167 |
|
|
</div>
|
168 |
|
|
</div>
|
169 |
49495
|
tsampikos.
|
</div>
|
170 |
51769
|
tsampikos.
|
</div>
|
171 |
|
|
</div>
|
172 |
|
|
<!-- FOOTER STARTS HERE-->
|
173 |
|
|
<div class="custom-footer">
|
174 |
|
|
<div class="uk-section-primary uk-section uk-section-small">
|
175 |
|
|
<div class="uk-container">
|
176 |
|
|
<div class="uk-grid-margin uk-grid uk-grid-stack" uk-grid="">
|
177 |
|
|
<div class="uk-width-1-1@m uk-first-column">
|
178 |
|
|
<div class="uk-margin uk-margin-remove-top uk-margin-remove-bottom uk-text-center">
|
179 |
|
|
<img alt="OpenAIRE" class="el-image" src="$request.getContextPath()/images/Logo_Horizontal_white_small.png">
|
180 |
|
|
</div>
|
181 |
|
|
<div class="footer-license uk-margin uk-margin-remove-bottom uk-text-center uk-text-lead">
|
182 |
|
|
<div><a href="http://creativecommons.org/licenses/by/4.0/" rel="license" target="_blank"><img alt="Creative" src="$request.getContextPath()/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>
|
183 |
|
|
<div>OPENAIRE IS POWERED BY <a href="http://www.d-net.research-infrastructures.eu/" target="_blank">D-NET</a>.</div>
|
184 |
|
|
</div>
|
185 |
|
|
<div class="uk-margin uk-margin-remove-top uk-margin-remove-bottom uk-text-right">
|
186 |
|
|
<a class="uk-totop uk-icon" href="#" uk-scroll="" uk-totop=""></a>
|
187 |
|
|
</div>
|
188 |
|
|
</div>
|
189 |
|
|
</div>
|
190 |
49495
|
tsampikos.
|
</div>
|
191 |
51769
|
tsampikos.
|
</div>
|
192 |
49495
|
tsampikos.
|
</div>
|
193 |
|
|
|
194 |
|
|
|
195 |
51769
|
tsampikos.
|
</body>
|
196 |
49495
|
tsampikos.
|
</html>
|