% local form, viewlibrary, page_info = ... %>
<% htmlviewfunctions = require("htmlviewfunctions") %>
<% html = require("acf.html") %>
Create new rrdtool-graph file
<% if form.type == "form" then %>
<% form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %>
<% htmlviewfunctions.displayformstart(form) %>
File Details
- <% io.write(form.value.filename.label) %>
-
<% if form.value.filename.errtxt then %>
<%= string.gsub(html.html_escape(form.value.filename.errtxt), "\n", "
") %>
<% end %>
<% if form.value.filename.descr then %><%= string.gsub(html.html_escape(form.value.filename.descr), "\n", "
") %>
<% end %>
<% end %>
File Content
<% if form.value.filecontent.errtxt then %><%= string.gsub(html.html_escape(form.value.filecontent.errtxt), "\n", "
") %>
<% end %>
<% if form.value.filecontent.descr then %><%= string.gsub(html.html_escape(form.value.filecontent.descr), "\n", "
") %>
<% end %>
<% if form.type == "form" then %>
Save
<% htmlviewfunctions.displayformend(form) %>
<% end %>