liquid_feedback_frontend
changeset 740:4a106804aafb
Made registration process more clear, fixed hidden titles
author | bsw |
---|---|
date | Thu Jun 28 22:24:05 2012 +0200 (2012-06-28) |
parents | cae6d67b0594 |
children | 6e4392a4ed9b |
files | app/main/index/register.lua |
line diff
1.1 --- a/app/main/index/register.lua Thu Jun 28 22:20:17 2012 +0200 1.2 +++ b/app/main/index/register.lua Thu Jun 28 22:24:05 2012 +0200 1.3 @@ -1,14 +1,11 @@ 1.4 execute.view{ module = "index", view = "_lang_chooser" } 1.5 1.6 -slot.put_into("title", _"Registration") 1.7 - 1.8 local step = param.get("step", atom.integer) 1.9 local code = param.get("code") 1.10 local notify_email = param.get("notify_email") 1.11 local name = param.get("name") 1.12 local login = param.get("login") 1.13 1.14 -slot.put_into("title", " (") 1.15 ui.form{ 1.16 attr = { class = "vertical" }, 1.17 module = 'index', 1.18 @@ -22,7 +19,7 @@ 1.19 content = function() 1.20 1.21 if not code then 1.22 - slot.put_into("title", _"Step 1/3: Invite code") 1.23 + ui.title(_"Registration (step 1 of 3: Invite code)") 1.24 ui.field.hidden{ name = "step", value = 1 } 1.25 ui.tag{ 1.26 tag = "p", 1.27 @@ -43,7 +40,7 @@ 1.28 :exec() 1.29 1.30 if not member.notify_email and not notify_email or not member.name and not name or not member.login and not login or step == 1 then 1.31 - slot.put_into("title", _"Step 2/3: Personal information") 1.32 + ui.title(_"Registration (step 2 of 3: Personal information)") 1.33 ui.field.hidden{ name = "step", value = 2 } 1.34 slot.select("actions", function() 1.35 ui.link{ 1.36 @@ -101,7 +98,7 @@ 1.37 else 1.38 1.39 ui.field.hidden{ name = "step", value = "3" } 1.40 - slot.put_into("title", _"Step 3/3: Terms of use and password") 1.41 + ui.title(_"Registration (step 3 of 3: Terms of use and password)") 1.42 slot.select("actions", function() 1.43 ui.link{ 1.44 content = function() 1.45 @@ -183,10 +180,9 @@ 1.46 end 1.47 1.48 ui.submit{ 1.49 - text = _'Register' 1.50 + text = _'Create account' 1.51 } 1.52 1.53 - slot.put_into("title", ")") 1.54 slot.select("actions", function() 1.55 ui.link{ 1.56 content = function()