luci-base: tweak tblsection markup
authorJo-Philipp Wich <jo@mein.io>
Fri, 13 Jul 2018 07:37:08 +0000 (09:37 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 13 Jul 2018 07:37:08 +0000 (09:37 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/view/cbi/tblsection.htm

index ab13922040ea93bf5392af595e829379bc283173..c6e4d7e9afa592ec6d1e7217f38d0b353b01c0bc 100644 (file)
@@ -80,20 +80,22 @@ local titlename = ifattr(not self.anonymous or self.sectiontitle, "data-title",
 
                        <%- if self.sortable or self.extedit or self.addremove then -%>
                                <div class="td cbi-section-table-cell nowrap cbi-section-actions">
-                                       <%- if self.sortable then -%>
-                                               <input class="cbi-button cbi-button-up" type="button" value="<%:Up%>" onclick="return cbi_row_swap(this, true, 'cbi.sts.<%=self.config%>.<%=self.sectiontype%>')" title="<%:Move up%>" />
-                                               <input class="cbi-button cbi-button-down" type="button" value="<%:Down%>" onclick="return cbi_row_swap(this, false, 'cbi.sts.<%=self.config%>.<%=self.sectiontype%>')" title="<%:Move down%>" />
-                                       <% end; if self.extedit then -%>
-                                               <input class="cbi-button cbi-button-edit" type="button" value="<%:Edit%>"
-                                               <%- if type(self.extedit) == "string" then
-                                               %> onclick="location.href='<%=self.extedit:format(section)%>'"
-                                               <%- elseif type(self.extedit) == "function" then
-                                               %> onclick="location.href='<%=self:extedit(section)%>'"
-                                               <%- end
-                                               %> alt="<%:Edit%>" title="<%:Edit%>" />
-                                       <% end; if self.addremove then %>
-                                               <input class="cbi-button cbi-button-remove" type="submit" value="<%:Delete%>"  onclick="this.form.cbi_state='del-section'; return true" name="cbi.rts.<%=self.config%>.<%=k%>" alt="<%:Delete%>" title="<%:Delete%>" />
-                                       <%- end -%>
+                                       <div>
+                                               <%- if self.sortable then -%>
+                                                       <input class="cbi-button cbi-button-up" type="button" value="<%:Up%>" onclick="return cbi_row_swap(this, true, 'cbi.sts.<%=self.config%>.<%=self.sectiontype%>')" title="<%:Move up%>" />
+                                                       <input class="cbi-button cbi-button-down" type="button" value="<%:Down%>" onclick="return cbi_row_swap(this, false, 'cbi.sts.<%=self.config%>.<%=self.sectiontype%>')" title="<%:Move down%>" />
+                                               <% end; if self.extedit then -%>
+                                                       <input class="cbi-button cbi-button-edit" type="button" value="<%:Edit%>"
+                                                       <%- if type(self.extedit) == "string" then
+                                                       %> onclick="location.href='<%=self.extedit:format(section)%>'"
+                                                       <%- elseif type(self.extedit) == "function" then
+                                                       %> onclick="location.href='<%=self:extedit(section)%>'"
+                                                       <%- end
+                                                       %> alt="<%:Edit%>" title="<%:Edit%>" />
+                                               <% end; if self.addremove then %>
+                                                       <input class="cbi-button cbi-button-remove" type="submit" value="<%:Delete%>"  onclick="this.form.cbi_state='del-section'; return true" name="cbi.rts.<%=self.config%>.<%=k%>" alt="<%:Delete%>" title="<%:Delete%>" />
+                                               <%- end -%>
+                                       </div>
                                </div>
                        <%- end -%>
                </div>