liquid_feedback_frontend

annotate app/main/index/login.lua @ 570:b904fc12cc1a

Show only units with voting privilege in member_home page
author bsw
date Tue Jun 19 23:18:39 2012 +0200 (2012-06-19)
parents f9b80c930456
children f52f918b38b8
rev   line source
bsw/jbe@5 1 ui.tag{
bsw/jbe@5 2 tag = "noscript",
bsw/jbe@5 3 content = function()
bsw@520 4 slot.put(_"JavaScript is disabled or not available.")
bsw/jbe@5 5 end
bsw/jbe@5 6 }
bsw/jbe@5 7
bsw@441 8 execute.view{ module = "index", view = "_lang_chooser" }
bsw@441 9
bsw/jbe@0 10 slot.put_into("title", encode.html(config.app_title))
jorges@105 11 app.html_title.title = _"Login"
bsw/jbe@0 12
bsw@11 13
bsw@69 14 if config.motd_public then
bsw@69 15 local help_text = config.motd_public
bsw@69 16 ui.container{
bsw@69 17 attr = { class = "wiki motd" },
bsw@69 18 content = function()
bsw@69 19 slot.put(format.wiki_text(help_text))
bsw@69 20 end
bsw@69 21 }
bsw@69 22 end
bsw@11 23
bsw@369 24 if config.public_access then
bsw@369 25 ui.tag{
bsw@369 26 tag = 'p',
bsw@369 27 content = _'You need to be logged in, to use all features of this system.'
bsw@369 28 }
bsw@369 29 else
bsw@369 30 ui.tag{ tag = "p", content = _"Closed user group, please login to participate." }
bsw@369 31 end
bsw/jbe@0 32
bsw/jbe@0 33 ui.form{
bsw/jbe@0 34 attr = { class = "login" },
bsw/jbe@0 35 module = 'index',
bsw/jbe@0 36 action = 'login',
bsw/jbe@0 37 routing = {
bsw/jbe@0 38 ok = {
bsw/jbe@0 39 mode = 'redirect',
bsw@51 40 module = param.get("redirect_module") or "index",
bsw@51 41 view = param.get("redirect_view") or "index",
bsw@51 42 id = param.get("redirect_id"),
bsw/jbe@0 43 },
bsw/jbe@0 44 error = {
bsw/jbe@0 45 mode = 'forward',
bsw/jbe@0 46 module = 'index',
bsw/jbe@0 47 view = 'login',
bsw/jbe@0 48 }
bsw/jbe@0 49 },
bsw/jbe@0 50 content = function()
bsw/jbe@0 51 ui.field.text{
bsw/jbe@0 52 attr = { id = "username_field" },
bsw/jbe@5 53 label = _'login name',
bsw/jbe@0 54 html_name = 'login',
bsw/jbe@0 55 value = ''
bsw/jbe@0 56 }
bsw/jbe@0 57 ui.script{ script = 'document.getElementById("username_field").focus();' }
bsw/jbe@0 58 ui.field.password{
bsw/jbe@0 59 label = _'Password',
bsw/jbe@0 60 html_name = 'password',
bsw/jbe@0 61 value = ''
bsw/jbe@0 62 }
bsw/jbe@0 63 ui.submit{
bsw/jbe@0 64 text = _'Login'
bsw/jbe@0 65 }
bsw/jbe@0 66 end
bsw/jbe@0 67 }
bsw@11 68
bsw@51 69 if config.auth_openid_enabled then
bsw@51 70 ui.form{
bsw@51 71 attr = { class = "login" },
bsw@51 72 module = 'openid',
bsw@51 73 action = 'initiate',
bsw@51 74 routing = {
bsw@51 75 default = {
bsw@51 76 mode = 'forward',
bsw@51 77 module = 'index',
bsw@51 78 view = 'login',
bsw@51 79 }
bsw@51 80 },
bsw@51 81 content = function()
bsw@51 82 ui.field.text{
bsw@51 83 label = _'OpenID',
bsw@51 84 html_name = 'openid_identifier',
bsw@51 85 value = ''
bsw@51 86 }
bsw@51 87 ui.submit{
bsw@51 88 text = _'OpenID Login'
bsw@51 89 }
bsw@51 90 end
bsw@51 91 }
bsw@51 92 end

Impressum / About Us