Modify Miami HS
[java-idp.git] / webApplication / wayf.jsp
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE html 
3         PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
4         "DTD/xhtml1-strict.dtd">
5         <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
6         <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
7         <jsp:useBean id="originsets" scope="application" class="edu.internet2.middleware.shibboleth.wayf.OriginSet[]"/>
8         <jsp:useBean id="requestURL" scope="request" class="java.lang.String"/>
9         <jsp:useBean id="helpText" scope="application" class="java.lang.String"/>
10         <jsp:useBean id="supportContact" scope="application" class="java.lang.String"/>
11         <jsp:useBean id="shire" scope="request" class="java.lang.String"/>
12         <jsp:useBean id="target" scope="request" class="java.lang.String"/>
13         <jsp:useBean id="encodedShire" scope="request" class="java.lang.String"/>
14         <jsp:useBean id="encodedTarget" scope="request" class="java.lang.String"/>
15         <jsp:useBean id="searchResultEmptyText" scope="application" class="java.lang.String"/>
16         <jsp:useBean id="logoLocation" scope="application" class="java.lang.String"/>
17         <logic:present name="searchresults" scope="request">
18                 <jsp:useBean id="searchresults" scope="request" class="edu.internet2.middleware.shibboleth.wayf.Origin[]"/>
19         </logic:present>
20 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
21 <head>
22         <link rel="stylesheet" type="text/css" href="main.css" />
23         <title>Access Request</title>
24 </head>
25
26 <body>
27
28 <div class="head">
29
30 <img src="<bean:write name="logoLocation" />" alt="Logo" />
31 <h1>Inter-institutional Access Request</h1>
32 <p class="text"><bean:write name="helpText" /></p>
33 </div>
34
35 <div class="search">
36
37         <logic:present name="searchResultsEmpty" scope="request">
38                 <p class="error"><bean:write name="searchResultEmptyText" /></p>
39         </logic:present>
40         
41         <logic:present name="searchresults" scope="request">
42                 <ul>
43                 <logic:iterate id="currResult" name="searchresults">
44                         <li>
45                         <a href="<bean:write name="requestURL" />?action=selection&amp;origin=<jsp:getProperty name="currResult" property="urlEncodedName" />&amp;shire=<bean:write name="encodedShire" />&amp;target=<bean:write name="encodedTarget" />"><jsp:getProperty name="currResult" property="displayName" /></a>
46                         </li>
47                 </logic:iterate>
48                 </ul>           
49         </logic:present>
50         <form method="get" action="<bean:write name="requestURL" />">
51                 <p>
52                         <input type="hidden" name="shire" value="<bean:write name="shire" />" />
53                         <input type="hidden" name="target" value="<bean:write name="target" />" />
54                         <input type="hidden" name="action" value="search" />
55                         <input type="text" name="string" />
56                         <input type="submit" value="Search" />
57                 </p>
58         </form>
59         
60 </div>
61
62 <div class="list">
63
64 <logic:iterate id="originset" name="originsets">
65 <h2><jsp:getProperty name="originset" property="name" /></h2>
66 <form method="get" action="<bean:write name="requestURL" />">
67 <p>
68 <input type="hidden" name="shire" value="<bean:write name="shire" />" />
69 <input type="hidden" name="target" value="<bean:write name="target" />" />
70 <input type="hidden" name="action" value="selection" />
71 <select name="origin">
72         <logic:iterate id="origin" name="originset" property="origins">
73                 <option value="<jsp:getProperty name="origin" property="name" />">
74                 <jsp:getProperty name="origin" property="displayName" />
75                 </option>
76         </logic:iterate>
77 </select>
78 <input type="submit" value="Select" />
79 </p>
80 </form>
81 </logic:iterate>
82
83 </div>
84
85 <p class="text">Need assistance? Send mail to <a href="<bean:write name="supportContact" />"><bean:write name="supportContact" /></a> with description.</p>
86
87
88 </body>
89 </html>