From 929263e84ddc10bd0c801b3be8b4cf5495c0d16d Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 3 Feb 2012 16:44:37 +0000 Subject: Changed acf-util/logon controller to use standard view --- app/acf-util/logon-controller.lua | 6 +++--- app/acf-util/logon-html.lsp | 17 ----------------- app/acf-util/logon-logout-html.lsp | 7 ------- app/acf-util/logon-status-html.lsp | 13 ------------- 4 files changed, 3 insertions(+), 40 deletions(-) delete mode 100644 app/acf-util/logon-html.lsp delete mode 100644 app/acf-util/logon-logout-html.lsp delete mode 100644 app/acf-util/logon-status-html.lsp (limited to 'app/acf-util') diff --git a/app/acf-util/logon-controller.lua b/app/acf-util/logon-controller.lua index 7bbd522..df2fd70 100644 --- a/app/acf-util/logon-controller.lua +++ b/app/acf-util/logon-controller.lua @@ -22,9 +22,9 @@ end -- Logon a new user based upon id and password in clientdata logon = function(self) - local userid = cfe({ value=clientdata.userid or "", label="User ID" }) - local password = cfe({ label="Password" }) - local redir = cfe({ value=clientdata.redir, label="" }) + local userid = cfe({ value=clientdata.userid or "", label="User ID", seq=1 }) + local password = cfe({ type="password", label="Password", seq=2 }) + local redir = cfe({ type="hidden", value=clientdata.redir, label="" }) local cmdresult = cfe({ type="form", value={userid=userid, password=password, redir=redir}, label="Logon", option="Logon" }) if clientdata.Logon then local logonredirect = self.sessiondata.logonredirect diff --git a/app/acf-util/logon-html.lsp b/app/acf-util/logon-html.lsp deleted file mode 100644 index 29ced43..0000000 --- a/app/acf-util/logon-html.lsp +++ /dev/null @@ -1,17 +0,0 @@ -<% local form, viewlibrary, page_info, session = ... %> -<% require("htmlviewfunctions") %> - - - - -

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

-<% - form.value.password.type = "password" - form.value.redir.type = "hidden" - local order = { "userid", "password" } - htmlviewfunctions.displayform(form, order) -%> diff --git a/app/acf-util/logon-logout-html.lsp b/app/acf-util/logon-logout-html.lsp deleted file mode 100644 index 765eb4f..0000000 --- a/app/acf-util/logon-logout-html.lsp +++ /dev/null @@ -1,7 +0,0 @@ -<% local view= ... %> -<% require("htmlviewfunctions") %> -

Log Out

- -<%= htmlviewfunctions.cfe_unpack(view) %> - -<%= html.html_escape(view.logout.value) %> diff --git a/app/acf-util/logon-status-html.lsp b/app/acf-util/logon-status-html.lsp deleted file mode 100644 index be905f3..0000000 --- a/app/acf-util/logon-status-html.lsp +++ /dev/null @@ -1,13 +0,0 @@ -<% local view = ... %> - -

User Status

- -
- -
<%= html.html_escape(view.value.username.label) %>
-
<%= html.html_escape(view.value.username.value) %>
- -
<%= html.html_escape(view.value.sessionid.label) %>
-
<%= html.html_escape(view.value.sessionid.value) %>
- -
-- cgit v1.2.3