From b6f00517ad0a3ef7e3bd32e0d3a99cfa558d6dc2 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 10 Dec 2009 15:34:51 +0000 Subject: UI fix --- did-editdefinition-html.lsp | 6 ++++-- did-html.lsp | 4 ++-- did-status-html.lsp | 22 +++++++++++++++------- did-viewactivitylog-html.lsp | 3 ++- 4 files changed, 23 insertions(+), 12 deletions(-) diff --git a/did-editdefinition-html.lsp b/did-editdefinition-html.lsp index ef4af3e..8eaa2a7 100644 --- a/did-editdefinition-html.lsp +++ b/did-editdefinition-html.lsp @@ -101,7 +101,6 @@ require("json")

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

<% displayformstart(form, page_info) %> -
<% local order = {"did", "description", "identification", "department", "rules"} if page_info.action == "editdefinition" then @@ -114,8 +113,11 @@ require("json") %>

Rules

-
+
<% if form.value.rules.errtxt then %>

<%= string.gsub(html.html_escape(form.value.rules.errtxt), "\n", "
") %>

<% end %> +
+

Save Changes

+
<% displayformend(form) %> diff --git a/did-html.lsp b/did-html.lsp index 5ebb4e1..1ed5ecd 100644 --- a/did-html.lsp +++ b/did-html.lsp @@ -25,6 +25,7 @@ function newPopup(url) { <% end %>

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

+
<% displaypagination(pagedata, page_info) %> @@ -67,10 +68,9 @@ function newPopup(url) { <% end %> <% if session.permissions[page_info.controller].publishall then %> -
">
Publish All DIDs
-
<% end %> + diff --git a/did-status-html.lsp b/did-status-html.lsp index 33c75b9..cf28312 100644 --- a/did-status-html.lsp +++ b/did-status-html.lsp @@ -5,23 +5,31 @@ require("viewfunctions") <% displaycommandresults({"createdatabase"}, session, true) %>

DID Database Status

+
<% local status if viewlibrary and viewlibrary.dispatch_component then if session.permissions.postgresql and session.permissions.postgresql.status then status = viewlibrary.dispatch_component("postgresql/postgresql/status", nil, true) end -end -if status then %> -

Database is <%= status.value.status.value %> +end %> + +

Database status
+<% if status then %> +<%= status.value.status.value %> <% else %> -

Database status unknown +Unknown <% end %> +

+
DID Database
<% if data.value then %> -

DID Database present +Present <% else %> -

DID Database missing +Missing +<% end %> +

+
+ <% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("createdatabase") end %> -<% end %> diff --git a/did-viewactivitylog-html.lsp b/did-viewactivitylog-html.lsp index f5ab305..6499c7a 100644 --- a/did-viewactivitylog-html.lsp +++ b/did-viewactivitylog-html.lsp @@ -1,6 +1,6 @@ <% local data, viewlibrary, page_info, session = ... %>

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

-
+
@@ -22,3 +22,4 @@ <% if #data.value == 0 then %>

No history found

<% end %> + -- cgit v1.2.3
Date Message