# HG changeset patch # User bsw # Date 1340915045 -7200 # Node ID 4a106804aafbc8b7bb2573992744b8519c698094 # Parent cae6d67b0594cb8bd850261f5254f65b10a2338e Made registration process more clear, fixed hidden titles diff -r cae6d67b0594 -r 4a106804aafb app/main/index/register.lua --- a/app/main/index/register.lua Thu Jun 28 22:20:17 2012 +0200 +++ b/app/main/index/register.lua Thu Jun 28 22:24:05 2012 +0200 @@ -1,14 +1,11 @@ execute.view{ module = "index", view = "_lang_chooser" } -slot.put_into("title", _"Registration") - local step = param.get("step", atom.integer) local code = param.get("code") local notify_email = param.get("notify_email") local name = param.get("name") local login = param.get("login") -slot.put_into("title", " (") ui.form{ attr = { class = "vertical" }, module = 'index', @@ -22,7 +19,7 @@ content = function() if not code then - slot.put_into("title", _"Step 1/3: Invite code") + ui.title(_"Registration (step 1 of 3: Invite code)") ui.field.hidden{ name = "step", value = 1 } ui.tag{ tag = "p", @@ -43,7 +40,7 @@ :exec() 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 - slot.put_into("title", _"Step 2/3: Personal information") + ui.title(_"Registration (step 2 of 3: Personal information)") ui.field.hidden{ name = "step", value = 2 } slot.select("actions", function() ui.link{ @@ -101,7 +98,7 @@ else ui.field.hidden{ name = "step", value = "3" } - slot.put_into("title", _"Step 3/3: Terms of use and password") + ui.title(_"Registration (step 3 of 3: Terms of use and password)") slot.select("actions", function() ui.link{ content = function() @@ -183,10 +180,9 @@ end ui.submit{ - text = _'Register' + text = _'Create account' } - slot.put_into("title", ")") slot.select("actions", function() ui.link{ content = function()