% local form, viewlibrary, page_info = ... %>
<% require("htmlviewfunctions") %>
<% if form.type == "form" then %>
Configuration
Expert Configuration
<% else %>
View File
<% end %>
File Details
<%
htmlviewfunctions.displayitem(form.value.filename)
htmlviewfunctions.displayitem(form.value.filesize)
htmlviewfunctions.displayitem(form.value.mtime)
%>
File Content
<% if form.type == "form" then %>
<% form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %>
<% htmlviewfunctions.displayformstart(form) %>
<% else %>
<% end %>
<% 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 %>
<% htmlviewfunctions.displayformend(form) %>
<% else %>
<% end %>