liquid_feedback_frontend

annotate app/main/index/login.lua @ 436:852962dd9bb0

Fixed typo in german translation
author bsw
date Sun Mar 11 12:21:54 2012 +0100 (2012-03-11)
parents 5a0d5369b21d
children 58647c8a0339
rev   line source
jbe@231 1 local warning_text = _"Some JavaScript based functions (voting in particular) will not work.\nFor this beta, please use a current version of Firefox, Safari, Chrome, Opera(?), Konqueror or another (more) standard compliant browser.\nAlternative access without JavaScript will be available soon."
bsw/jbe@5 2
bsw/jbe@5 3 ui.script{ static = "js/browser_warning.js" }
bsw/jbe@5 4 ui.script{ script = "checkBrowser(" .. encode.json(_"Your web browser is not fully supported yet." .. " " .. warning_text:gsub("\n", "\n\n")) .. ");" }
bsw/jbe@5 5
bsw/jbe@5 6 ui.tag{
bsw/jbe@5 7 tag = "noscript",
bsw/jbe@5 8 content = function()
bsw/jbe@5 9 slot.put(_"JavaScript is disabled or not available." .. " " .. encode.html_newlines(warning_text))
bsw/jbe@5 10 end
bsw/jbe@5 11 }
bsw/jbe@5 12
bsw/jbe@0 13 slot.put_into("title", encode.html(config.app_title))
jorges@105 14 app.html_title.title = _"Login"
bsw/jbe@0 15
bsw@11 16 slot.select("title", function()
bsw@11 17 ui.container{
bsw@11 18 attr = { class = "lang_chooser" },
bsw@11 19 content = function()
bsw@15 20 for i, lang in ipairs{"en", "de", "eo"} do
bsw@11 21 ui.link{
bsw@11 22 content = function()
bsw@11 23 ui.image{
bsw@11 24 static = "lang/" .. lang .. ".png",
bsw@11 25 attr = { style = "margin-left: 0.5em;", alt = lang }
bsw@11 26 }
bsw@11 27 end,
bsw/jbe@19 28 text = _('Select language "#{langcode}"', { langcode = lang }),
bsw@11 29 module = "index",
bsw@11 30 action = "set_lang",
bsw@11 31 params = { lang = lang },
bsw@11 32 routing = {
bsw@11 33 default = {
bsw@11 34 mode = "redirect",
bsw@11 35 module = request.get_module(),
bsw@11 36 view = request.get_view(),
bsw@11 37 id = param.get_id_cgi(),
bsw@11 38 params = param.get_all_cgi()
bsw@11 39 }
bsw@11 40 }
bsw@11 41 }
bsw@11 42 end
bsw@11 43 end
bsw@11 44 }
bsw@11 45 end)
bsw@11 46
bsw@69 47 if config.motd_public then
bsw@69 48 local help_text = config.motd_public
bsw@69 49 ui.container{
bsw@69 50 attr = { class = "wiki motd" },
bsw@69 51 content = function()
bsw@69 52 slot.put(format.wiki_text(help_text))
bsw@69 53 end
bsw@69 54 }
bsw@69 55 end
bsw@11 56
bsw@369 57 if config.public_access then
bsw@369 58 ui.tag{
bsw@369 59 tag = 'p',
bsw@369 60 content = _'You need to be logged in, to use all features of this system.'
bsw@369 61 }
bsw@369 62 else
bsw@369 63 ui.tag{ tag = "p", content = _"Closed user group, please login to participate." }
bsw@369 64 end
bsw/jbe@0 65
bsw/jbe@0 66 ui.form{
bsw/jbe@0 67 attr = { class = "login" },
bsw/jbe@0 68 module = 'index',
bsw/jbe@0 69 action = 'login',
bsw/jbe@0 70 routing = {
bsw/jbe@0 71 ok = {
bsw/jbe@0 72 mode = 'redirect',
bsw@51 73 module = param.get("redirect_module") or "index",
bsw@51 74 view = param.get("redirect_view") or "index",
bsw@51 75 id = param.get("redirect_id"),
bsw/jbe@0 76 },
bsw/jbe@0 77 error = {
bsw/jbe@0 78 mode = 'forward',
bsw/jbe@0 79 module = 'index',
bsw/jbe@0 80 view = 'login',
bsw/jbe@0 81 }
bsw/jbe@0 82 },
bsw/jbe@0 83 content = function()
bsw/jbe@0 84 ui.field.text{
bsw/jbe@0 85 attr = { id = "username_field" },
bsw/jbe@5 86 label = _'login name',
bsw/jbe@0 87 html_name = 'login',
bsw/jbe@0 88 value = ''
bsw/jbe@0 89 }
bsw/jbe@0 90 ui.script{ script = 'document.getElementById("username_field").focus();' }
bsw/jbe@0 91 ui.field.password{
bsw/jbe@0 92 label = _'Password',
bsw/jbe@0 93 html_name = 'password',
bsw/jbe@0 94 value = ''
bsw/jbe@0 95 }
bsw/jbe@0 96 ui.submit{
bsw/jbe@0 97 text = _'Login'
bsw/jbe@0 98 }
bsw/jbe@0 99 end
bsw/jbe@0 100 }
bsw@11 101
bsw@51 102 if config.auth_openid_enabled then
bsw@51 103 ui.form{
bsw@51 104 attr = { class = "login" },
bsw@51 105 module = 'openid',
bsw@51 106 action = 'initiate',
bsw@51 107 routing = {
bsw@51 108 default = {
bsw@51 109 mode = 'forward',
bsw@51 110 module = 'index',
bsw@51 111 view = 'login',
bsw@51 112 }
bsw@51 113 },
bsw@51 114 content = function()
bsw@51 115 ui.field.text{
bsw@51 116 label = _'OpenID',
bsw@51 117 html_name = 'openid_identifier',
bsw@51 118 value = ''
bsw@51 119 }
bsw@51 120 ui.submit{
bsw@51 121 text = _'OpenID Login'
bsw@51 122 }
bsw@51 123 end
bsw@51 124 }
bsw@51 125 end

Impressum / About Us