<%- if firstmap and messages then local msg; for _, msg in ipairs(messages) do -%>
<%=pcdata(msg)%>
<%- end end -%> <% local function has_access(config, level) local rv = luci.util.ubus("session", "access", { ubus_rpc_session = luci.dispatcher.context.authsession, scope = "uci", object = config, ["function"] = level }) return (type(rv) == "table" and rv.access == true) or false end local is_readable = has_access(self.config, "read") local is_writable = has_access(self.config, "write") has_writeable_map = has_writeable_map or is_writable %> <% if is_readable then %>
> <% if self.title and #self.title > 0 then %>

<%=self.title%>

<% end %> <% if self.description and #self.description > 0 then %>
<%=self.description%>
<% end %> <% if self.tabbed then %>
<% for i, section in ipairs(self.children) do tab = section.section or section.sectiontype %>
> <% section:render() %>
<% end %>
<% if not self.save then -%>
<% for _, section in ipairs(self.children) do %> <% if section.error and section.error[section.section] then -%> <%- end %> <% end %>
<%- end %> <% else %> <%- self:render_children() %> <% end %>
<% else %>
<%:Insufficient permissions to read UCI configuration.%>
<% end %>