From 5c93a38c2cc263727be345ff5a197ea9bc78595b Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 28 Oct 2010 13:47:54 +0000 Subject: Starting to develop provisioning application. It has the basics for creating/editing/deleting devices/templates/classes/groups/parameters. --- provisioning-listclasses-html.lsp | 52 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 provisioning-listclasses-html.lsp (limited to 'provisioning-listclasses-html.lsp') diff --git a/provisioning-listclasses-html.lsp b/provisioning-listclasses-html.lsp new file mode 100644 index 0000000..21a2b3f --- /dev/null +++ b/provisioning-listclasses-html.lsp @@ -0,0 +1,52 @@ +<% 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 %> + +
ActionNameLabel
+ <% 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 %> +
-- cgit v1.2.3