X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;ds=sidebyside;f=libs%2Fcbi%2Fluasrc%2Fview%2Fcbi%2Fucisection.htm;h=5504a7476c562db0cd9ed2ca580d11212a20a9d6;hb=b618361bf1c7ea160f3e0ef18aa8f409f7a21eff;hp=c245940d4bc1551dfa49a9f7737c02779d84d0c4;hpb=4ca6f02af21d968e7da2018515f41cee4e4efd3f;p=project%2Fluci.git
diff --git a/libs/cbi/luasrc/view/cbi/ucisection.htm b/libs/cbi/luasrc/view/cbi/ucisection.htm
index c245940d4..5504a7476 100644
--- a/libs/cbi/luasrc/view/cbi/ucisection.htm
+++ b/libs/cbi/luasrc/view/cbi/ucisection.htm
@@ -15,19 +15,32 @@ $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.error and self.error[section] then -%>
+
+
<% for _, e in ipairs(self.error[section]) do %>- <%=luci.util.pcdata(e):gsub("\n","
")%> <% end %>
+
+<%- end %>
+
+<% if self.optionals[section] and #self.optionals[section] > 0 or self.dynamic then %>
<% if self.dynamic then %>
-
+
+ <% if self.optionals[section] and #self.optionals[section] > 0 then %>
+
+ <% end %>
<% else %>
-