liquid_feedback_frontend
changeset 1456:9e5cfd6411aa
Fixed nesting
author | bsw |
---|---|
date | Thu Oct 18 17:25:11 2018 +0200 (2018-10-18) |
parents | 24dc7bd75d0a |
children | 77fb282db8a1 |
files | app/main/admin/member_edit.lua |
line diff
1.1 --- a/app/main/admin/member_edit.lua Thu Oct 18 17:23:45 2018 +0200 1.2 +++ b/app/main/admin/member_edit.lua Thu Oct 18 17:25:11 2018 +0200 1.3 @@ -41,32 +41,28 @@ 1.4 }, 1.5 content = function() 1.6 1.7 - ui.sectionHead( function() 1.8 - ui.heading { level = 1, content = member and (member.name or member.id) or _"New member" } 1.9 - if member and member.identification then 1.10 - ui.heading { level = 3, content = member.identification } 1.11 - end 1.12 - end ) 1.13 + ui.heading { level = 1, content = member and (member.name or member.id) or _"New member" } 1.14 + if member and member.identification then 1.15 + ui.heading { level = 3, content = member.identification } 1.16 + end 1.17 1.18 - ui.sectionRow( function() 1.19 - ui.field.text{ label = _"Identification", name = "identification" } 1.20 - ui.field.text{ label = _"Notification email (confirmed)", name = "notify_email" } 1.21 - ui.field.text{ label = _"Notification email (unconfirmed)", name = "notify_email_unconfirmed" } 1.22 - if member and member.activated then 1.23 - ui.field.text{ label = _"Screen name", name = "name" } 1.24 - end 1.25 - 1.26 - if member and member.activated and not deactivated then 1.27 - ui.field.text{ label = _"Login name", name = "login" } 1.28 - end 1.29 + ui.field.text{ label = _"Identification", name = "identification" } 1.30 + ui.field.text{ label = _"Notification email (confirmed)", name = "notify_email" } 1.31 + ui.field.text{ label = _"Notification email (unconfirmed)", name = "notify_email_unconfirmed" } 1.32 + if member and member.activated then 1.33 + ui.field.text{ label = _"Screen name", name = "name" } 1.34 + end 1.35 + 1.36 + if member and member.activated and not deactivated then 1.37 + ui.field.text{ label = _"Login name", name = "login" } 1.38 + end 1.39 1.40 - for i, unit in ipairs(units) do 1.41 - ui.field.boolean{ 1.42 - name = "unit_" .. unit.id, 1.43 - label = unit.name, 1.44 - value = unit.voting_right 1.45 - } 1.46 - end 1.47 + for i, unit in ipairs(units) do 1.48 + ui.field.boolean{ 1.49 + name = "unit_" .. unit.id, 1.50 + label = unit.name, 1.51 + value = unit.voting_right 1.52 + } 1.53 slot.put("<br /><br />") 1.54 1.55 if member then 1.56 @@ -101,7 +97,8 @@ 1.57 slot.put(" ") 1.58 end 1.59 ui.link { module = "admin", view = "index", content = _"cancel" } 1.60 - end ) 1.61 + 1.62 + end } 1.63 end 1.64 } 1.65 end }