From cf30a7c085eeadec8f7147836eb92f0a36d3bdff Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 11 Feb 2011 08:34:23 +0000 Subject: Added concept of class groups to allow separate name and label for class groups Added four new actions - listclassgroups, editclassgroup, createclassgroup, and deleteclassgroup Added new provisioning_class_groups table Changed provisioning_classes to change name to class_group_id plus added seq field Modified groups to only accept alphanumeric names and display param group label instead of name when editing params --- provisioning-listclassgroups-html.lsp | 55 +++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 provisioning-listclassgroups-html.lsp (limited to 'provisioning-listclassgroups-html.lsp') diff --git a/provisioning-listclassgroups-html.lsp b/provisioning-listclassgroups-html.lsp new file mode 100644 index 0000000..757e8a1 --- /dev/null +++ b/provisioning-listclassgroups-html.lsp @@ -0,0 +1,55 @@ +<% local view, viewlibrary, page_info, session = ... +require("viewfunctions") +%> + + + + + +<% displaycommandresults({"deleteclassgroup", "editclassgroup"}, session) %> +<% displaycommandresults({"createclassgroup"}, session, true) %> + +

Class Groups

+
+ + + + + + + + +<% for k,v in ipairs( view.value ) do %> + + + + + + +<% end %> + +
ActionNameLabelSequence
+ <% if viewlibrary.check_permission("deleteclassgroup") then %> + <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deleteclassgroup?class_group_id="..v.class_group_id, label="Delete ", class="deletegroup"} %> + <% end %> + <% if viewlibrary.check_permission("editclassgroup") then %> + <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/editclassgroup?class_group_id="..v.class_group_id.."&redir="..page_info.orig_action, label="Edit "} %> + <% end %> + <%= html.html_escape(v.name) %><%= html.html_escape(v.label) %><%= html.html_escape(v.seq) %>
+ +<% if view.errtxt then %> +

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

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

No class groups found

+<% end %> + +<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createclassgroup") then + viewlibrary.dispatch_component("createclassgroup") +end %> +
-- cgit v1.2.3