liquid_feedback_frontend
diff app/main/member/_profile.lua @ 1045:701a5cf6b067
Imported LiquidFeedback Frontend 3.0 branch
| author | bsw |
|---|---|
| date | Thu Jul 10 01:19:48 2014 +0200 (2014-07-10) |
| parents | 6c5cc85f59c1 |
| children | 58f48a8a202a |
line diff
1.1 --- a/app/main/member/_profile.lua Thu Jul 10 01:02:43 2014 +0200 1.2 +++ b/app/main/member/_profile.lua Thu Jul 10 01:19:48 2014 +0200 1.3 @@ -1,6 +1,6 @@ 1.4 local member = param.get("member", "table") 1.5 1.6 -local include_private_data = param.get("include_private_data", atom.boolean) 1.7 +local for_registration = param.get("for_registration", atom.boolean) 1.8 1.9 if not member then 1.10 local member_id = param.get("member_id", atom.integer) 1.11 @@ -10,34 +10,23 @@ 1.12 end 1.13 1.14 ui.form{ 1.15 - attr = { class = "member_statement member vertical" }, 1.16 + attr = { class = "form" }, 1.17 record = member, 1.18 readonly = true, 1.19 content = function() 1.20 1.21 - slot.put("<br />") 1.22 - 1.23 - ui.container{ 1.24 - attr = { class = "right" }, 1.25 - content = function() 1.26 - 1.27 - execute.view{ 1.28 - module = "member_image", 1.29 - view = "_show", 1.30 - params = { 1.31 - member = member, 1.32 - image_type = "photo" 1.33 + if not for_registration then 1.34 + ui.container { attr = { class = "member_photo" }, content = function() 1.35 + execute.view{ 1.36 + module = "member_image", 1.37 + view = "_show", 1.38 + params = { 1.39 + member = member, 1.40 + image_type = "photo" 1.41 + } 1.42 } 1.43 - } 1.44 - 1.45 - ui.container{ 1.46 - attr = { class = "contact_data" }, 1.47 - content = function() 1.48 - end 1.49 - } 1.50 - 1.51 - end 1.52 - } 1.53 + end } 1.54 + end 1.55 1.56 if member.identification then 1.57 ui.field.text{ label = _"Identification", name = "identification" } 1.58 @@ -45,8 +34,11 @@ 1.59 if member.name then 1.60 ui.field.text{ label = _"Screen name", name = "name" } 1.61 end 1.62 - if include_private_data and member.login then 1.63 + if for_registration and member.login then 1.64 ui.field.text{ label = _"Login name", name = "login" } 1.65 + end 1.66 + 1.67 + if for_registration and member.notify_email then 1.68 ui.field.text{ label = _"Notification email", name = "notify_email" } 1.69 end 1.70