liquid_feedback_frontend
diff 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
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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/app/main/index/register.lua Fri Dec 25 12:00:00 2009 +0100 1.3 @@ -0,0 +1,96 @@ 1.4 +slot.put_into("title", _"Registration") 1.5 + 1.6 +slot.select("actions", function() 1.7 + ui.link{ 1.8 + content = function() 1.9 + ui.image{ static = "icons/16/cancel.png" } 1.10 + slot.put(_"Cancel") 1.11 + end, 1.12 + module = "index", 1.13 + view = "index" 1.14 + } 1.15 +end) 1.16 + 1.17 +local code = param.get("code") 1.18 +local name = param.get("name") 1.19 +local login = param.get("login") 1.20 + 1.21 +ui.form{ 1.22 + attr = { class = "login" }, 1.23 + module = 'index', 1.24 + action = 'register', 1.25 + params = { 1.26 + code = code, 1.27 + name = name, 1.28 + login = login 1.29 + }, 1.30 + content = function() 1.31 + 1.32 + if not code then 1.33 + ui.tag{ 1.34 + tag = "p", 1.35 + content = _"Please enter the invite code you've received." 1.36 + } 1.37 + ui.field.text{ 1.38 + label = _'Invite code', 1.39 + name = 'code', 1.40 + } 1.41 + 1.42 + elseif not name then 1.43 + ui.tag{ 1.44 + tag = "p", 1.45 + 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!" 1.46 + } 1.47 + ui.field.text{ 1.48 + label = _'Name', 1.49 + name = 'name', 1.50 + value = param.get("name") 1.51 + } 1.52 + 1.53 + elseif not login then 1.54 + ui.tag{ 1.55 + tag = "p", 1.56 + 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." 1.57 + } 1.58 + ui.field.text{ 1.59 + label = _'Login name', 1.60 + name = 'login', 1.61 + value = param.get("login") 1.62 + } 1.63 + 1.64 + else 1.65 + ui.field.text{ 1.66 + label = _'Name', 1.67 + name = 'name', 1.68 + value = param.get("name"), 1.69 + readonly = true 1.70 + } 1.71 + ui.field.text{ 1.72 + label = _'Login name', 1.73 + name = 'login', 1.74 + value = param.get("login"), 1.75 + readonly = true 1.76 + } 1.77 + ui.tag{ 1.78 + tag = "p", 1.79 + content = _"Please choose a password and enter it twice. The password is case sensitive." 1.80 + } 1.81 + ui.field.password{ 1.82 + label = _'Password', 1.83 + name = 'password1', 1.84 + } 1.85 + ui.field.password{ 1.86 + label = _'Password (repeat)', 1.87 + name = 'password2', 1.88 + } 1.89 + 1.90 + end 1.91 + 1.92 + ui.submit{ 1.93 + text = _'Register' 1.94 + } 1.95 + 1.96 + end 1.97 +} 1.98 + 1.99 +