X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=libs%2Fcbi%2Fluasrc%2Fview%2Fcbi%2Ftsection.htm;h=33d5c8e499b6bf5fff0e758d0f59368a3f1974db;hp=9f4f2a50d7067a631129b4b1992189b95ea1563c;hb=898c45743aeda97da9e129d4d317d542eca3b4a4;hpb=05d3bf06b4ae6f07ed1c55fd1f7b4e97cb0e2d3d diff --git a/libs/cbi/luasrc/view/cbi/tsection.htm b/libs/cbi/luasrc/view/cbi/tsection.htm index 9f4f2a50d..33d5c8e49 100644 --- a/libs/cbi/luasrc/view/cbi/tsection.htm +++ b/libs/cbi/luasrc/view/cbi/tsection.htm @@ -13,35 +13,41 @@ $Id$ -%> -
-

<%=self.title%>

+
+ <% if self.title and #self.title > 0 then -%> + <%=self.title%> + <%- end %>
<%=self.description%>
- <% for i, k in ipairs(self:cfgsections()) do -%> - <% if self.addremove then -%> -
- -
- <%- end %> - <% if not self.anonymous then %>

<%=k%>

<% end %> - <% section = k %> -
- <%+cbi/ucisection%> + <% local isempty = true for i, k in ipairs(self:cfgsections()) do -%> + <% if self.addremove then -%> +
+
-
<%- end %> + <% section = k; isempty = false %> - <% if self.addremove then -%> -
- <% if self.anonymous then -%> - - <%- else -%> - - - <%- end %> - - <% if self.err_invalid then -%> -
<%:cbi_invalid%>
- <%- end %> -
+ <% if not self.anonymous then -%> +

<%=k:upper()%>

<%- end %> -
+ +
+ <%+cbi/ucisection%> +
+
+ <%- end %> + + <% if isempty then -%> + <%:cbi_sectempty%>

+ <%- end %> + + <% if self.addremove then -%> +
+ <% if self.anonymous then -%> + + <%- else -%> + + + <%- end %> +
+ <%- end %> +