Revamped the wayf interface a bit.
[java-idp.git] / webApplication / wayf.jsp
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
3         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 <html>
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 <head>
21                 <link rel="stylesheet" title="normal" type="text/css" href="wayf.css" /><title>InCommon&#174;: Identity Provider Selection</title></head>
22         <body>
23
24                 <div class="head">
25                         <h1>Select an <span class="incommon">InCommon&#174;</span> identity provider</h1>
26                 </div>
27
28                 <div class="selector">
29                         <p class="text"><bean:write name="helpText" /></p>
30
31                         <div class="list">
32
33                                 <h2>Choose from a list:</h2>
34                                 <logic:iterate id="originset" name="originsets">
35                                 <h3><jsp:getProperty name="originset" property="name" /></h3>
36                                 <form method="get" action="<bean:write name="requestURL" />">
37                                         <p>
38                                         <input type="hidden" name="shire" value="<bean:write name="shire" />" />
39                                         <input type="hidden" name="target" value="<bean:write name="target" />" />
40                                         <input type="hidden" name="action" value="selection" />
41                                         <select name="origin">  
42                                                 <logic:iterate id="origin" name="originset" property="origins">
43                                                         <option value="<jsp:getProperty name="origin" property="name" />">
44                                                                 <jsp:getProperty name="origin" property="displayName" />
45                                                         </option>
46                                                 </logic:iterate>
47                                         </select>
48                                                 <input type="submit" value="Select" />
49                                                 <input type="checkbox" checked="checked" name="cache" value="TRUE" /><span class="warning">Remember my selection on this computer.</span>
50                                                 </p>
51                                         </form>
52                                         </logic:iterate>
53
54                                 </div>
55                                 <div class="search">
56                                 <span class="option">or</span>
57                                 <h2>Search by keyword:</h2>
58
59                                         <form method="get" action="<bean:write name="requestURL" />">
60                                                 <p>
61                                                         <input type="hidden" name="shire" value="<bean:write name="shire" />" />
62                                                         <input type="hidden" name="target" value="<bean:write name="target" />" />
63                                                         <input type="hidden" name="action" value="search" />
64                                                         <input type="text" name="string" />
65                                                         <input type="submit" value="Search" />
66                                                 </p>
67                                         </form>
68                                         <logic:present name="searchResultsEmpty" scope="request">
69                                                 <p class="error"><bean:write name="searchResultEmptyText" /></p>
70                                         </logic:present>
71                                         <logic:present name="searchresults" scope="request">
72                                                 <h3>Search results:</h3>
73                                                 <form method="get" action="<bean:write name="requestURL" />">
74                                                         <ul>
75                                                         <logic:iterate id="currResult" name="searchresults">
76                                                                 <li>
77                                                                 <input type="radio" name="origin" value="<jsp:getProperty name="currResult" property="name" />" /><jsp:getProperty name="currResult" property="displayName" />
78                                                                 </li>
79                                                         </logic:iterate>
80                                                         </ul>
81                                                         <p>
82                                                                 <input type="hidden" name="shire" value="<bean:write name="shire" />" />
83                                                                 <input type="hidden" name="target" value="<bean:write name="target" />" />
84                                                                 <input type="hidden" name="action" value="selection" />
85                                                                 <input type="submit" value="Select" />
86                                                                 <input type="checkbox" checked="checked" name="cache" value="TRUE" /><span class="warning">Remember my selection on this computer.</span>
87                                                         </p>
88                                                 </form> 
89                                         </logic:present>
90
91                                 </div>
92                         </div>
93                         <div class="footer">
94
95                                 <p class="text">Need assistance? Send mail to <a href="mailto:shib-test@internet2.edu">shib-test@internet2.edu</a> with description.</p>
96                         </div>
97
98
99         </body></html>