<% local data, viewlibrary, page_info, session = ... htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> <% htmlviewfunctions.displaycommandresults({"editdomain", "deletedomain"}, session) %> <% htmlviewfunctions.displaycommandresults({"createdomain"}, session, true) %>

Configuration

Edit/View DNS server entries

<% for i,domain in ipairs(data.value) do %> <% end %>
Action Domain
<% io.write(html.link{value = "editdomain?domain=" .. domain.."&redir="..page_info.orig_action, label="Edit " }) %> <% if domain ~= "@" then io.write(html.link{value = "deletedomain?submit=true&domain=" .. domain, label="Delete " }) end %> <%= html.html_escape(domain) %>
<% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("createdomain") end %>