]> source.dussan.org Git - archiva.git/commitdiff
add form focus
authorBrett Porter <brett@apache.org>
Sat, 26 Aug 2006 08:17:19 +0000 (08:17 +0000)
committerBrett Porter <brett@apache.org>
Sat, 26 Aug 2006 08:17:19 +0000 (08:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@437124 13f79535-47bb-0310-9956-ffa450edef68

archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/addProxiedRepository.jsp
archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/addRepository.jsp
archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/addSyncedRepository.jsp
archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/configure.jsp
archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/editProxiedRepository.jsp
archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/editRepository.jsp
archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/editSyncedRepository.jsp
archiva-webapp/src/main/webapp/WEB-INF/jsp/include/quickSearchForm.jspf

index 6b70fda5bf98a5e2311abc8755b96d988268cf5c..801b8464e117391d82ea028ffe792b043b797b7a 100644 (file)
@@ -19,7 +19,7 @@
 <html>
 <head>
   <title>Configuration</title>
-  <ww:head />
+  <ww:head/>
 </head>
 
 <body>
 
   <h2>Add Proxied Repository</h2>
 
-  <ww:actionmessage />
+  <ww:actionmessage/>
   <ww:form method="post" action="addProxiedRepository" namespace="/admin" validate="true">
-    <ww:textfield name="id" label="Identifier" size="10" />
+    <ww:textfield name="id" label="Identifier" size="10"/>
     <%@ include file="/WEB-INF/jsp/admin/include/proxiedRepositoryForm.jspf" %>
 
-    <ww:submit value="Add Repository" />
+    <ww:submit value="Add Repository"/>
   </ww:form>
+
+  <script type="text/javascript">
+    document.getElementById("addProxiedRepository_id").focus();
+  </script>
+
 </div>
 
 </body>
index 82c470120b83df0f4260d84b241e9c1faa519229..8a2f06a1084e5f74b23112711a0f7b956fd0bc7a 100644 (file)
@@ -19,7 +19,7 @@
 <html>
 <head>
   <title>Configuration</title>
-  <ww:head />
+  <ww:head/>
 </head>
 
 <body>
 
   <h2>Add Managed Repository</h2>
 
-  <ww:actionmessage />
+  <ww:actionmessage/>
   <ww:form method="post" action="addRepository" namespace="/admin" validate="true">
-    <ww:textfield name="id" label="Identifier" size="10" />
+    <ww:textfield name="id" label="Identifier" size="10"/>
     <%@ include file="/WEB-INF/jsp/admin/include/managedRepositoryForm.jspf" %>
-    <ww:checkbox name="indexed" fieldValue="true" value="true" label="Indexed" />
-    <ww:submit value="Add Repository" />
+    <ww:checkbox name="indexed" fieldValue="true" value="true" label="Indexed"/>
+    <ww:submit value="Add Repository"/>
   </ww:form>
+
+  <script type="text/javascript">
+    document.getElementById("addRepository_id").focus();
+  </script>
+
 </div>
 
 </body>
index 524164c8132bf7b5ca3c0d3d86e0c8d43c7bfb37..bd01492a32f2cee94d749b648e2cfbee5ce50c07 100644 (file)
@@ -20,7 +20,7 @@
 <html>
 <head>
   <title>Configuration</title>
-  <ww:head />
+  <ww:head/>
 </head>
 
 <body>
 
   <h2>Add Synced Repository</h2>
 
-  <ww:actionmessage />
+  <ww:actionmessage/>
   <ww:form method="post" action="addSelectedSyncedRepository" namespace="/admin" validate="true">
-    <ww:textfield name="id" label="Identifier" size="10" />
+    <ww:textfield name="id" label="Identifier" size="10"/>
     <%@ include file="/WEB-INF/jsp/admin/include/syncedRepositoryForm.jspf" %>
 
-    <ww:submit value="Add Repository" />
+    <ww:submit value="Add Repository"/>
   </ww:form>
+
+  <script type="text/javascript">
+    document.getElementById("addSelectedSyncedRepository_id").focus();
+  </script>
+
 </div>
 
 </body>
index 725e4be7d71315d98f12821ff3e01f3f569be503..a48926dd56163bbc62528a72dca8fb05184e72f6 100644 (file)
@@ -19,7 +19,7 @@
 <html>
 <head>
   <title>Configuration</title>
-  <ww:head />
+  <ww:head/>
 </head>
 
 <body>
 <h1>Configuration</h1>
 
 <div id="contentArea">
-  <ww:actionmessage />
+  <ww:actionmessage/>
   <ww:form method="post" action="saveConfiguration" namespace="/admin" validate="true">
-    <ww:textfield name="indexPath" label="Index Directory" size="100" />
-    <ww:textfield name="indexerCronExpression" label="Indexing Schedule" />
-    <ww:hidden name="proxy.protocol" value="http" /> 
-    <ww:textfield name="proxy.host" label="HTTP Proxy Host" />
-    <ww:textfield name="proxy.port" label="HTTP Proxy Port" />
-    <ww:textfield name="proxy.username" label="HTTP Proxy Username" />
-    <ww:password name="proxy.password" label="HTTP Proxy Password" />
-    <ww:submit value="Save Configuration" />
+    <ww:textfield name="indexPath" label="Index Directory" size="100"/>
+    <ww:textfield name="indexerCronExpression" label="Indexing Schedule"/>
+    <ww:hidden name="proxy.protocol" value="http"/>
+    <ww:textfield name="proxy.host" label="HTTP Proxy Host"/>
+    <ww:textfield name="proxy.port" label="HTTP Proxy Port"/>
+    <ww:textfield name="proxy.username" label="HTTP Proxy Username"/>
+    <ww:password name="proxy.password" label="HTTP Proxy Password"/>
+    <ww:submit value="Save Configuration"/>
   </ww:form>
+
+  <script type="text/javascript">
+    document.getElementById("saveConfiguration_indexPath").focus();
+  </script>
+
 </div>
 
 </body>
index ee60cfe675b9f67d848db0773b2a561d538dd2f7..b22891c3b9ec85345f7e33e1af1cdbe53f84ea04 100644 (file)
@@ -19,7 +19,7 @@
 <html>
 <head>
   <title>Configuration</title>
-  <ww:head />
+  <ww:head/>
 </head>
 
 <body>
 
   <h2>Edit Proxied Repository</h2>
 
-  <ww:actionmessage />
+  <ww:actionmessage/>
   <ww:form method="post" action="editProxiedRepository" namespace="/admin" validate="true">
-    <ww:hidden name="id" />
+    <ww:hidden name="id"/>
     <%@ include file="/WEB-INF/jsp/admin/include/proxiedRepositoryForm.jspf" %>
-    <ww:submit value="Change Repository" />
+    <ww:submit value="Change Repository"/>
   </ww:form>
+
+  <script type="text/javascript">
+    document.getElementById("editProxiedRepository_name").focus();
+  </script>
+
 </div>
 
 </body>
index 9afd8568145e194e5941f820dfcb379f9aa24768..fa05c49c73a3e5c89f46581ac1333f44e4165622 100644 (file)
@@ -19,7 +19,7 @@
 <html>
 <head>
   <title>Configuration</title>
-  <ww:head />
+  <ww:head/>
 </head>
 
 <body>
 
   <h2>Edit Managed Repository</h2>
 
-  <ww:actionmessage />
+  <ww:actionmessage/>
   <ww:form method="post" action="editRepository" namespace="/admin" validate="true">
-    <ww:hidden name="id" />
+    <ww:hidden name="id"/>
     <%@ include file="/WEB-INF/jsp/admin/include/managedRepositoryForm.jspf" %>
-    <ww:checkbox name="indexed" fieldValue="true" label="Indexed" />
-    <ww:submit value="Change Repository" />
+    <ww:checkbox name="indexed" fieldValue="true" label="Indexed"/>
+    <ww:submit value="Change Repository"/>
   </ww:form>
+
+  <script type="text/javascript">
+    document.getElementById("editRepository_name").focus();
+  </script>
+
 </div>
 
 </body>
index a39e2ac8412cb07de55c7289034336588093fe6a..905593214d15f0473882cf8cee6bf4f7c4482aa8 100644 (file)
@@ -20,7 +20,7 @@
 <html>
 <head>
   <title>Configuration</title>
-  <ww:head />
+  <ww:head/>
 </head>
 
 <body>
 
   <h2>Edit Synced Repository</h2>
 
-  <ww:actionmessage />
+  <ww:actionmessage/>
   <ww:form method="post" action="editSyncedRepository" namespace="/admin" validate="true">
-    <ww:hidden name="id" />
+    <ww:hidden name="id"/>
     <%@ include file="/WEB-INF/jsp/admin/include/syncedRepositoryForm.jspf" %>
 
-    <ww:submit value="Update Repository" />
+    <ww:submit value="Update Repository"/>
   </ww:form>
+
+  <script type="text/javascript">
+    document.getElementById("editSyncedRepository_name").focus();
+  </script>
+
 </div>
 
 </body>
index b40dcd7be4b8492037765645e2ad4cd4fb232b24..51495fa49c6020d69b31f53f6f49aa951310e812 100644 (file)
 
 <div id="searchBox">
   <ww:form method="post" action="quickSearch" validate="true">
-    <ww:textfield label="Search for" size="50" name="q" />
-    <ww:submit label="Go!" />
+    <ww:textfield label="Search for" size="50" name="q"/>
+    <ww:submit label="Go!"/>
   </ww:form>
 
+  <script type="text/javascript">
+    document.getElementById("quickSearch_q").focus();
+  </script>
+
   <p>
     Enter your search terms. A variety of data will be searched for your keywords.
-    <ww:actionerror />
+    <ww:actionerror/>
   </p>
 </div>
\ No newline at end of file