% local form, viewlibrary, page_info = ...
require("viewfunctions")
%>
<%= html.html_escape(form.label) %>
<%
if page_info.action == "editclass" then
form.value.class_id.readonly = "true"
else
form.value.class_id.type = "hidden"
end
displayform(form, nil, nil, page_info, 2)
%>