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