diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-03-17 16:21:02 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-03-17 16:21:02 +0000 |
commit | fac49f7ab11ad399ac380459ef183f92478b03b4 (patch) | |
tree | 1758ecdfcdd7f06c793933683a4981e39b21548f /cron-listjobs-html.lsp | |
parent | badb1b3f5477611441c2c3e91ae9eb9263120bae (diff) | |
download | acf-alpine-baselayout-fac49f7ab11ad399ac380459ef183f92478b03b4.tar.bz2 acf-alpine-baselayout-fac49f7ab11ad399ac380459ef183f92478b03b4.tar.xz |
Change htmlviewfunctions.displayheader to .displaysectionstart and added .displaysectionend function
Diffstat (limited to 'cron-listjobs-html.lsp')
-rw-r--r-- | cron-listjobs-html.lsp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cron-listjobs-html.lsp b/cron-listjobs-html.lsp index bc7564e..11b0669 100644 --- a/cron-listjobs-html.lsp +++ b/cron-listjobs-html.lsp @@ -32,8 +32,8 @@ end %> <% -local header_level = htmlviewfunctions.displayheader(view, page_info) -header_level = htmlviewfunctions.incrementheader(header_level) +local header_level = htmlviewfunctions.displaysectionstart(view, page_info) +local header_level2 = htmlviewfunctions.incrementheader(header_level) local redir = cfe({type="hidden", value=page_info.orig_action}) local period = cfe({type="select", option={}}) for i,tabl in ipairs(view.value) do @@ -41,7 +41,7 @@ for i,tabl in ipairs(view.value) do end %> <% for i,tabl in ipairs(view.value) do %> -<% htmlviewfunctions.displayheader(cfe({label=tabl.period}), page_info, header_level) %> +<% htmlviewfunctions.displaysectionstart(cfe({label=tabl.period}), page_info, header_level2) %> <% if #tabl.jobs == 0 then %> <p>No jobs</p> <% else %> @@ -61,13 +61,16 @@ end <% htmlviewfunctions.displayitem(cfe({type="form", value={name=name}, label="", option="Delete", action="deletejob" }), -1, page_info) %> </td><td> <% period.value = tabl.period %> + <% period.id = string.gsub(job, "^.*/", "").."period" %> <% htmlviewfunctions.displayitem(cfe({type="form", value={name=name, period=period}, label="", option="Move", action="movejob" }), -1, page_info) %> </td> </tr> <% end %> </tbody></table> <% end %> +<% htmlviewfunctions.displaysectionend(header_level2) %> <% end %> +<% htmlviewfunctions.displaysectionend(header_level) %> <% if viewlibrary.check_permission("createjob") then viewlibrary.dispatch_component("createjob") |