diff options
author | Steven Barth <steven@midlink.org> | 2008-08-30 20:32:07 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-08-30 20:32:07 +0000 |
commit | d5cfb28f9bc97edc628e049436167b4bccb0b700 (patch) | |
tree | 02cbb70cc5a42ec4aecd0cff741443734f8f56e0 /libs/cbi/luasrc | |
parent | cec13fcb294a9146226a80766b798b392fa90ce9 (diff) |
libs/cbi: Add a check whether a section was recently created
Diffstat (limited to 'libs/cbi/luasrc')
-rw-r--r-- | libs/cbi/luasrc/view/cbi/ucisection.htm | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/libs/cbi/luasrc/view/cbi/ucisection.htm b/libs/cbi/luasrc/view/cbi/ucisection.htm index c245940d4b..e129c9526e 100644 --- a/libs/cbi/luasrc/view/cbi/ucisection.htm +++ b/libs/cbi/luasrc/view/cbi/ucisection.htm @@ -15,14 +15,15 @@ $Id$ <% self:render_children(section, scope or {}) %> -<% if #self.optionals[section] > 0 or self.dynamic then %> - <% if self.tag_deperror[section] then -%> - <div class="cbi-error"><%:cbi_deperror%></div> - <% elseif self.tag_invalid[section] then -%> - <div class="cbi-error"><%:cbi_invalid_section%></div> - <%- elseif self.tag_error[section] then -%> - <div class="cbi-error"><%=self.tag_error[section]%></div> - <%- end %> +<% if self.tag_deperror[section] then -%> + <div class="cbi-error"><%:cbi_deperror%></div> +<% elseif self.tag_invalid[section] then -%> + <div class="cbi-error"><%:cbi_invalid_section%></div> +<%- elseif self.tag_error[section] then -%> + <div class="cbi-error"><%=self.tag_error[section]%></div> +<%- end %> + +<% if self.optionals[section] and #self.optionals[section] > 0 or self.dynamic then %> <div class="cbi-optionals"> <% if self.dynamic then %> <input type="text" name="cbi.opt.<%=self.config%>.<%=section%>" /> |