Commit 064ab9ab authored by Ted Trask's avatar Ted Trask

Add view for listdatabases action

parent 7166ee9f
<% local form, viewlibrary, page_info, session = ... %>
<% require("htmlviewfunctions") %>
<% html = require("acf.html") %>
<H1><%= html.html_escape(form.label) %></H1>
<DL>
<% if form.errtxt then %><P CLASS='error'><%= string.gsub(html.html_escape(form.errtxt), "\n", "<BR>") %></P><% end %>
<% for i,database in ipairs(form.value) do %>
<li>
<% if viewlibrary.check_permission("listtables") then %>
<%= html.link{value = "listtables?database=" .. database, label=database} %>
<% else %>
<%= html.html_escape(database) %>
<% end %>
<% end %>
<% if #form.value == 0 then %>
No databases found
<% end %>
</DL>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment