Changeset 8bbcb0b


Ignore:
Timestamp:
Mar 9, 2011 3:56:23 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
6b6aaab8
Parents:
a1032ab
Message:

split up form, fix HTML warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/jsp/configclients.jsp

    ra1032ab r8bbcb0b  
    2828 <jsp:setProperty name="formhandler" property="settings" value="<%=request.getParameterMap()%>" />
    2929 <jsp:getProperty name="formhandler" property="allMessages" />
    30  <div class="configure"><form action="" method="POST">
     30 <div class="configure">
    3131 <% String prev = System.getProperty("net.i2p.router.web.ConfigClientsHandler.nonce");
    3232    if (prev != null) System.setProperty("net.i2p.router.web.ConfigClientsHandler.noncePrev", prev);
    33     System.setProperty("net.i2p.router.web.ConfigClientsHandler.nonce", new java.util.Random().nextLong()+""); %>
    34  <input type="hidden" name="nonce" value="<%=System.getProperty("net.i2p.router.web.ConfigClientsHandler.nonce")%>" >
    35  <% /* set hidden default */ %>
    36  <button type="submit" name="action" value="" style="display:none" >Cancel</button>
     33    String pageNonce = Long.toString(new java.util.Random().nextLong());
     34    System.setProperty("net.i2p.router.web.ConfigClientsHandler.nonce", pageNonce); %>
    3735 <h3><%=intl._("Client Configuration")%></h3><p>
    3836 <%=intl._("The Java clients listed below are started by the router and run in the same JVM.")%>
    3937 </p><div class="wideload">
    40  <p><jsp:getProperty name="clientshelper" property="form1" />
    41  </p><p><i><%=intl._("To change other client options, edit the file")%>
     38<form action="" method="POST">
     39<input type="hidden" name="nonce" value="<%=pageNonce%>" >
     40<jsp:getProperty name="clientshelper" property="form1" />
     41<p><i><%=intl._("To change other client options, edit the file")%>
    4242 <%=net.i2p.router.startup.ClientAppConfig.configFile(net.i2p.I2PAppContext.getGlobalContext()).getAbsolutePath()%>.
    4343 <%=intl._("All changes require restart to take effect.")%></i>
     
    4848<% } %>
    4949 <input type="submit" name="action" value="<%=intl._("Save Client Configuration")%>" />
    50 </div></div>
     50</div></form></div>
    5151
    52 <h3><a name="i2cp"></a><%=intl._("Advanced Client Interface Configuration")%></h3><p>
     52<h3><a name="i2cp"></a><%=intl._("Advanced Client Interface Configuration")%></h3>
     53<form action="" method="POST">
     54<input type="hidden" name="nonce" value="<%=pageNonce%>" >
     55<p>
    5356<b><%=intl._("External I2CP (I2P Client Protocol) Interface Configuration")%></b><br>
    5457<input type="radio" class="optbox" name="mode" value="1" <%=clientshelper.i2cpModeChecked(1) %> >
     
    9093<input type="submit" name="foo" value="<%=intl._("Cancel")%>" />
    9194<input type="submit" name="action" value="<%=intl._("Save Interface Configuration")%>" />
    92 </div>
     95</div></form>
    9396
    9497<h3><a name="webapp"></a><%=intl._("WebApp Configuration")%></h3><p>
     
    9699 </p><p>
    97100 <%=intl._("A web app may also be disabled by removing the .war file from the webapps directory; however the .war file and web app will reappear when you update your router to a newer version, so disabling the web app here is the preferred method.")%>
    98  </p><div class="wideload"><p>
     101 </p><div class="wideload">
     102<form action="" method="POST">
     103<input type="hidden" name="nonce" value="<%=pageNonce%>" >
    99104 <jsp:getProperty name="clientshelper" property="form2" />
    100  </p><p>
    101  <i><%=intl._("All changes require restart to take effect.")%></i>
     105 <p><i><%=intl._("All changes require restart to take effect.")%></i>
    102106 </p><hr><div class="formaction">
    103107 <input type="submit" name="action" value="<%=intl._("Save WebApp Configuration")%>" />
    104 </div></div>
     108</div></form></div>
     109
    105110<% if (clientshelper.showPlugins()) { %>
    106111<h3><a name="pconfig"></a><%=intl._("Plugin Configuration")%></h3><p>
    107112 <%=intl._("The plugins listed below are started by the webConsole client.")%>
    108  </p><div class="wideload"><p>
     113 </p><div class="wideload">
     114<form action="" method="POST">
     115<input type="hidden" name="nonce" value="<%=pageNonce%>" >
    109116 <jsp:getProperty name="clientshelper" property="form3" />
    110  </p><hr><div class="formaction">
     117<hr><div class="formaction">
    111118 <input type="submit" name="action" value="<%=intl._("Save Plugin Configuration")%>" />
    112 </div></div><h3><a name="plugin"></a><%=intl._("Plugin Installation")%></h3><p>
     119</div></form></div>
     120
     121<h3><a name="plugin"></a><%=intl._("Plugin Installation")%></h3><p>
    113122 <%=intl._("To install a plugin, enter the download URL:")%>
    114  </p><div class="wideload"><p>
     123 </p><div class="wideload">
     124<form action="" method="POST">
     125<input type="hidden" name="nonce" value="<%=pageNonce%>" >
     126<p>
    115127 <input type="text" size="60" name="pluginURL" >
    116128 </p><hr><div class="formaction">
    117129 <input type="submit" name="action" value="<%=intl._("Install Plugin")%>" />
    118  </div></div>
     130 </div></form></div>
    119131<% } %>
    120 </form></div></div></body></html>
     132</div></div></body></html>
Note: See TracChangeset for help on using the changeset viewer.