From b2efb6341998ef81d801adc99252a6239698bd4b Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Wed, 13 Feb 2008 15:39:31 +0000 Subject: Changed Makefiles. Modified the view-file so it looks the same way other view-files looks. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@712 ab2d0c66-481e-0410-8bed-d214d4d58bed --- Makefile | 2 +- app/Makefile | 14 +++++++++----- app/acf-util/logon-html.lsp | 27 +++++++++++++++++---------- app/acf-util/logon-model.lua | 6 +++--- lib/Makefile | 1 + 5 files changed, 31 insertions(+), 19 deletions(-) diff --git a/Makefile b/Makefile index 9c35d4d..cbff17b 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ APP_NAME=core PACKAGE=acf-$(APP_NAME) -VERSION=0.1 +VERSION=0.2 P=$(PACKAGE)-$(VERSION) DISTDIR:=$(shell pwd)/$(P) diff --git a/app/Makefile b/app/Makefile index da17d7f..af2b898 100644 --- a/app/Makefile +++ b/app/Makefile @@ -1,10 +1,14 @@ include ../config.mk -APP_DIST= acf-util/logon-controller.lua\ - acf-util/logon-html.lsp\ - acf-util/logon-status-html.lsp\ - acf-util/logon-logout-html.lsp\ - acf-util/logon-model.lua\ +APP_DIST= \ + acf-util/logon-controller.lua \ + acf-util/logon-html.lsp \ + acf-util/logon-model.lua \ + acf-util/logon-status-html.lsp \ + acf-util/roles-controller.lua \ + acf-util/roles-getlist-html.lsp \ + acf-util/roles-model.lua \ + acf-util/roles-read-html.lsp \ acf_www-controller.lua\ cfgfile-model.lua\ service-model.lua\ diff --git a/app/acf-util/logon-html.lsp b/app/acf-util/logon-html.lsp index a1d3f33..9a930a2 100644 --- a/app/acf-util/logon-html.lsp +++ b/app/acf-util/logon-html.lsp @@ -1,17 +1,24 @@

Logon

+ +
" method="POST"> - -
- -
- -
-
- - +
+ 0) then io.write(" class='error'") end + io.write(">" .. v.label .. "\n") + + io.write("\t\t
" .. html.form[v.type](v) .. "\n") + if (v.descr) and (#v.descr > 0) then io.write("\t\t

" .. string.gsub(v.descr, "\n", "
") .. "

\n") end + if (#v.errtxt > 0) then io.write("\t\t

" .. string.gsub(v.errtxt, "\n", "
") .. "

\n") end + io.write("\t\t
\n") +end +?> +
diff --git a/app/acf-util/logon-model.lua b/app/acf-util/logon-model.lua index 3f5a149..f6beb59 100644 --- a/app/acf-util/logon-model.lua +++ b/app/acf-util/logon-model.lua @@ -20,9 +20,9 @@ else end logon = function (self, id_user, password_user,sessdata ) -local userid=cfe({ name="userid",type="text" }) -local password=cfe({ name="password" ,type="password"}) -local logon=cfe({ name="Logon", type="submit"}) +local userid=cfe({ name="userid",label="User id", type="text" }) +local password=cfe({ name="password" ,label="Password", type="passwd"}) +local logon=cfe({ name="Logon", label="Logon", value="Logon", type="submit"}) local s = "" local csess = session.check_session(conf.sessiondir, sessdata) diff --git a/lib/Makefile b/lib/Makefile index efadb90..13242c0 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -16,6 +16,7 @@ LIB_DIST=fs.lua\ authenticator-plaintext.lua\ daemoncontrol.lua\ getopts.lua\ + roles.lua\ EXTRA_DIST=README Makefile -- cgit v1.2.3