libs/cbi: Add a check whether a section was recently created

This commit is contained in:
Steven Barth 2008-08-30 20:32:07 +00:00
parent cec13fcb29
commit d5cfb28f9b

View file

@ -15,14 +15,15 @@ $Id$
<% self:render_children(section, scope or {}) %> <% self:render_children(section, scope or {}) %>
<% if #self.optionals[section] > 0 or self.dynamic then %> <% if self.tag_deperror[section] then -%>
<% if self.tag_deperror[section] then -%>
<div class="cbi-error"><%:cbi_deperror%></div> <div class="cbi-error"><%:cbi_deperror%></div>
<% elseif self.tag_invalid[section] then -%> <% elseif self.tag_invalid[section] then -%>
<div class="cbi-error"><%:cbi_invalid_section%></div> <div class="cbi-error"><%:cbi_invalid_section%></div>
<%- elseif self.tag_error[section] then -%> <%- elseif self.tag_error[section] then -%>
<div class="cbi-error"><%=self.tag_error[section]%></div> <div class="cbi-error"><%=self.tag_error[section]%></div>
<%- end %> <%- end %>
<% if self.optionals[section] and #self.optionals[section] > 0 or self.dynamic then %>
<div class="cbi-optionals"> <div class="cbi-optionals">
<% if self.dynamic then %> <% if self.dynamic then %>
<input type="text" name="cbi.opt.<%=self.config%>.<%=section%>" /> <input type="text" name="cbi.opt.<%=self.config%>.<%=section%>" />