2008-07-15 17:27:58 +00:00
|
|
|
<% if self:cfgvalue(self.section) then section = self.section %>
|
2018-06-19 15:10:38 +00:00
|
|
|
<div class="cbi-section">
|
2008-07-20 15:16:13 +00:00
|
|
|
<% if self.title and #self.title > 0 then -%>
|
|
|
|
<legend><%=self.title%></legend>
|
|
|
|
<%- end %>
|
2008-08-14 01:31:17 +00:00
|
|
|
<% if self.description and #self.description > 0 then -%>
|
|
|
|
<div class="cbi-section-descr"><%=self.description%></div>
|
|
|
|
<%- end %>
|
2008-07-15 17:27:58 +00:00
|
|
|
<% if self.addremove then -%>
|
|
|
|
<div class="cbi-section-remove right">
|
2014-08-12 10:42:14 +00:00
|
|
|
<input type="submit" class="cbi-button" name="cbi.rns.<%=self.config%>.<%=section%>" value="<%:Delete%>" />
|
2008-07-15 17:27:58 +00:00
|
|
|
</div>
|
|
|
|
<%- end %>
|
2009-08-16 03:29:46 +00:00
|
|
|
<%+cbi/tabmenu%>
|
2011-09-30 14:14:04 +00:00
|
|
|
<div class="cbi-section-node<% if self.tabs then %> cbi-section-node-tabbed<% end %>" id="cbi-<%=self.config%>-<%=section%>">
|
2008-07-15 17:27:58 +00:00
|
|
|
<%+cbi/ucisection%>
|
|
|
|
</div>
|
2018-06-19 15:10:38 +00:00
|
|
|
</div>
|
2008-04-11 18:29:19 +00:00
|
|
|
<% elseif self.addremove then %>
|
2008-10-10 11:47:32 +00:00
|
|
|
<% if self.template_addremove then include(self.template_addremove) else -%>
|
2018-06-19 15:10:38 +00:00
|
|
|
<div class="cbi-section" id="cbi-<%=self.config%>-<%=self.section%>">
|
2008-07-20 15:16:13 +00:00
|
|
|
<% if self.title and #self.title > 0 then -%>
|
|
|
|
<legend><%=self.title%></legend>
|
|
|
|
<%- end %>
|
2008-07-15 17:27:58 +00:00
|
|
|
<div class="cbi-section-descr"><%=self.description%></div>
|
2014-08-12 10:42:14 +00:00
|
|
|
<input type="submit" class="cbi-button cbi-button-add" name="cbi.cns.<%=self.config%>.<%=self.section%>" value="<%:Add%>" />
|
2018-06-19 15:10:38 +00:00
|
|
|
</div>
|
2008-10-10 11:47:32 +00:00
|
|
|
<%- end %>
|
2008-04-11 18:29:19 +00:00
|
|
|
<% end %>
|
2008-07-20 15:16:13 +00:00
|
|
|
<!-- /nsection -->
|