X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=libs%2Fcbi%2Fluasrc%2Fview%2Fcbi%2Fucisection.htm;h=db32c904390734f8f442e75723f5d6aee1e8ba76;hb=7b23839dce0c09953142a5af946ab642027bc3c5;hp=c245940d4bc1551dfa49a9f7737c02779d84d0c4;hpb=4ca6f02af21d968e7da2018515f41cee4e4efd3f;p=oweals%2Fluci.git
diff --git a/libs/cbi/luasrc/view/cbi/ucisection.htm b/libs/cbi/luasrc/view/cbi/ucisection.htm
index c245940d4..db32c9043 100644
--- a/libs/cbi/luasrc/view/cbi/ucisection.htm
+++ b/libs/cbi/luasrc/view/cbi/ucisection.htm
@@ -13,22 +13,59 @@ $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 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 %>
-