I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit b1a4b8bf authored by str4d's avatar str4d
Browse files

Rearanged columns of summary bar config table

parent ac9bdab7
No related branches found
No related tags found
No related merge requests found
...@@ -805,16 +805,18 @@ public class SummaryHelper extends HelperBase { ...@@ -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 { ...@@ -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 { ...@@ -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();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment