X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=libs%2Fcbi%2Fluasrc%2Fview%2Fcbi%2Ftblsection.htm;h=be7e723f7a5b41c99fc76378f32bb946120e8812;hp=a6944881ac8b43d0bc30ce0515e869f13b24a2d6;hb=d8282d382bc675eb1c930eed0fe65c41050400b8;hpb=2c09564d762b692d970a531cca58eb52ba3807e7 diff --git a/libs/cbi/luasrc/view/cbi/tblsection.htm b/libs/cbi/luasrc/view/cbi/tblsection.htm index a6944881a..be7e723f7 100644 --- a/libs/cbi/luasrc/view/cbi/tblsection.htm +++ b/libs/cbi/luasrc/view/cbi/tblsection.htm @@ -31,7 +31,7 @@ end <%- 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 -%> @@ -59,7 +59,7 @@ end isempty = false scope = { valueheader = "cbi/cell_valueheader", valuefooter = "cbi/cell_valuefooter" } -%> - + <% if not self.anonymous then -%> <%- end %> @@ -76,7 +76,13 @@ end <%- if self.extedit or self.addremove then -%> <%- end -%>
   @@ -40,7 +40,7 @@ end <%- 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 -%> @@ -91,6 +97,15 @@ end
+ + <% if self.error then %> +
+ +
+ <% end %> + <%- if self.addremove then -%>
@@ -98,12 +113,12 @@ end <% if self.anonymous then %> <% else %> + <% if self.invalid_cts then -%>
<% end %> - <% end %> - - <% if self.err_invalid then %> -
<%:cbi_invalid%>
+ <% if self.invalid_cts then -%> +
<%:cbi_invalid%>
+ <%- end %> <% end %>