liquid_feedback_frontend

view app/main/index/register.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
children 8d91bccab0bf
line source
1 slot.put_into("title", _"Registration")
3 slot.select("actions", function()
4 ui.link{
5 content = function()
6 ui.image{ static = "icons/16/cancel.png" }
7 slot.put(_"Cancel")
8 end,
9 module = "index",
10 view = "index"
11 }
12 end)
14 local code = param.get("code")
15 local name = param.get("name")
16 local login = param.get("login")
18 ui.form{
19 attr = { class = "login" },
20 module = 'index',
21 action = 'register',
22 params = {
23 code = code,
24 name = name,
25 login = login
26 },
27 content = function()
29 if not code then
30 ui.tag{
31 tag = "p",
32 content = _"Please enter the invite code you've received."
33 }
34 ui.field.text{
35 label = _'Invite code',
36 name = 'code',
37 }
39 elseif not name then
40 ui.tag{
41 tag = "p",
42 content = _"Please choose a name, i.e. your real name or your nick name. This name will be shown to others to identify you. You CAN'T change this name later, so please choose it wisely!"
43 }
44 ui.field.text{
45 label = _'Name',
46 name = 'name',
47 value = param.get("name")
48 }
50 elseif not login then
51 ui.tag{
52 tag = "p",
53 content = _"Please choose a login name. This name will not be shown to others and is used only by you to login into the system. The login name is case sensitive."
54 }
55 ui.field.text{
56 label = _'Login name',
57 name = 'login',
58 value = param.get("login")
59 }
61 else
62 ui.field.text{
63 label = _'Name',
64 name = 'name',
65 value = param.get("name"),
66 readonly = true
67 }
68 ui.field.text{
69 label = _'Login name',
70 name = 'login',
71 value = param.get("login"),
72 readonly = true
73 }
74 ui.tag{
75 tag = "p",
76 content = _"Please choose a password and enter it twice. The password is case sensitive."
77 }
78 ui.field.password{
79 label = _'Password',
80 name = 'password1',
81 }
82 ui.field.password{
83 label = _'Password (repeat)',
84 name = 'password2',
85 }
87 end
89 ui.submit{
90 text = _'Register'
91 }
93 end
94 }

Impressum / About Us