X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=libs%2Fcbi%2Fluasrc%2Fview%2Fcbi%2Fucisection.htm;h=5d53436ce1106944654af1c8f6de3cde4f36f7b3;hb=712424dc0cf17a60f3d77024b892cc04146f6295;hp=e129c9526e8b41fcaae3e961df6ec25d6ed32af7;hpb=d5cfb28f9bc97edc628e049436167b4bccb0b700;p=project%2Fluci.git diff --git a/libs/cbi/luasrc/view/cbi/ucisection.htm b/libs/cbi/luasrc/view/cbi/ucisection.htm index e129c9526..5d53436ce 100644 --- a/libs/cbi/luasrc/view/cbi/ucisection.htm +++ b/libs/cbi/luasrc/view/cbi/ucisection.htm @@ -15,23 +15,35 @@ $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 self.error and self.error[section] then -%> +
+ +
<%- 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 %> - <% for key, val in pairs(self.optionals[section]) do -%> - + <%- end %>