% local form, viewlibrary, page_info = ... %>
<% htmlviewfunctions = require("htmlviewfunctions") %>
<% html = require("acf.html") %>
Edit MAC Authentication File
<%
htmlviewfunctions.displayitem(form.value.filename)
htmlviewfunctions.displayitem(form.value.filesize)
htmlviewfunctions.displayitem(form.value.mtime)
%>
Entries
<%
htmlviewfunctions.displayformstart(form, page_info)
form.value.filename.type = "hidden"
htmlviewfunctions.displayformitem(form.value.filename, "filename")
form.value.filecontent.type = "hidden"
htmlviewfunctions.displayformitem(form.value.filecontent, "filecontent")
%>
<% for line in string.gmatch(html.html_escape(form.value.filecontent.value), "([^\n]*)\n?") do %>
<%= line %> |
<% end %>
<%
if form.descr then io.write('' .. string.gsub(html.html_escape(form.descr), "\n", "
") .. '
') end
if form.errtxt then io.write('' .. string.gsub(html.html_escape(form.errtxt), "\n", "
") .. '
') end
htmlviewfunctions.displayformend(form)
%>