<%+cbi/valueheader%> <%- local utl = require "luci.util" local fwm = require "luci.model.firewall".init() local nwm = require "luci.model.network".init() local zone, fwd, fz local value = self:formvalue(section) if not value or value == "-" then value = self:cfgvalue(section) or self.default end local def = fwm:get_defaults() local zone = fwm:get_zone(value) local empty = true local function render_zone(zone) -%> <%- end -%> <% if zone then %>
<%=render_zone(zone)%>
<% for _, fwd in ipairs(zone:get_forwardings_by("src")) do fz = fwd:dest_zone() if fz then empty = false render_zone(fz) end end if empty then %> <% end %>
<% end %> <%+cbi/valuefooter%>