From d5cfb28f9bc97edc628e049436167b4bccb0b700 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sat, 30 Aug 2008 20:32:07 +0000 Subject: [PATCH] libs/cbi: Add a check whether a section was recently created --- libs/cbi/luasrc/view/cbi/ucisection.htm | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/libs/cbi/luasrc/view/cbi/ucisection.htm b/libs/cbi/luasrc/view/cbi/ucisection.htm index c245940d4..e129c9526 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 -%> -
<%:cbi_deperror%>
- <% elseif self.tag_invalid[section] then -%> -
<%:cbi_invalid_section%>
- <%- elseif self.tag_error[section] then -%> -
<%=self.tag_error[section]%>
- <%- end %> +<% if self.tag_deperror[section] then -%> +
<%:cbi_deperror%>
+<% elseif self.tag_invalid[section] then -%> +
<%:cbi_invalid_section%>
+<%- elseif self.tag_error[section] then -%> +
<%=self.tag_error[section]%>
+<%- end %> + +<% if self.optionals[section] and #self.optionals[section] > 0 or self.dynamic then %>
<% if self.dynamic then %> -- 2.25.1