summaryrefslogtreecommitdiffstats
path: root/provisioning-edittemplate-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2014-04-23 16:12:07 +0000
committerTed Trask <ttrask01@yahoo.com>2014-04-23 16:12:07 +0000
commitd051bf48fb53481082b12a6778e7c7863f1979ca (patch)
treec36b471fe04729755c3c3bb264f2698a08505384 /provisioning-edittemplate-html.lsp
parent9e6bec69bac4ee45a8355aa5993bbd3f1c71dfcf (diff)
downloadacf-provisioning-d051bf48fb53481082b12a6778e7c7863f1979ca.tar.bz2
acf-provisioning-d051bf48fb53481082b12a6778e7c7863f1979ca.tar.xz
Changes to use new htmlviewfunctions functions
Diffstat (limited to 'provisioning-edittemplate-html.lsp')
-rw-r--r--provisioning-edittemplate-html.lsp15
1 files changed, 8 insertions, 7 deletions
diff --git a/provisioning-edittemplate-html.lsp b/provisioning-edittemplate-html.lsp
index 9415968..aee98f1 100644
--- a/provisioning-edittemplate-html.lsp
+++ b/provisioning-edittemplate-html.lsp
@@ -2,10 +2,9 @@
<% htmlviewfunctions = 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) %>
+<% local header_level = htmlviewfunctions.displaysectionstart(form, page_info) %>
+<% htmlviewfunctions.displayformstart(form, page_info) %>
+<% local header_level2 = htmlviewfunctions.displaysectionstart(cfe({label="Template Details"}), page_info, htmlviewfunctions.incrementheader(header_level)) %>
<%
if page_info.action == "edittemplate" then
form.value.filename.readonly = "true"
@@ -14,12 +13,14 @@ htmlviewfunctions.displayformitem(form.value.filename, "filename")
htmlviewfunctions.displayformitem(form.value.label, "label")
htmlviewfunctions.displayformitem(form.value.seq, "seq")
%>
+<% htmlviewfunctions.displaysectionend(header_level2) %>
-<h2>File Content</h2>
+<% htmlviewfunctions.displaysectionstart(cfe({label="File Content"}), page_info, header_level2) %>
<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.displayinfo(form.value.filecontent) %>
+<% htmlviewfunctions.displaysectionend(header_level2) %>
<% htmlviewfunctions.displayformend(form) %>
+<% htmlviewfunctions.displaysectionend(header_level) %>