diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-11-04 13:55:55 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-11-04 13:55:55 +0000 |
commit | eaa2dc4ebe770b120fd6049268300c9083f8e4f9 (patch) | |
tree | 81ba148163f04ecb7e97653aa1fc8b05ad129833 | |
parent | d70a634fbdc29d6808cbf65cc6283990717f1b3f (diff) | |
download | acf-db-eaa2dc4ebe770b120fd6049268300c9083f8e4f9.tar.bz2 acf-db-eaa2dc4ebe770b120fd6049268300c9083f8e4f9.tar.xz |
Change HTML views to display connection if there was a connection errorv0.1.0
-rw-r--r-- | lib/db-listdatabases-html.lsp | 2 | ||||
-rw-r--r-- | lib/db-listtables-html.lsp | 3 | ||||
-rw-r--r-- | lib/db-viewtable-html.lsp | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/lib/db-listdatabases-html.lsp b/lib/db-listdatabases-html.lsp index 91ffa72..525a2b0 100644 --- a/lib/db-listdatabases-html.lsp +++ b/lib/db-listdatabases-html.lsp @@ -27,7 +27,7 @@ -- hide the database, since we don't need it to list databases form.value.connection.value.database = nil end %> -<% if form.value.connection and next(form.value.connection.value) ~= nil then +<% if form.value.connection and ( next(form.value.connection.value) ~= nil or form.value.connection.errtxt ) then htmlviewfunctions.displayformstart(form, page_info) htmlviewfunctions.displayitem(form.value.connection, page_info, htmlviewfunctions.incrementheader(header_level), "connection") form.option = "Update" diff --git a/lib/db-listtables-html.lsp b/lib/db-listtables-html.lsp index 3d7fe07..1dd56c5 100644 --- a/lib/db-listtables-html.lsp +++ b/lib/db-listtables-html.lsp @@ -25,7 +25,8 @@ <% htmlviewfunctions.displaycommandresults({"createdatabase"}, session, true) %> <% local header_level = htmlviewfunctions.displaysectionstart(form, page_info) %> -<% if form.value.connection and next(form.value.connection.value) ~= nil then +<% htmlviewfunctions.displayinfo(form) %> +<% if form.value.connection and ( next(form.value.connection.value) ~= nil or form.value.connection.errtxt ) then htmlviewfunctions.displayformstart(form, page_info) htmlviewfunctions.displayitem(form.value.connection, page_info, htmlviewfunctions.incrementheader(header_level), "connection") form.option = "Update" diff --git a/lib/db-viewtable-html.lsp b/lib/db-viewtable-html.lsp index d3bc76f..a8efaa7 100644 --- a/lib/db-viewtable-html.lsp +++ b/lib/db-viewtable-html.lsp @@ -42,7 +42,7 @@ keyvalues.redir = redir.value <% local header_level2 = htmlviewfunctions.incrementheader(header_level) htmlviewfunctions.displayformstart(form, page_info) -if form.value.connection and next(form.value.connection.value) ~= nil then +if form.value.connection and ( next(form.value.connection.value) ~= nil or form.value.connection.errtxt ) then htmlviewfunctions.displayitem(form.value.connection, page_info, header_level2, "connection") end htmlviewfunctions.displayitem(form.value.table, page_info, header_level2, "table") |