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-listparams-html.lsp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'provisioning-listparams-html.lsp') diff --git a/provisioning-listparams-html.lsp b/provisioning-listparams-html.lsp index 3b0e255..177b30c 100644 --- a/provisioning-listparams-html.lsp +++ b/provisioning-listparams-html.lsp @@ -25,7 +25,7 @@ html = require("acf.html") <% htmlviewfunctions.displaycommandresults({"deleteparam", "editparam"}, session) %> <% htmlviewfunctions.displaycommandresults({"createparam"}, session, true) %> -

Parameters

+<% local header_level = htmlviewfunctions.displaysectionstart(view, page_info) %> @@ -35,14 +35,17 @@ html = require("acf.html") +<% local param_id = cfe({ type="hidden", value="" }) %> +<% local redir = cfe({ type="hidden", value=page_info.orig_action }) %> <% for k,v in ipairs( view.value ) do %> @@ -60,6 +63,7 @@ html = require("acf.html") <% if #view.value == 0 then %>

No parameters found

<% end %> +<% htmlviewfunctions.displaysectionend(header_level) %> <% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createparam") then viewlibrary.dispatch_component("createparam") -- cgit v1.2.3
ActionSequence
- <% if viewlibrary.check_permission("deleteparam") then %> - <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deleteparam?submit=true¶m_id="..v.param_id, label="Delete ", class="deleteparam"} %> - <% end %> + <% param_id.value = v.param_id %> <% if viewlibrary.check_permission("editparam") then %> - <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/editparam?param_id="..v.param_id.."&redir="..page_info.orig_action, label="Edit "} %> + <% htmlviewfunctions.displayitem(cfe({type="link", value={param_id=param_id, redir=redir}, label="", option="Edit", action="editparam"}), page_info, -1) %> + <% end %> + <% if viewlibrary.check_permission("deleteparam") then %> + <% htmlviewfunctions.displayitem(cfe({type="form", value={param_id=param_id}, label="", option="Delete", action="deleteparam", class="deleteparam"}), page_info, -1) %> <% end %> <%= html.html_escape(v.name) %>