summaryrefslogtreecommitdiffstats
path: root/provisioning-edittemplate-html.lsp
blob: 6be6f650d0bed8cd2e0a89403725d15c30b52de9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<% local form, viewlibrary, page_info = ... %>
<% require("htmlviewfunctions") %>
<% html = require("acf.html") %>

<H1><%= html.html_escape(form.label) %></H1>
<H2>Template Details</H2>
<% 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")
%>
</DL>

<H2>File Content</H2>
<DL>
<textarea name="filecontent">
<%= html.html_escape(form.value.filecontent.value) %>
</textarea>
<% if form.value.filecontent.errtxt then %><P CLASS='error'><%= string.gsub(html.html_escape(form.value.filecontent.errtxt), "\n", "<BR>") %></P><% end %>
<% if form.value.filecontent.descr then %><P CLASS='descr'><%= string.gsub(html.html_escape(form.value.filecontent.descr), "\n", "<BR>") %></P><% end %>

<% htmlviewfunctions.displayformend(form) %>