Tweaked path to example HS
[java-idp.git] / webApplication / wayf.jsp
index 9007adb..88217c1 100755 (executable)
@@ -1,8 +1,8 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html 
-       PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
-       "DTD/xhtml1-strict.dtd">
-       <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
+       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html>
+<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
        <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
        <jsp:useBean id="originsets" scope="application" class="edu.internet2.middleware.shibboleth.wayf.OriginSet[]"/>
        <jsp:useBean id="requestURL" scope="request" class="java.lang.String"/>
        <logic:present name="searchresults" scope="request">
                <jsp:useBean id="searchresults" scope="request" class="edu.internet2.middleware.shibboleth.wayf.Origin[]"/>
        </logic:present>
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
-       <link rel="stylesheet" type="text/css" href="main.css" />
-       <title>Access Request</title>
-</head>
+               <link rel="stylesheet" title="normal" type="text/css" href="wayf.css" /><title>InCommon: Identity Provider Selection</title></head>
+       <body>
 
-<body>
+               <div class="head">
+                       <h1>Select an identity provider</h1>
+               </div>
 
-<div class="head">
+               <div class="selector">
+                       <p class="text"><bean:write name="helpText" /></p>
 
-<img src="<bean:write name="logoLocation" />" alt="Logo" />
-<h1>Inter-institutional Access Request</h1>
-<p class="text"><bean:write name="helpText" /></p>
-</div>
+                       <div class="list">
 
-<div class="search">
+                               <h2>Choose from a list:</h2>
+                               <logic:iterate id="originset" name="originsets">
+                               <form method="get" action="<bean:write name="requestURL" />">
+                                       <p>
+                                       <input type="hidden" name="shire" value="<bean:write name="shire" />" />
+                                       <input type="hidden" name="target" value="<bean:write name="target" />" />
+                                       <input type="hidden" name="action" value="selection" />
+                                       <select name="origin">  
+                                               <logic:iterate id="origin" name="originset" property="origins">
+                                                       <option value="<jsp:getProperty name="origin" property="name" />">
+                                                               <jsp:getProperty name="origin" property="displayName" />
+                                                       </option>
+                                               </logic:iterate>
+                                       </select>
+                                               <input type="submit" value="Select" />
+                                               <input type="checkbox" checked="checked" name="cache" value="TRUE" /><span class="warning">Remember my selection on this computer.</span>
+                                               </p>
+                                       </form>
+                                       </logic:iterate>
 
-       <logic:present name="searchResultsEmpty" scope="request">
-               <p class="error"><bean:write name="searchResultEmptyText" /></p>
-       </logic:present>
-       
-       <logic:present name="searchresults" scope="request">
-               <ul>
-               <logic:iterate id="currResult" name="searchresults">
-                       <li>
-                       <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="name" /></a>
-                       </li>
-               </logic:iterate>
-               </ul>           
-       </logic:present>
-       <form method="get" action="<bean:write name="requestURL" />">
-               <p>
-                       <input type="hidden" name="shire" value="<bean:write name="shire" />" />
-                       <input type="hidden" name="target" value="<bean:write name="target" />" />
-                       <input type="hidden" name="action" value="search" />
-                       <input type="text" name="string" />
-                       <input type="submit" value="Search" />
-               </p>
-       </form>
-       
-</div>
-
-<div class="list">
-
-<logic:iterate id="originset" name="originsets">
-<h2><jsp:getProperty name="originset" property="name" /></h2>
-<form method="get" action="<bean:write name="requestURL" />">
-<p>
-<input type="hidden" name="shire" value="<bean:write name="shire" />" />
-<input type="hidden" name="target" value="<bean:write name="target" />" />
-<input type="hidden" name="action" value="selection" />
-<select name="origin">
-       <logic:iterate id="origin" name="originset" property="origins">
-               <option value="<jsp:getProperty name="origin" property="name" />">
-               <jsp:getProperty name="origin" property="name" />
-               </option>
-       </logic:iterate>
-</select>
-<input type="submit" value="Select" />
-</p>
-</form>
-</logic:iterate>
-
-</div>
+                               </div>
+                               <div class="search">
+                               <span class="option">or</span>
+                               <h2>Search by keyword:</h2>
 
-<p class="text">Need assistance? Send mail to <a href="<bean:write name="supportContact" />"><bean:write name="supportContact" /></a> with description.</p>
+                                       <form method="get" action="<bean:write name="requestURL" />">
+                                               <p>
+                                                       <input type="hidden" name="shire" value="<bean:write name="shire" />" />
+                                                       <input type="hidden" name="target" value="<bean:write name="target" />" />
+                                                       <input type="hidden" name="action" value="search" />
+                                                       <input type="text" name="string" />
+                                                       <input type="submit" value="Search" />
+                                               </p>
+                                       </form>
+                                       <logic:present name="searchResultsEmpty" scope="request">
+                                               <p class="error"><bean:write name="searchResultEmptyText" /></p>
+                                       </logic:present>
+                                       <logic:present name="searchresults" scope="request">
+                                               <h3>Search results:</h3>
+                                               <form method="get" action="<bean:write name="requestURL" />">
+                                                       <ul>
+                                                       <logic:iterate id="currResult" name="searchresults">
+                                                               <li>
+                                                               <input type="radio" name="origin" value="<jsp:getProperty name="currResult" property="name" />" /><jsp:getProperty name="currResult" property="displayName" />
+                                                               </li>
+                                                       </logic:iterate>
+                                                       </ul>
+                                                       <p>
+                                                               <input type="hidden" name="shire" value="<bean:write name="shire" />" />
+                                                               <input type="hidden" name="target" value="<bean:write name="target" />" />
+                                                               <input type="hidden" name="action" value="selection" />
+                                                               <input type="submit" value="Select" />
+                                                               <input type="checkbox" checked="checked" name="cache" value="TRUE" /><span class="warning">Remember my selection on this computer.</span>
+                                                       </p>
+                                               </form> 
+                                       </logic:present>
 
+                               </div>
+                       </div>
+                       <div class="footer">
 
-</body>
-</html>
\ No newline at end of file
+                               <p class="text">Need assistance? Send mail to <a href="mailto:shib-test@internet2.edu">shib-test@internet2.edu</a> with description.</p>
+                               <div class="logo"><img src="./images/incommon.gif" alt="InCommon" /></div>
+                       </div>
+                       
+       </body></html>