* luci/libs/cbi: fix html errors in cbi templates
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 8 Sep 2008 00:34:27 +0000 (00:34 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 8 Sep 2008 00:34:27 +0000 (00:34 +0000)
libs/cbi/luasrc/view/cbi/dynlist.htm
libs/cbi/luasrc/view/cbi/tblsection.htm

index 1cfd6f03e5295a1dbe1e623608906aa166693e7a..d2e60b1de8d479fa48906a3fe38f43790c382e30 100644 (file)
@@ -39,7 +39,6 @@ $Id$
                        <%- end -%>', '<%:cbi_manual%>');
                </script>
        <% end -%>
-       <br />
 <% if i <= #vals then %><br />
 <% end end %>
 <%+cbi/valuefooter%>
index be7e723f7a5b41c99fc76378f32bb946120e8812..b0da0813d3ce025b1df0320c622aae87f0a34847 100644 (file)
@@ -106,24 +106,20 @@ end
                        </div>
                <% end %>
 
-                       <%- if self.addremove then -%>
-                       <div class="cbi-section-table-row">
-                               <td colspan="<%=count%>" class="cbi-section-table-optionals">
-                                       <div class="cbi-section-create">
-                                               <% if self.anonymous then %>
-                                                       <input class="cbi-button cbi-button-add" type="submit" value="<%:cbi_add%>" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" title="<%:cbi_add%>" />
-                                               <% else %>
-                                                       <% if self.invalid_cts then -%><div class="cbi-section-error"><% end %>
-                                                       <input type="text" class="cbi-section-create-name" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" />
-                                                       <input class="cbi-button cbi-button-add" type="submit" value="<%:cbi_add%>" title="<%:cbi_add%>" />
-                                                       <% if self.invalid_cts then -%>
-                                                               <br /><%:cbi_invalid%></div>
-                                                       <%- end %>
-                                               <% end %>
-                                       </div>
-                               </td>
-                       </div>
-                       <%- end -%>
+               <%- if self.addremove then -%>
+               <div class="cbi-section-create">
+                       <% if self.anonymous then %>
+                               <input class="cbi-button cbi-button-add" type="submit" value="<%:cbi_add%>" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" title="<%:cbi_add%>" />
+                       <% else %>
+                               <% if self.invalid_cts then -%><div class="cbi-section-error"><% end %>
+                               <input type="text" class="cbi-section-create-name" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" />
+                               <input class="cbi-button cbi-button-add" type="submit" value="<%:cbi_add%>" title="<%:cbi_add%>" />
+                               <% if self.invalid_cts then -%>
+                                       <br /><%:cbi_invalid%></div>
+                               <%- end %>
+                       <% end %>
+               </div>
+               <%- end -%>
        </div>
 </fieldset>
 <!-- /tblsection -->