X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=libs%2Fcbi%2Fluasrc%2Fview%2Fcbi%2Ftblsection.htm;h=a557c584fd1668f514fe8931502c080e2a89c38a;hp=979a135b5452154367efac532cc1befac63a5d99;hb=4ca6f02af21d968e7da2018515f41cee4e4efd3f;hpb=1dacc5c20affa5767772546fc2f54fab41916457 diff --git a/libs/cbi/luasrc/view/cbi/tblsection.htm b/libs/cbi/luasrc/view/cbi/tblsection.htm index 979a135b5..a557c584f 100644 --- a/libs/cbi/luasrc/view/cbi/tblsection.htm +++ b/libs/cbi/luasrc/view/cbi/tblsection.htm @@ -21,20 +21,26 @@ end -%> -
-

<%=self.title%>

+
+ <% if self.title and #self.title > 0 then -%> + <%=self.title%> + <%- end %>
<%=self.description%>
<%- local count = 0 -%> <%- if not self.anonymous then -%> - + <%- end -%> <%- for i, k in pairs(self.children) do if not k.optional then -%> - + <%- count = count + 1; end; end; if self.extedit or self.addremove then -%> - + <%- count = count + 1; end -%> @@ -53,7 +59,7 @@ end isempty = false scope = { valueheader = "cbi/cell_valueheader", valuefooter = "cbi/cell_valuefooter" } -%> - + <% if not self.anonymous then -%> <%- end %> @@ -70,13 +76,32 @@ end <%- if self.extedit or self.addremove then -%> <%- end -%> + <% if self.tag_deperror[section] or self.tag_invalid[section] or self.tag_error[section] then %> + + + + <% end %> <%- end -%> <%- if isempty then -%> @@ -104,5 +129,5 @@ end <%- end -%> - +
  <%=k.title%> + <%- if k.titleref then -%><%- end -%> + <%-=k.title-%> + <%- if k.titleref then -%><%- end -%> +   

<%=k%>

<%- if self.extedit then -%> - <%:edit%> + + <%=self.extedit:format(section)%> + <%- elseif type(self.extedit) == "function" then -%> + <%=self:extedit(section)%> + <%- end -%> + " title="<%:edit%>"><%:edit%> <%- end; if self.addremove then %> <%- 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 -%> +