blob: 96dfe70a8475df13556b08198be8f32d7e17c982 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<% local form, viewlibrary, page_info = ...
require("htmlviewfunctions")
%>
<H1><%= html.html_escape(form.label) %></H1>
<%
if page_info.action == "editparam" then
form.value.param_id.readonly = "true"
else
form.value.param_id.type = "hidden"
end
htmlviewfunctions.displayform(form, nil, nil, page_info, 2)
%>
<% if page_info.action == "editparam" then %>
<H2>Options</H2>
<dl>
<dt></dt><dd><form action="<%= page_info.script .. page_info.prefix .. page_info.controller %>/editoptions" method="POST">
<input type="hidden" name="param_id" value="<%= form.value.param_id.value %>">
<input type="submit" class="submit" value="Edit Options">
</form></dd></dl>
<% end %>
|