source: apps/routerconsole/jsp/configupdate.jsp @ a309a14

Last change on this file since a309a14 was a309a14, checked in by z3d <z3d@…>, 11 years ago

Fixes for config page ui issues.

  • Property mode set to 100644
File size: 4.2 KB
Line 
1<%@page contentType="text/html"%>
2<%@page pageEncoding="UTF-8"%>
3<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
5<html><head><title>I2P Router Console - config update</title>
6<%@include file="css.jsp" %>
7</head><body>
8
9<%@include file="summary.jsp" %>
10<h1>I2P Update Configuration</h1>
11<div class="main" id="main">
12 <%@include file="confignav.jsp" %>
13
14 <jsp:useBean class="net.i2p.router.web.ConfigUpdateHandler" id="formhandler" scope="request" />
15 <jsp:setProperty name="formhandler" property="*" />
16 <jsp:setProperty name="formhandler" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
17 <jsp:getProperty name="formhandler" property="allMessages" />
18 <jsp:useBean class="net.i2p.router.web.ConfigUpdateHelper" id="updatehelper" scope="request" />
19 <jsp:setProperty name="updatehelper" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
20<div class="messages">
21<i><jsp:getProperty name="updatehelper" property="newsStatus" /></i></div>
22<div class="configure">
23 <form action="configupdate.jsp" method="POST">
24 <% String prev = System.getProperty("net.i2p.router.web.ConfigUpdateHandler.nonce");
25    if (prev != null) System.setProperty("net.i2p.router.web.ConfigUpdateHandler.noncePrev", prev);
26    System.setProperty("net.i2p.router.web.ConfigUpdateHandler.nonce", new java.util.Random().nextLong()+""); %>
27 <input type="hidden" name="nonce" value="<%=System.getProperty("net.i2p.router.web.ConfigUpdateHandler.nonce")%>" />
28      <h3>Check for I2P and news updates</h3>
29      <div class="wideload"><table border="0" cellspacing="5">
30        <tr><td colspan="2"></tr>
31        <tr><td class= "mediumtags" align="right"><b>News &amp; I2P Updates:</b></td>
32          <td> <% if ("true".equals(System.getProperty("net.i2p.router.web.UpdateHandler.updateInProgress", "false"))) { %> <i>Update In Progress</i><br> <% } else { %> <input type="submit" name="action" value="Check for updates" />
33            <% } %></td></tr>
34        <tr><td colspan="2"><br></td></tr>
35        <tr><td class= "mediumtags" align="right"><b>News URL:</b></td>
36          <td><input type="text" size="60" name="newsURL" value="<jsp:getProperty name="updatehelper" property="newsURL" />"></td>
37        </tr><tr><td class= "mediumtags" align="right"><b>Refresh frequency:</b>
38          <td><jsp:getProperty name="updatehelper" property="refreshFrequencySelectBox" /></td><tr>
39          <td class= "mediumtags" align="right"><b>Update policy:</b></td>
40          <td><jsp:getProperty name="updatehelper" property="updatePolicySelectBox" /></td>
41        <tr><td class= "mediumtags" align="right"><b>Update through the eepProxy?</b></td>
42          <td><jsp:getProperty name="updatehelper" property="updateThroughProxy" /></td>
43        </tr><tr><td class= "mediumtags" align="right"><b>eepProxy host:</b></td>
44          <td><input type="text" size="10" name="proxyHost" value="<jsp:getProperty name="updatehelper" property="proxyHost" />" /></td>
45        </tr><tr><td class= "mediumtags" align="right"><b>eepProxy port:</b></td>
46          <td><input type="text" size="4" name="proxyPort" value="<jsp:getProperty name="updatehelper" property="proxyPort" />" /></td>
47        </tr><tr><td class= "mediumtags" align="right"><b>Update URLs:</b></td>
48          <td><textarea name="updateURL" wrap="off"><jsp:getProperty name="updatehelper" property="updateURL" /></textarea></td>
49        </tr><tr><td class= "mediumtags" align="right"><b>Trusted keys:</b></td>
50          <td><textarea name="trustedKeys" wrap="off"><jsp:getProperty name="updatehelper" property="trustedKeys" /></textarea></td>
51        </tr><tr><td class= "mediumtags" align="right"><b>Update with unsigned development builds?</b></td>
52          <td><jsp:getProperty name="updatehelper" property="updateUnsigned" /></td>
53        </tr><tr><td class= "mediumtags" align="right"><b>Unsigned Build URL:</b></td>
54          <td><input type="text" size="60" name="zipURL" value="<jsp:getProperty name="updatehelper" property="zipURL" />"></td>
55        </tr><tr class="tablefooter"><td colspan="2">
56        <div class="formaction">
57            <input type="submit" name="action" value="Save" />
58            <input type="reset" value="Cancel" />
59        </div></td></tr></table></div></form></div></div></body></html>
Note: See TracBrowser for help on using the repository browser.