<% local view, viewlibrary, page_info, session = ... %> <% require("viewfunctions") %> <% displaycommandresults({"editjob", "deletejob"}, session) %> <% displaycommandresults({"createjob"}, session, true) %> <% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("status") end %>

Cron Jobs

<% for i,tabl in ipairs(view.value) do %>

<%= html.html_escape(tabl.period) %>

<% if #tabl.jobs == 0 then %> No jobs <% else %> <% for i,job in ipairs(tabl.jobs) do %> <% end %>
Action 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, label="Delete "} %> <%= html.html_escape(string.gsub(job, "^.*/", "")) %>
<% end %> <% end %> <% if viewlibrary and viewlibrary.dispatch_component and session.permissions.cron.createjob then viewlibrary.dispatch_component("createjob") end %>