X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=libs%2Fcbi%2Fluasrc%2Fview%2Fcbi%2Fucisection.htm;h=db32c904390734f8f442e75723f5d6aee1e8ba76;hb=7b23839dce0c09953142a5af946ab642027bc3c5;hp=e129c9526e8b41fcaae3e961df6ec25d6ed32af7;hpb=d5cfb28f9bc97edc628e049436167b4bccb0b700;p=oweals%2Fluci.git
diff --git a/libs/cbi/luasrc/view/cbi/ucisection.htm b/libs/cbi/luasrc/view/cbi/ucisection.htm
index e129c9526..db32c9043 100644
--- a/libs/cbi/luasrc/view/cbi/ucisection.htm
+++ b/libs/cbi/luasrc/view/cbi/ucisection.htm
@@ -13,23 +13,59 @@ $Id$
-%>
-<% self:render_children(section, scope or {}) %>
-
-<% 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]%>
+<%-
+ if type(self.hidden) == "table" then
+ for k, v in pairs(self.hidden) do
+-%>
+
+<%-
+ end
+ end
+%>
+
+<% if self.tabs then %>
+ <%+cbi/tabcontainer%>
+<% else %>
+ <% self:render_children(section, scope or {}) %>
+<% end %>
+
+<% if self.error and self.error[section] then -%>
+
+
<% for _, e in ipairs(self.error[section]) do -%>
+
+ <%- if e == "invalid" then -%>
+ <%:One or more fields contain invalid values!%>
+ <%- elseif e == "missing" then -%>
+ <%:One or more required fields have no value!%>
+ <%- else -%>
+ <%=pcdata(e)%>
+ <%- end -%>
+
+ <%- 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 %>
-