% local view, viewlibrary, page_info, session = ...
htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
json = require("json")
-- iface is a local table with cfes for the various parts of interface definitions
-- Depending on the address family and corresponding method, different options are valid
local iface = require("alpine-baselayout/interfaces-definitions")
for name,value in pairs(iface.optional) do
form.value[name].class = "optional"
end
%>
<%
if page_info.action == "update" then form.label = form.label.." - "..form.value.name.value end
local header_level = htmlviewfunctions.displayheader(form, page_info)
header_level = htmlviewfunctions.incrementheader(header_level)
htmlviewfunctions.displayform(form, nil, nil, page_info, htmlviewfunctions.incrementheader(header_level))
%>