Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
shib-idp-conftree/views/intercept/terms-of-use.vm
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
67 lines (67 sloc)
3.27 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## Velocity Template for DisplayTermsOfUsePage view-state | |
## | |
## Velocity context will contain the following properties : | |
## | |
## encoder - HTMLEncoder class | |
## flowExecutionKey - SWF execution key (this is built into the flowExecutionUrl) | |
## flowExecutionUrl - form action location | |
## flowRequestContext - Spring Web Flow RequestContext | |
## request - HttpServletRequest | |
## response - HttpServletResponse | |
## rpUIContext - context with SP UI information from the metadata | |
## termsOfUseId - terms of use ID to lookup message strings | |
## environment - Spring Environment object for property resolution | |
#set ($serviceName = $rpUIContext.serviceName) | |
#set ($rpOrganizationLogo = $rpUIContext.getLogo()) | |
## | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width,initial-scale=1.0"> | |
<link rel="stylesheet" type="text/css" href="$request.getContextPath()/css/consent.css"> | |
<title>#springMessageText("${termsOfUseId}.title", "Terms of Use")</title> | |
</head> | |
<body> | |
<div class="box"> | |
<header> | |
<img src="$request.getContextPath()#springMessage("idp.logo")" alt="#springMessageText("idp.logo.alt-text", "logo")" class="federation_logo"> | |
#if ($rpOrganizationLogo) | |
<img src="$encoder.encodeForHTMLAttribute($rpOrganizationLogo)" alt="$encoder.encodeForHTMLAttribute($serviceName)" class="organization_logo"> | |
#end | |
</header> | |
#if ($rpOrganizationLogo) | |
<div style="float:left;"> | |
<h1>#springMessageText("${termsOfUseId}.title", "Terms of Use")</h1> | |
</div> | |
#end | |
<div id="tou-content"> | |
#springMessageText("${termsOfUseId}.text", "Terms of Use Text...") | |
</div> | |
<div id="tou-acceptance"> | |
<div style="float:left;"> | |
<form action="$flowExecutionUrl" method="post" > | |
<input type="submit" name="_eventId_TermsRejected" value="#springMessageText("idp.terms-of-use.reject", "Refuse")" style="margin-right: 30px;"> | |
</form> | |
</div> | |
<div style="float:right;"> | |
<form action="$flowExecutionUrl" method="post" > | |
<input id="accept" type="checkbox" name="_shib_idp_consentIds" value="$encoder.encodeForHTML($termsOfUseId)" required> | |
<label for="accept">#springMessageText("idp.terms-of-use.accept", "I accept the terms of use")</label> | |
#if ($requireCheckbox) | |
<p class="form-error">#springMessageText("idp.terms-of-use.required", "Please check this box if you want to proceed.")</p> | |
#end | |
<input type="submit" name="_eventId_proceed" value="#springMessageText("idp.terms-of-use.submit", "Submit")"> | |
</form> | |
</div> | |
<div style="clear:both;"></div> | |
</div> | |
<footer> | |
<div class="container container-footer"> | |
<p class="footer-text">#springMessageText("idp.footer", "Insert your footer text here.")</p> | |
</div> | |
</footer> | |
</div> | |
</body> | |
</html> |