1 |
49495
|
tsampikos.
|
##
|
2 |
|
|
## Velocity Template for DisplayTermsOfUsePage view-state
|
3 |
|
|
##
|
4 |
|
|
## Velocity context will contain the following properties :
|
5 |
|
|
##
|
6 |
|
|
## encoder - HTMLEncoder class
|
7 |
|
|
## flowExecutionKey - SWF execution key (this is built into the flowExecutionUrl)
|
8 |
|
|
## flowExecutionUrl - form action location
|
9 |
|
|
## flowRequestContext - Spring Web Flow RequestContext
|
10 |
|
|
## request - HttpServletRequest
|
11 |
|
|
## response - HttpServletResponse
|
12 |
|
|
## rpUIContext - context with SP UI information from the metadata
|
13 |
|
|
## termsOfUseId - terms of use ID to lookup message strings
|
14 |
|
|
## environment - Spring Environment object for property resolution
|
15 |
|
|
#set ($serviceName = $rpUIContext.serviceName)
|
16 |
|
|
#set ($rpOrganizationLogo = $rpUIContext.getLogo())
|
17 |
|
|
##
|
18 |
|
|
<!DOCTYPE html>
|
19 |
|
|
<html>
|
20 |
|
|
<head>
|
21 |
|
|
<meta charset="UTF-8">
|
22 |
|
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
23 |
|
|
<link rel="stylesheet" type="text/css" href="$request.getContextPath()/css/consent.css">
|
24 |
|
|
<title>#springMessageText("${termsOfUseId}.title", "Terms of Use")</title>
|
25 |
|
|
</head>
|
26 |
|
|
<body>
|
27 |
|
|
<div class="box">
|
28 |
|
|
<header>
|
29 |
|
|
<img src="$request.getContextPath()#springMessage("idp.logo")" alt="#springMessageText("idp.logo.alt-text", "logo")" class="federation_logo">
|
30 |
|
|
#if ($rpOrganizationLogo)
|
31 |
|
|
<img src="$encoder.encodeForHTMLAttribute($rpOrganizationLogo)" alt="$encoder.encodeForHTMLAttribute($serviceName)" class="organization_logo">
|
32 |
|
|
#end
|
33 |
|
|
</header>
|
34 |
|
|
#if ($rpOrganizationLogo)
|
35 |
|
|
<div style="float:left;">
|
36 |
|
|
<h1>#springMessageText("${termsOfUseId}.title", "Terms of Use")</h1>
|
37 |
|
|
</div>
|
38 |
|
|
#end
|
39 |
|
|
<div id="tou-content">
|
40 |
|
|
#springMessageText("${termsOfUseId}.text", "Terms of Use Text...")
|
41 |
|
|
</div>
|
42 |
|
|
<div id="tou-acceptance">
|
43 |
|
|
<div style="float:left;">
|
44 |
|
|
<form action="$flowExecutionUrl" method="post" >
|
45 |
|
|
<input type="submit" name="_eventId_TermsRejected" value="#springMessageText("idp.terms-of-use.reject", "Refuse")" style="margin-right: 30px;">
|
46 |
|
|
</form>
|
47 |
|
|
</div>
|
48 |
|
|
<div style="float:right;">
|
49 |
|
|
<form action="$flowExecutionUrl" method="post" >
|
50 |
|
|
<input id="accept" type="checkbox" name="_shib_idp_consentIds" value="$encoder.encodeForHTML($termsOfUseId)" required>
|
51 |
|
|
<label for="accept">#springMessageText("idp.terms-of-use.accept", "I accept the terms of use")</label>
|
52 |
|
|
#if ($requireCheckbox)
|
53 |
|
|
<p class="form-error">#springMessageText("idp.terms-of-use.required", "Please check this box if you want to proceed.")</p>
|
54 |
|
|
#end
|
55 |
|
|
<input type="submit" name="_eventId_proceed" value="#springMessageText("idp.terms-of-use.submit", "Submit")">
|
56 |
|
|
</form>
|
57 |
|
|
</div>
|
58 |
|
|
<div style="clear:both;"></div>
|
59 |
|
|
</div>
|
60 |
|
|
<footer>
|
61 |
|
|
<div class="container container-footer">
|
62 |
|
|
<p class="footer-text">#springMessageText("idp.footer", "Insert your footer text here.")</p>
|
63 |
|
|
</div>
|
64 |
|
|
</footer>
|
65 |
|
|
</div>
|
66 |
|
|
</body>
|
67 |
|
|
</html>
|