<% local view, viewlibrary, page_info, session = ... require("viewfunctions") %> <% displaycommandresults({"deletetemplate", "edittemplate"}, session) %> <% displaycommandresults({"createtemplate"}, session, true) %>

Templates

<% for k,v in ipairs( view.value ) do %> <% end %>
Action File Name Label File Size Last Modified
<% if viewlibrary.check_permission("deletetemplate") and v.template_id then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deletetemplate?template_id="..v.template_id, label="Delete "} %> <% end %> <% if viewlibrary.check_permission("edittemplate") and v.template_id then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/edittemplate?template_id="..v.template_id.."&redir="..page_info.orig_action, label="Edit "} %> <% end %> <% if viewlibrary.check_permission("createtemplate") and not v.template_id then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/createtemplate?filename="..v.filename.."&redir="..page_info.orig_action, label="Create "} %> <% end %> <%= html.html_escape(v.filename) %> <%= html.html_escape(v.label) %> <%= html.html_escape(v.filesize) %> <%= html.html_escape(v.mtime) %>
<% if view.errtxt then %>

<%= html.html_escape(view.errtxt) %>

<% end %> <% if #view.value == 0 then %>

No templates found

<% end %> <% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createtemplate") then viewlibrary.dispatch_component("createtemplate") end %>