diff --git a/libs/cbi/luasrc/view/cbi/nsection.htm b/libs/cbi/luasrc/view/cbi/nsection.htm
index 156137eeba..d766464bd1 100644
--- a/libs/cbi/luasrc/view/cbi/nsection.htm
+++ b/libs/cbi/luasrc/view/cbi/nsection.htm
@@ -32,6 +32,7 @@ $Id$
<% elseif self.addremove then %>
+ <% if self.template_addremove then include(self.template_addremove) else -%>
+ <%- end %>
<% end %>
diff --git a/libs/cbi/luasrc/view/cbi/tblsection.htm b/libs/cbi/luasrc/view/cbi/tblsection.htm
index b0da0813d3..af62c53ba1 100644
--- a/libs/cbi/luasrc/view/cbi/tblsection.htm
+++ b/libs/cbi/luasrc/view/cbi/tblsection.htm
@@ -107,18 +107,20 @@ end
<% end %>
<%- if self.addremove then -%>
-
- <% if self.anonymous then %>
-
- <% else %>
- <% if self.invalid_cts then -%>
<% end %>
-
-
- <% if self.invalid_cts then -%>
- <%:cbi_invalid%>
- <%- end %>
- <% end %>
-
+ <% if self.template_addremove then include(self.template_addremove) else -%>
+
+ <% if self.anonymous then %>
+
+ <% else %>
+ <% if self.invalid_cts then -%>
<% end %>
+
+
+ <% if self.invalid_cts then -%>
+ <%:cbi_invalid%>
+ <%- end %>
+ <% end %>
+
+ <%- end %>
<%- end -%>
diff --git a/libs/cbi/luasrc/view/cbi/tsection.htm b/libs/cbi/luasrc/view/cbi/tsection.htm
index 70c44aaf6b..db723f92aa 100644
--- a/libs/cbi/luasrc/view/cbi/tsection.htm
+++ b/libs/cbi/luasrc/view/cbi/tsection.htm
@@ -41,6 +41,7 @@ $Id$
<%- end %>
<% if self.addremove then -%>
+ <% if self.template_addremove then include(self.template_addremove) else -%>
<% if self.anonymous then -%>
@@ -53,5 +54,6 @@ $Id$
<%- end %>
<%- end %>