liquid_feedback_frontend

annotate app/main/index/login.lua @ 5:afd9f769c7ae

Version beta1

Final voting with Schulze-Method is now possible

Many bug fixes and code cleanup

Registration with invite codes

More sort and filter options

Seperated display of "supporters" and "potential supporters"

Optical changes

Flood limit / initiative contigent is now checked by frontend

Neccessary changes to access core beta11
author bsw/jbe
date Fri Dec 25 12:00:00 2009 +0100 (2009-12-25)
parents 768faea1096d
children 77d58efe99fd
rev   line source
bsw/jbe@5 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, 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))
bsw/jbe@0 14
bsw/jbe@0 15 ui.tag{
bsw/jbe@0 16 tag = 'p',
bsw@3 17 content = _'You need to be logged in, to use this system.'
bsw/jbe@0 18 }
bsw/jbe@0 19
bsw/jbe@0 20 ui.form{
bsw/jbe@0 21 attr = { class = "login" },
bsw/jbe@0 22 module = 'index',
bsw/jbe@0 23 action = 'login',
bsw/jbe@0 24 routing = {
bsw/jbe@0 25 ok = {
bsw/jbe@0 26 mode = 'redirect',
bsw/jbe@0 27 module = 'index',
bsw/jbe@0 28 view = 'index'
bsw/jbe@0 29 },
bsw/jbe@0 30 error = {
bsw/jbe@0 31 mode = 'forward',
bsw/jbe@0 32 module = 'index',
bsw/jbe@0 33 view = 'login',
bsw/jbe@0 34 }
bsw/jbe@0 35 },
bsw/jbe@0 36 content = function()
bsw/jbe@0 37 ui.field.text{
bsw/jbe@0 38 attr = { id = "username_field" },
bsw/jbe@5 39 label = _'login name',
bsw/jbe@0 40 html_name = 'login',
bsw/jbe@0 41 value = ''
bsw/jbe@0 42 }
bsw/jbe@0 43 ui.script{ script = 'document.getElementById("username_field").focus();' }
bsw/jbe@0 44 ui.field.password{
bsw/jbe@0 45 label = _'Password',
bsw/jbe@0 46 html_name = 'password',
bsw/jbe@0 47 value = ''
bsw/jbe@0 48 }
bsw/jbe@0 49 ui.submit{
bsw/jbe@0 50 text = _'Login'
bsw/jbe@0 51 }
bsw/jbe@0 52 end
bsw/jbe@0 53 }

Impressum / About Us