diff options
Diffstat (limited to 'logfiles-view-html.lsp')
-rw-r--r-- | logfiles-view-html.lsp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/logfiles-view-html.lsp b/logfiles-view-html.lsp index a83153c..338a384 100644 --- a/logfiles-view-html.lsp +++ b/logfiles-view-html.lsp @@ -20,17 +20,19 @@ end </DL> <H3>File Content</H3> -<% if form.descr then %><P CLASS='descr'><%= string.gsub(form.descr, "\n", "<BR>") %></P><% end %> -<% if form.errtxt then %><P CLASS='error'><%= string.gsub(form.errtxt, "\n", "<BR>") %></P><% end %> -<form action="<%= page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %>" method="POST"> +<% if form.type == "form" then %> +<% form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %> +<% displayformstart(form) %> <input type="hidden" name="filename" value="<%= form.value.filename.value %>"> +<% end %> <textarea name="filecontent"> <%= html.html_escape(form.value.filecontent.value) %> </textarea> <% if form.value.filecontent.errtxt then %><P CLASS='error'><%= string.gsub(form.value.filecontent.errtxt, "\n", "<BR>") %></P><% end %> +<% if form.value.filecontent.descr then %><P CLASS='descr'><%= string.gsub(form.value.filecontent.descr, "\n", "<BR>") %></P><% end %> <% if form.type == "form" then %> <H3>Save</H3> -<DL><DT>Submit and save above changes</DT><DD><input class="submit" type="submit" name="<%= form.option %>" value="<%= form.option %>"></DD></DL> +<% displayformend(form) %> <% end %> </form> |