<% local form, viewlibrary, page_info = ... require("htmlviewfunctions") %> <% 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" htmlviewfunctions.displayform(form, nil, nil, page_info, 2) %>