summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-10-21 01:56:50 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-10-21 01:56:50 +0000
commit85fbb033cf3cd0e86844755c266c1a02946b392e (patch)
treefb887e04338b11d291ce6d155d2fb7e9ee183f51 /libs
parent4e8af56ac13c4361bb8121fc969116b14b5910a9 (diff)
* luci-0.8: merge r3607, r3608, r3611 and r3612
Diffstat (limited to 'libs')
-rw-r--r--libs/cbi/luasrc/view/cbi/tblsection.htm32
1 files changed, 15 insertions, 17 deletions
diff --git a/libs/cbi/luasrc/view/cbi/tblsection.htm b/libs/cbi/luasrc/view/cbi/tblsection.htm
index be7e723f7a..898645a72b 100644
--- a/libs/cbi/luasrc/view/cbi/tblsection.htm
+++ b/libs/cbi/luasrc/view/cbi/tblsection.htm
@@ -106,24 +106,22 @@ 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>
+ <%- if self.addremove then -%>
+ <% if self.template_addremove then include(self.template_addremove) else -%>
+ <div class="cbi-section-create cbi-tblsection-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 -%>
+ <%- end %>
+ <%- end -%>
</div>
</fieldset>
<!-- /tblsection -->