From 809eaf0b78159dfc892748b98324397e4c494059 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 22 Dec 2011 14:11:42 +0000 Subject: Added edit and delete links to editdevice and editdeviceparams --- provisioning-editdevice-html.lsp | 18 ++++++++++++++++++ provisioning-editdeviceparams-html.lsp | 16 ++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/provisioning-editdevice-html.lsp b/provisioning-editdevice-html.lsp index fd6ad40..dd39948 100644 --- a/provisioning-editdevice-html.lsp +++ b/provisioning-editdevice-html.lsp @@ -2,6 +2,24 @@ require("viewfunctions") %> + + + +<% if form and form.value and form.value.device_id and form.value.device_id.value ~= "" then %> + <% if viewlibrary.check_permission("overridedeviceparams") then %> + Edit Parameters + <% elseif viewlibrary.check_permission("editdeviceparams") then %> + Edit Parameters + <% end %> + <% if viewlibrary.check_permission("deletedevice") then %> + Delete this Device + <% end %> +<% end %> +

<%= html.html_escape(form.label) %>

<% if page_info.action == "editdevice" then diff --git a/provisioning-editdeviceparams-html.lsp b/provisioning-editdeviceparams-html.lsp index 4d976ca..a773326 100644 --- a/provisioning-editdeviceparams-html.lsp +++ b/provisioning-editdeviceparams-html.lsp @@ -2,6 +2,22 @@ require("viewfunctions") %> + + + +<% if form and form.value and form.value.device_id and form.value.device_id.value ~= "" then %> + <% if viewlibrary.check_permission("editdevice") then %> + Edit Class of Service + <% end %> + <% if viewlibrary.check_permission("deletedevice") then %> + Delete this Device + <% end %> +<% end %> +

<%= html.html_escape(form.label) %>

<% form.value.device_id.readonly = "true" -- cgit v1.2.3