% local form, viewlibrary, page_info = ... %>
<% require("htmlviewfunctions") %>
<% html = require("acf.html") %>
<%= html.html_escape(form.label) %>
Template Details
<% form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %>
<% htmlviewfunctions.displayformstart(form) %>
<%
if page_info.action == "edittemplate" then
form.value.filename.readonly = "true"
end
htmlviewfunctions.displayformitem(form.value.filename, "filename")
htmlviewfunctions.displayformitem(form.value.label, "label")
htmlviewfunctions.displayformitem(form.value.seq, "seq")
%>
File Content
<% if form.value.filecontent.errtxt then %><%= string.gsub(html.html_escape(form.value.filecontent.errtxt), "\n", "
") %>
<% end %>
<% if form.value.filecontent.descr then %><%= string.gsub(html.html_escape(form.value.filecontent.descr), "\n", "
") %>
<% end %>
<% htmlviewfunctions.displayformend(form) %>