forked from I2P_Developers/i2p.i2p
Rearanged columns of summary bar config table
This commit is contained in:
@ -805,16 +805,18 @@ public class SummaryHelper extends HelperBase {
|
|||||||
StringBuilder buf = new StringBuilder(2048);
|
StringBuilder buf = new StringBuilder(2048);
|
||||||
buf.append("<table class=\"sidebarconf\"><tr><th>")
|
buf.append("<table class=\"sidebarconf\"><tr><th>")
|
||||||
.append(_("Remove"))
|
.append(_("Remove"))
|
||||||
.append("</th><th colspan=\"2\">")
|
|
||||||
.append(_("Order"))
|
|
||||||
.append("</th><th>")
|
.append("</th><th>")
|
||||||
.append(_("Name"))
|
.append(_("Name"))
|
||||||
|
.append("</th><th colspan=\"2\">")
|
||||||
|
.append(_("Order"))
|
||||||
.append("</th></tr>\n");
|
.append("</th></tr>\n");
|
||||||
for (String section : sections) {
|
for (String section : sections) {
|
||||||
int i = sections.indexOf(section);
|
int i = sections.indexOf(section);
|
||||||
buf.append("<tr><td align=\"center\"><input type=\"checkbox\" class=\"optbox\" name=\"delete_")
|
buf.append("<tr><td align=\"center\"><input type=\"checkbox\" class=\"optbox\" name=\"delete_")
|
||||||
.append(i)
|
.append(i)
|
||||||
.append("\"></td><td align=\"right\"><input type=\"hidden\" name=\"order_")
|
.append("\"></td><td align=\"left\">")
|
||||||
|
.append(section)
|
||||||
|
.append("</td><td align=\"right\"><input type=\"hidden\" name=\"order_")
|
||||||
.append(i + "_" + section)
|
.append(i + "_" + section)
|
||||||
.append("\" value=\"")
|
.append("\" value=\"")
|
||||||
.append(i)
|
.append(i)
|
||||||
@ -844,16 +846,11 @@ public class SummaryHelper extends HelperBase {
|
|||||||
.append(_("Bottom"))
|
.append(_("Bottom"))
|
||||||
.append("\" src=\"" + imgPath + "move_bottom.png\">");
|
.append("\" src=\"" + imgPath + "move_bottom.png\">");
|
||||||
}
|
}
|
||||||
buf.append("</td><td align=\"left\">")
|
buf.append("</td></tr>\n");
|
||||||
.append(section)
|
|
||||||
.append("</td></tr>\n");
|
|
||||||
}
|
}
|
||||||
buf.append("<tr><td align=\"center\"><b>")
|
buf.append("<tr><td align=\"center\"><b>")
|
||||||
.append(_("Add")).append(":</b>" +
|
.append(_("Add")).append(":</b>" +
|
||||||
"</td><td align=\"center\" colspan=\"2\"><input type=\"hidden\" name=\"order\" value=\"")
|
"</td><td align=\"left\">" +
|
||||||
.append(sections.size())
|
|
||||||
.append("\"></td>" +
|
|
||||||
"<td align=\"left\">" +
|
|
||||||
"<select name=\"name\">\n" +
|
"<select name=\"name\">\n" +
|
||||||
"<option value=\"\" selected=\"selected\">")
|
"<option value=\"\" selected=\"selected\">")
|
||||||
.append(_("Select a section to add"))
|
.append(_("Select a section to add"))
|
||||||
@ -864,7 +861,10 @@ public class SummaryHelper extends HelperBase {
|
|||||||
.append(s).append("</option>\n");
|
.append(s).append("</option>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
buf.append("</select></td></tr>")
|
buf.append("</select></td>" +
|
||||||
|
"<td align=\"center\" colspan=\"2\"><input type=\"hidden\" name=\"order\" value=\"")
|
||||||
|
.append(sections.size())
|
||||||
|
.append("\"></td></tr>")
|
||||||
.append("</table>\n");
|
.append("</table>\n");
|
||||||
return buf.toString();
|
return buf.toString();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user