Added extra column to keep ordering buttons in line

This commit is contained in:
str4d
2012-07-10 11:57:40 +00:00
parent 42565f19fc
commit dbd95c5c64

View File

@ -805,7 +805,7 @@ public class SummaryHelper extends HelperBase {
StringBuilder buf = new StringBuilder(2048); StringBuilder buf = new StringBuilder(2048);
buf.append("<table><tr><th>") buf.append("<table><tr><th>")
.append(_("Remove")) .append(_("Remove"))
.append("</th><th>") .append("</th><th colspan=\"2\">")
.append(_("Order")) .append(_("Order"))
.append("</th><th>") .append("</th><th>")
.append(_("Name")) .append(_("Name"))
@ -814,7 +814,7 @@ public class SummaryHelper extends HelperBase {
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=\"center\"><input type=\"hidden\" name=\"order_") .append("\"></td><td align=\"right\"><input type=\"hidden\" name=\"order_")
.append(i + "_" + section) .append(i + "_" + section)
.append("\" value=\"") .append("\" value=\"")
.append(i) .append(i)
@ -831,6 +831,7 @@ public class SummaryHelper extends HelperBase {
.append(_("Up")) .append(_("Up"))
.append("\" src=\"" + imgPath + "move_up.png\">"); .append("\" src=\"" + imgPath + "move_up.png\">");
} }
buf.append("</td><td align=\"left\">");
if (i < sections.size() - 1) { if (i < sections.size() - 1) {
buf.append("<input type=\"image\" class=\"buttonDown\" name=\"move_") buf.append("<input type=\"image\" class=\"buttonDown\" name=\"move_")
.append(i) .append(i)
@ -849,7 +850,7 @@ public class SummaryHelper extends HelperBase {
} }
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\"><input type=\"hidden\" name=\"order\" value=\"") "</td><td align=\"center\" colspan=\"2\"><input type=\"hidden\" name=\"order\" value=\"")
.append(sections.size()) .append(sections.size())
.append("\"></td>" + .append("\"></td>" +
"<td align=\"left\">" + "<td align=\"left\">" +