<% local form, viewlibrary, page_info = ... require("htmlviewfunctions") html = require("acf.html") 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 %>

<%= html.html_escape(form.label) %><% if page_info.action == "update" then io.write(html.html_escape(" - "..form.value.name.value)) end %>

<% htmlviewfunctions.displayform(form, nil, nil, page_info, 2) %>