luci-lua-runtime: fix loading header/footer templates for SimpleForms

Fixes: #6054
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2022-10-26 15:30:11 +02:00
parent ca57291bdd
commit 81f204d38f

View file

@ -346,11 +346,11 @@ function invoke_form_action(model, ...)
end
http:header("X-CBI-State", state or 0)
tpl.render("header")
_G.L.include("header")
for i, res in ipairs(maps) do
res:render()
end
tpl.render("footer")
_G.L.include("footer")
end