nsection.htm 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. <% if self:cfgvalue(self.section) then section = self.section %>
  2. <fieldset class="cbi-section" id="cbi-<%=self.config%>-<%=section%>">
  3. <% if self.title and #self.title > 0 then -%>
  4. <legend><%=self.title%></legend>
  5. <%- end %>
  6. <% if self.description and #self.description > 0 then -%>
  7. <div class="cbi-section-descr"><%=self.description%></div>
  8. <%- end %>
  9. <% if self.addremove then -%>
  10. <div class="cbi-section-remove right">
  11. <input type="submit" class="cbi-button" name="cbi.rns.<%=self.config%>.<%=section%>" value="<%:Delete%>" />
  12. </div>
  13. <%- end %>
  14. <%+cbi/tabmenu%>
  15. <div class="cbi-section-node<% if self.tabs then %> cbi-section-node-tabbed<% end %>" id="cbi-<%=self.config%>-<%=section%>">
  16. <%+cbi/ucisection%>
  17. </div>
  18. <br />
  19. </fieldset>
  20. <% elseif self.addremove then %>
  21. <% if self.template_addremove then include(self.template_addremove) else -%>
  22. <fieldset class="cbi-section" id="cbi-<%=self.config%>-<%=self.section%>">
  23. <% if self.title and #self.title > 0 then -%>
  24. <legend><%=self.title%></legend>
  25. <%- end %>
  26. <div class="cbi-section-descr"><%=self.description%></div>
  27. <input type="submit" class="cbi-button cbi-button-add" name="cbi.cns.<%=self.config%>.<%=self.section%>" value="<%:Add%>" />
  28. </fieldset>
  29. <%- end %>
  30. <% end %>
  31. <!-- /nsection -->