* luci/libs/cbi: implement addremove_template
[project/luci.git] / libs / cbi / luasrc / view / cbi / tsection.htm
index 70c44aa..db723f9 100644 (file)
@@ -41,6 +41,7 @@ $Id$
        <%- end %>
 
        <% if self.addremove then -%>
+               <% if self.template_addremove then include(self.template_addremove) else -%>
                <div class="cbi-section-create">
                        <% if self.anonymous then -%>
                                <input type="submit" class="cbi-button cbi-button-add" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" value="<%:cbi_add%>" />
@@ -53,5 +54,6 @@ $Id$
                                <%- end %>
                        <%- end %>
                </div>
+               <%- end %>
        <%- end %>
 </fieldset>