liquid_feedback_frontend

annotate app/main/index/index.lua @ 452:c3b3a932f81f

Reordered member list filter
author bsw
date Sun Mar 11 17:10:07 2012 +0100 (2012-03-11)
parents 58647c8a0339
children ba310961ba34
rev   line source
bsw@441 1 execute.view{ module = "index", view = "_lang_chooser" }
bsw/jbe@0 2
bsw/jbe@0 3 slot.put_into("title", encode.html(config.app_title))
bsw/jbe@0 4
bsw@276 5 if app.session.member_id then
bsw@276 6 util.help("index.index", _"Home")
bsw@276 7
bsw@276 8 execute.view{
bsw@276 9 module = "member",
bsw@276 10 view = "_show",
bsw@276 11 params = {
bsw@276 12 member = app.session.member,
bsw@276 13 show_as_homepage = true
bsw@276 14 }
bsw@276 15 }
bsw@276 16
bsw@276 17 elseif config.public_access then
bsw@276 18 if config.motd_public then
bsw@276 19 local help_text = config.motd_public
bsw@276 20 ui.container{
bsw@276 21 attr = { class = "wiki motd" },
bsw@276 22 content = function()
bsw@276 23 slot.put(format.wiki_text(help_text))
bsw@276 24 end
bsw@276 25 }
bsw@276 26 end
bsw@276 27
bsw@276 28 execute.view{ module = "unit", view = "_list" }
bsw@276 29
bsw@276 30 else
bsw@276 31
bsw@386 32 if config.motd_public then
bsw@386 33 local help_text = config.motd_public
bsw@386 34 ui.container{
bsw@386 35 attr = { class = "wiki motd" },
bsw@386 36 content = function()
bsw@386 37 slot.put(format.wiki_text(help_text))
bsw@386 38 end
bsw@386 39 }
bsw@386 40 end
bsw@386 41
bsw@367 42 ui.tag{ tag = "p", content = _"Closed user group, please login to participate." }
bsw@276 43
bsw@369 44 ui.form{
bsw@369 45 attr = { class = "login" },
bsw@369 46 module = 'index',
bsw@369 47 action = 'login',
bsw@369 48 routing = {
bsw@369 49 ok = {
bsw@369 50 mode = 'redirect',
bsw@369 51 module = param.get("redirect_module") or "index",
bsw@369 52 view = param.get("redirect_view") or "index",
bsw@369 53 id = param.get("redirect_id"),
bsw@369 54 },
bsw@369 55 error = {
bsw@369 56 mode = 'forward',
bsw@369 57 module = 'index',
bsw@369 58 view = 'login',
bsw@369 59 }
bsw@369 60 },
bsw@369 61 content = function()
bsw@369 62 ui.field.text{
bsw@369 63 attr = { id = "username_field" },
bsw@369 64 label = _'login name',
bsw@369 65 html_name = 'login',
bsw@369 66 value = ''
bsw@369 67 }
bsw@369 68 ui.script{ script = 'document.getElementById("username_field").focus();' }
bsw@369 69 ui.field.password{
bsw@369 70 label = _'Password',
bsw@369 71 html_name = 'password',
bsw@369 72 value = ''
bsw@369 73 }
bsw@369 74 ui.submit{
bsw@369 75 text = _'Login'
bsw@369 76 }
bsw@369 77 end
bsw@369 78 }
bsw@369 79
jorges@103 80 end
jorges@103 81

Impressum / About Us