<% local view, viewlibrary, page_info, session = ... require("viewfunctions") %> <% displaycommandresults({"deleteclass", "editclass"}, session) %> <% displaycommandresults({"createclass"}, session, true) %>

Classes

<% for k,v in ipairs( view.value ) do %> <% end %>
Action Name Label
<% if viewlibrary.check_permission("deleteclass") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deleteclass?class_id="..v.class_id, label="Delete "} %> <% end %> <% if viewlibrary.check_permission("editclass") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/editclass?class_id="..v.class_id.."&redir="..page_info.orig_action, label="Edit "} %> <% end %> <%= html.html_escape(v.name) %> <%= html.html_escape(v.label) %>
<% if view.errtxt then %>

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

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

No classes found

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