Commit 7554600e authored by Ted Trask's avatar Ted Trask

Removed unneeded views by updating CFE for autoview

parent c5b93907
<% local form, viewlibrary, page_info = ...
require("htmlviewfunctions")
html = require("acf.html")
%>
<H1><%= html.html_escape(form.label) %></H1>
<%
form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action
form.value.domain.readonly = true
local order = { "domain", "iplist" }
htmlviewfunctions.displayform(form, order)
%>
......@@ -194,8 +194,8 @@ end
function getDomain(self, clientdata)
local getdomainname = clientdata.domain
local domain = cfe({ value=getdomainname, label="Domain", errtxt="Invalid domain" })
local iplist = cfe({ type="list", value={}, label="List of DNS servers" })
local domain = cfe({ value=getdomainname, label="Domain", errtxt="Invalid domain", readonly=true, seq=1 })
local iplist = cfe({ type="list", value={}, label="List of DNS servers", seq=2 })
local domains = getDomains()
for i,name in ipairs(domains.value) do
if name == getdomainname then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment