diff options
author | Mika Havela <mika.havela@gmail.com> | 2011-06-01 11:06:57 +0200 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2011-06-01 11:06:57 +0200 |
commit | 36dd1f7ff194ce85b338e4428708860511a0dfef (patch) | |
tree | 0a17a9c98f11b5277cf60453a82ef1a502bb450e /rrdtool-editgraphcfg-html.lsp | |
parent | 4486ad86230d37ee1ca88c8c792f942a7b02a13e (diff) | |
download | acf-rrdtool-36dd1f7ff194ce85b338e4428708860511a0dfef.tar.bz2 acf-rrdtool-36dd1f7ff194ce85b338e4428708860511a0dfef.tar.xz |
Add notes into the graph image.
Save a script next to the DB so the DB can be recreated if needed (might be used in further improvements of this acf)
Display example config when creating a new graph.
Diffstat (limited to 'rrdtool-editgraphcfg-html.lsp')
-rw-r--r--[l---------] | rrdtool-editgraphcfg-html.lsp | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/rrdtool-editgraphcfg-html.lsp b/rrdtool-editgraphcfg-html.lsp index 15b1930..6b5a2f3 120000..100644 --- a/rrdtool-editgraphcfg-html.lsp +++ b/rrdtool-editgraphcfg-html.lsp @@ -1 +1,37 @@ -../filedetails-html.lsp
\ No newline at end of file +<% local form, viewlibrary, page_info = ... %> +<% require("viewfunctions") %> + +<% if form.type == "form" then %> +<H1>Configuration</H1> +<H2>Expert Configuration</H2> +<% else %> +<H1>View File</H1> +<% end %> +<H3>File Details</H3> +<DL> +<% +displayitem(form.value.filename) +displayitem(form.value.filesize) +displayitem(form.value.mtime) +%> +</DL> + +<H3>File Content</H3> +<% 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="<%= html.html_escape(form.value.filename.value) %>"> +<% else %> +<DL> +<% end %> +<textarea name="filecontent"> +<%= html.html_escape(form.value.filecontent.value) %> +</textarea> +<% if form.value.filecontent.errtxt then %><P CLASS='error'><%= string.gsub(html.html_escape(form.value.filecontent.errtxt), "\n", "<BR>") %></P><% end %> +<% if form.value.filecontent.descr then %><P CLASS='descr'><%= string.gsub(html.html_escape(form.value.filecontent.descr), "\n", "<BR>") %></P><% end %> + +<% if form.type == "form" then %> +<% displayformend(form) %> +<% else %> +</DL> +<% end %> |