<%# LuCI - Lua Configuration Interface Copyright 2008 Steven Barth Copyright 2008 Jo-Philipp Wich Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ -%>

<%=self.title%>

<%=self.description%>
<%- local count = 0 -%> <%- if not self.anonymous then -%> <%- end -%> <%- for i, k in pairs(self.children) do -%> <%- count = count + 1; end; if self.extedit then -%> <%- count = count + 1; end; if self.addremove then -%> <%- count = count + 1; end -%> <%- if not self.anonymous then -%> <%- end -%> <%- for i, k in pairs(self.children) do -%> <%- end; if self.extedit then -%> <%- end; if self.addremove then -%> <%- end -%> <%- local isempty = true for i, k in ipairs(self:cfgsections()) do section = k isempty = false scope = { valueheader = "cbi/cell_valueheader", valuefooter = "cbi/cell_valuefooter" } -%> <% if not self.anonymous then -%> <%- end %> <%-+cbi/ucisection-%> <%- if self.extedit or self.addremove then -%> <%- end -%> <%- if self.addremove then -%> <%- end -%> <%- end -%> <%- if isempty then -%> <%- end -%>
 <%=k.title%>  
 <%=k.description%>  

<%=k%>

<%- if self.extedit then -%> <%:edit%> <%- end; if self.addremove then %> <%- end -%>

<%:cbi_sectempty%>
<%- if self.addremove then -%>
<% if self.anonymous then %> <% else %> <% end %> <% if self.err_invalid then %>
<%:cbi_invalid%>
<% end %>
<%- end -%>