liquid_feedback_frontend

diff app/main/admin/member_list.lua @ 590:ae7649ddccf4

Make it possible to set an member inactive, display activation status and lock status seperately in admin member list
author bsw
date Thu Jun 21 17:22:25 2012 +0200 (2012-06-21)
parents 6fc640d87c8f
children b5684668ac4b
line diff
     1.1 --- a/app/main/admin/member_list.lua	Thu Jun 21 17:15:37 2012 +0200
     1.2 +++ b/app/main/admin/member_list.lua	Thu Jun 21 17:22:25 2012 +0200
     1.3 @@ -67,9 +67,7 @@
     1.4          },
     1.5          {
     1.6            content = function(record)
     1.7 -            if record.locked then
     1.8 -              ui.field.text{ value = "locked" }
     1.9 -            elseif not record.activated then
    1.10 +            if not record.activated then
    1.11                ui.field.text{ value = "not activated" }
    1.12              elseif not record.active then
    1.13                ui.field.text{ value = "inactive" }
    1.14 @@ -80,6 +78,13 @@
    1.15          },
    1.16          {
    1.17            content = function(record)
    1.18 +            if record.locked then
    1.19 +              ui.field.text{ value = "locked" }
    1.20 +            end
    1.21 +          end
    1.22 +        },
    1.23 +        {
    1.24 +          content = function(record)
    1.25              ui.link{
    1.26                attr = { class = "action admin_only" },
    1.27                text = _"Edit",

Impressum / About Us