liquid_feedback_frontend
view 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
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 |
line source
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."
3 ui.script{ static = "js/browser_warning.js" }
4 ui.script{ script = "checkBrowser(" .. encode.json(_"Your web browser is not fully supported yet." .. " " .. warning_text:gsub("\n", "\n\n")) .. ");" }
6 ui.tag{
7 tag = "noscript",
8 content = function()
9 slot.put(_"JavaScript is disabled or not available." .. " " .. encode.html_newlines(warning_text))
10 end
11 }
13 slot.put_into("title", encode.html(config.app_title))
15 ui.tag{
16 tag = 'p',
17 content = _'You need to be logged in, to use this system.'
18 }
20 ui.form{
21 attr = { class = "login" },
22 module = 'index',
23 action = 'login',
24 routing = {
25 ok = {
26 mode = 'redirect',
27 module = 'index',
28 view = 'index'
29 },
30 error = {
31 mode = 'forward',
32 module = 'index',
33 view = 'login',
34 }
35 },
36 content = function()
37 ui.field.text{
38 attr = { id = "username_field" },
39 label = _'login name',
40 html_name = 'login',
41 value = ''
42 }
43 ui.script{ script = 'document.getElementById("username_field").focus();' }
44 ui.field.password{
45 label = _'Password',
46 html_name = 'password',
47 value = ''
48 }
49 ui.submit{
50 text = _'Login'
51 }
52 end
53 }
