% local form, viewlibrary, page_info, session = ...
htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
<%
-- Function to mark params that overridden the default set in a param group
function markoverride(c)
if c.type == "group" then
for n,v in pairs(c.value) do
markoverride(v)
end
elseif c.groupdefault and c.value ~= c.groupdefault then
if c.class then
c.class = c.class .." groupdefaultoverride"
else
c.class = "groupdefaultoverride"
end
end
end
%>
<% 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 %>