<% local view, viewlibrary, page_info, session = ... require("viewfunctions") %> <% displaycommandresults({"deletedatabase"}, session) %> <% displaycommandresults({"createdatabase"}, session, true) %>

Databases

<% for i,db in ipairs(view.value) do %> <% end %>
Action Database Description
<% if session.permissions.gnats.listdatabasefiles then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/listdatabasefiles?database="..db.name, label="Edit "} %> <% end %> <% if session.permissions.gnats.deletedatabase then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deletedatabase?name="..db.name, label="Delete "} %> <% end %> <%= html.html_escape(db.name) %> <%= html.html_escape(db.description) %>
<% if viewlibrary and viewlibrary.dispatch_component and session.permissions.gnats.createdatabase then local createform = viewlibrary.dispatch_component("createdatabase", nil, true) %>

<%= html.html_escape(createform.label) %>

<% createform.action = page_info.script .. page_info.prefix .. page_info.controller .. "/createdatabase" displayform(createform) end %>