Template webapp name. Bugzilla #372
[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="requestURL" scope="request" class="java.lang.String"/>
8         <jsp:useBean id="helpText" scope="application" class="java.lang.String"/>
9         <jsp:useBean id="supportContact" scope="application" class="java.lang.String"/>
10         <jsp:useBean id="shire" scope="request" class="java.lang.String"/>
11         <jsp:useBean id="target" scope="request" class="java.lang.String"/>
12         <jsp:useBean id="providerId" scope="request" class="java.lang.String"/>
13         <jsp:useBean id="time" scope="request" class="java.lang.String"/>
14         <jsp:useBean id="searchResultEmptyText" scope="application" class="java.lang.String"/>
15         <jsp:useBean id="logoLocation" scope="application" class="java.lang.String"/>
16         <logic:present name="searchresults" scope="request">
17                 <jsp:useBean id="searchresults" scope="request" type="edu.internet2.middleware.shibboleth.wayf.Origin[]"/>
18         </logic:present>
19 <head>
20                 <link rel="stylesheet" title="normal" type="text/css" href="wayf.css" /><title>InQueue: Identity Provider Selection</title></head>
21         <body>
22
23                 <div class="head">
24                         <h1>Select an identity provider</h1>
25                 </div>
26
27                 <div class="selector">
28                         <p class="text"><bean:write name="helpText" /></p>
29
30                         <div class="list">
31
32                                 <h2>Choose from a list:</h2>
33                                 <logic:iterate id="originset" name="originsets">
34                                 <form method="get" action="<bean:write name="requestURL" />">
35                                         <p>
36                                         <input type="hidden" name="shire" value="<bean:write name="shire" />" />
37                                         <input type="hidden" name="target" value="<bean:write name="target" />" />
38                                         <logic:present name="providerId" scope="request">
39                                                 <input type="hidden" name="providerId" value="<bean:write name="providerId" />" />
40                                         </logic:present>
41                                         <logic:present name="time" scope="request">
42                                                 <input type="hidden" name="time" value="<bean:write name="time" />" />
43                                         </logic:present>
44                                         <input type="hidden" name="action" value="selection" />
45                                         <select name="origin">  
46                                                 <logic:iterate id="origin" name="originset" property="origins">
47                                                         <option value="<jsp:getProperty name="origin" property="name" />">
48                                                                 <jsp:getProperty name="origin" property="displayName" />
49                                                         </option>
50                                                 </logic:iterate>
51                                         </select>
52                                                 <input type="submit" value="Select" />
53                                                 <input type="checkbox" checked="checked" name="cache" value="TRUE" /><span class="warning">Remember my selection on this computer.</span>
54                                                 </p>
55                                         </form>
56                                         </logic:iterate>
57
58                                 </div>
59                                 <div class="search">
60                                 <span class="option">or</span>
61                                 <h2>Search by keyword:</h2>
62
63                                         <form method="get" action="<bean:write name="requestURL" />">
64                                                 <p>
65                                                         <input type="hidden" name="shire" value="<bean:write name="shire" />" />
66                                                         <input type="hidden" name="target" value="<bean:write name="target" />" />
67                                                         <logic:present name="providerId" scope="request">
68                                                                 <input type="hidden" name="providerId" value="<bean:write name="providerId" />" />
69                                                         </logic:present>
70                                                         <logic:present name="time" scope="request">
71                                                                 <input type="hidden" name="time" value="<bean:write name="time" />" />
72                                                         </logic:present>
73                                                         <input type="hidden" name="action" value="search" />
74                                                         <input type="text" name="string" />
75                                                         <input type="submit" value="Search" />
76                                                 </p>
77                                         </form>
78                                         <logic:present name="searchResultsEmpty" scope="request">
79                                                 <p class="error"><bean:write name="searchResultEmptyText" /></p>
80                                         </logic:present>
81                                         <logic:present name="searchresults" scope="request">
82                                                 <h3>Search results:</h3>
83                                                 <form method="get" action="<bean:write name="requestURL" />">
84                                                         <ul>
85                                                         <logic:iterate id="currResult" name="searchresults">
86                                                                 <li>
87                                                                 <input type="radio" name="origin" value="<jsp:getProperty name="currResult" property="name" />" /><jsp:getProperty name="currResult" property="displayName" />
88                                                                 </li>
89                                                         </logic:iterate>
90                                                         </ul>
91                                                         <p>
92                                                                 <input type="hidden" name="shire" value="<bean:write name="shire" />" />
93                                                                 <input type="hidden" name="target" value="<bean:write name="target" />" />
94                                                                 <logic:present name="providerId" scope="request">
95                                                                         <input type="hidden" name="providerId" value="<bean:write name="providerId" />" />
96                                                                 </logic:present>
97                                                                 <logic:present name="time" scope="request">
98                                                                         <input type="hidden" name="time" value="<bean:write name="time" />" />
99                                                                 </logic:present>
100                                                                 <input type="hidden" name="action" value="selection" />
101                                                                 <input type="submit" value="Select" />
102                                                                 <input type="checkbox" checked="checked" name="cache" value="TRUE" /><span class="warning">Remember my selection on this computer.</span>
103                                                         </p>
104                                                 </form> 
105                                         </logic:present>
106
107                                 </div>
108                         </div>
109                         <div class="footer">
110
111                                 <p class="text">Need assistance? Send mail to <a href="mailto:inqueue-support@internet2.edu">inqueue-support@internet2.edu</a> with description.</p>
112                                 <div class="logo"><img src="./images/internet2.gif" alt="InQueue" /></div>
113                         </div>
114                         
115         </body></html>