<% local form, viewlibrary, page_info, session = ... htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> <% htmlviewfunctions.displaycommandresults({"delete", "edit", "editfile"}, session) %> <% htmlviewfunctions.displaycommandresults({"newfile", "startstop"}, session, true) %>

Configuration

Edit/View existing Domains

<% for i,file in ipairs(form.value) do %> <% end %>
Action Size Last Modified File
<% if viewlibrary.check_permission("delete") then io.write(html.link{value = "delete?submit=true&filename=" .. file.value.filename.value, label="Delete " }) end io.write(html.link{value = "view?filename=" .. file.value.filename.value, label="View " }) if viewlibrary.check_permission("edit") then io.write(html.link{value = "edit?filename=" .. file.value.filename.value.."&redir="..page_info.orig_action, label="Edit " }) end if viewlibrary.check_permission("editfile") then io.write(html.link{value = "editfile?filename=" .. file.value.filename.value.."&redir="..page_info.orig_action, label="Expert " }) end %> <%= html.html_escape(file.value.filesize.value) %> <%= html.html_escape(file.value.mtime.value) %> <%= html.html_escape(string.gsub(file.value.filename.value, "^.*/", "")) %>
<% if #form.value == 0 then %> No domains defined <% end %>
<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("newfile") then local newfileform = viewlibrary.dispatch_component("newfile", nil, true) %>

Create new Domain

<% newfileform.action = page_info.script .. page_info.prefix .. page_info.controller .. "/newfile" htmlviewfunctions.displayform(newfileform) end %> <% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("startstop") then viewlibrary.dispatch_component("startstop") end %>