<%# 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$ -%> <%- if type(self.hidden) == "table" then for k, v in pairs(self.hidden) do -%> <%- end end %> <% if self.tabs then %> <%+cbi/tabcontainer%> <% else %> <% self:render_children(section, scope or {}) %> <% end %> <% if self.error and self.error[section] then -%>
    <% for _, e in ipairs(self.error[section]) do -%>
  • <%- if e == "invalid" then -%> <%:One or more fields contain invalid values!%> <%- elseif e == "missing" then -%> <%:One or more required fields have no value!%> <%- else -%> <%=pcdata(e)%> <%- end -%>
  • <%- end %>
<%- 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 %> <% end %>
<% end %>