blob: 616137e9e57af7a473a8493953d92adfec150eac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<% local form, viewlibrary, page_info = ...
htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
<% if form.value.values then %>
<h1>Class</h1>
<% if form.errtxt then io.write("<p class='error'>" .. string.gsub(html.html_escape(form.errtxt), "\n", "<br/>") .. "</p>\n") end %>
<% htmlviewfunctions.displayitem(form.value.class_id) %>
<% htmlviewfunctions.displayitem(form.value.label) %>
<h2>Parameter Values</h2>
<%
session = require("session")
val = session.serialize("values", form.value.values.value)
val = string.gsub(val, "[^\n]*%{%}\n", "")
print("<pre>"..val.."</pre>")
form.value.values = nil
end
%>
<h1><%= html.html_escape(form.label) %></h1>
<%
form.value.values = nil
form.value.label = nil
htmlviewfunctions.displayform(form, nil, nil, page_info, 2)
%>
|