From d051bf48fb53481082b12a6778e7c7863f1979ca Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 23 Apr 2014 16:12:07 +0000 Subject: Changes to use new htmlviewfunctions functions --- provisioning-edittemplate-html.lsp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'provisioning-edittemplate-html.lsp') 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") %> -

<%= html.html_escape(form.label) %>

-

Template Details

-<% 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) %> -

File Content

+<% htmlviewfunctions.displaysectionstart(cfe({label="File Content"}), page_info, header_level2) %> -<% 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.displayinfo(form.value.filecontent) %> +<% htmlviewfunctions.displaysectionend(header_level2) %> <% htmlviewfunctions.displayformend(form) %> +<% htmlviewfunctions.displaysectionend(header_level) %> -- cgit v1.2.3