From 881cd02bd8349dd189292d60740e8531735fdf3b Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 27 Nov 2009 14:49:42 +0000 Subject: Fixed UI bug and added missing template. --- did-html.lsp | 2 ++ template-did-editdefinition-html.lsp | 34 +++++++++++++++++++++++++++++++++- 2 files changed, 35 insertions(+), 1 deletion(-) mode change 120000 => 100644 template-did-editdefinition-html.lsp diff --git a/did-html.lsp b/did-html.lsp index dab1c1f..5ebb4e1 100644 --- a/did-html.lsp +++ b/did-html.lsp @@ -15,11 +15,13 @@ function newPopup(url) { <% if data.value.did.value ~= "" or (data.value.extension and data.value.extension.value ~= "") or data.value.description.value ~= "" or data.value.identification.value ~= "" or data.value.department.value ~= "" then %>

Search Description

+
<% if data.value.did.value ~= "" then %>
DID
<%= data.value.did.value %>
<% end %> <% if (data.value.extension and data.value.extension.value ~= "") then %>
Extension
<%= data.value.extension.value %>
<% end %> <% if data.value.description.value ~= "" then %>
Description
<%= data.value.description.value %>
<% end %> <% if data.value.identification.value ~= "" then %>
Identification
<%= data.value.identification.value %>
<% end %> <% if data.value.department.value ~= "" then %>
Department
<%= data.value.department.value %>
<% end %> +
<% end %>

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

diff --git a/template-did-editdefinition-html.lsp b/template-did-editdefinition-html.lsp deleted file mode 120000 index 1481dd2..0000000 --- a/template-did-editdefinition-html.lsp +++ /dev/null @@ -1 +0,0 @@ -../template-popup-html.lsp \ No newline at end of file diff --git a/template-did-editdefinition-html.lsp b/template-did-editdefinition-html.lsp new file mode 100644 index 0000000..7787c5a --- /dev/null +++ b/template-did-editdefinition-html.lsp @@ -0,0 +1,33 @@ +<% local viewtable, viewlibrary, pageinfo, session = ... + html=require("html") %> +Status: 200 OK +Content-Type: text/html +<% if (session.id) then + io.write( html.cookie.set("sessionid", session.id) ) + else + io.write (html.cookie.unset("sessionid")) + end +%> + + + + + +<% +local hostname = "" +if viewlibrary and viewlibrary.dispatch_component then + local result = viewlibrary.dispatch_component("alpine-baselayout/hostname/read", nil, true) + if result and result.value then + hostname = result.value + end +end +%> +<%= html.html_escape(hostname .. " - " .. pageinfo.controller .. "->" .. pageinfo.action) %> + + + + <% local func = haserl.loadfile(pageinfo.viewfile) %> + <% func (viewtable, viewlibrary, pageinfo, session) %> + + + -- cgit v1.2.3