% local view, viewlibrary, page_info, session = ... %> <% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> <% htmlviewfunctions.displaycommandresults({"editjob", "deletejob", "movejob"}, session) %> <% htmlviewfunctions.displaycommandresults({"createjob"}, session, true) %> <% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("status") end %> <% -- set up the form for the move action local formstart = '
' local function createmoveform(name) io.write(formstart, name, formend) end %> <% local header_level = htmlviewfunctions.displayheader(view, page_info) header_level = htmlviewfunctions.incrementheader(header_level) %> <% for i,tabl in ipairs(view.value) do %> <% htmlviewfunctions.displayheader(cfe({label=tabl.period}), page_info, header_level) %> <% if #tabl.jobs == 0 then %>No jobs
<% else %>Job | Action | |
---|---|---|
<%= html.html_escape(string.gsub(job, "^.*/", "")) %> | <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/editjob?name="..job.."&redir="..page_info.orig_action, label="Edit "} %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deletejob?name="..job.."&submit=true", label="Delete "} %> | <% createmoveform(job, tabl.period) %> |