% local form, viewlibrary, page_info, session = ...
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 %>