liquid_feedback_frontend
view app/main/member/settings.lua @ 420:c45be3b2bc75
Fixed wrong image name for new icon for discussion in event list
| author | bsw | 
|---|---|
| date | Sat Mar 10 17:53:41 2012 +0100 (2012-03-10) | 
| parents | 699b9fa7bc36 | 
| children | 528409b5d49f | 
 line source
     1 slot.put_into("title", _"Settings")
     3 slot.select("actions", function()
     4   ui.link{
     5     content = function()
     6         ui.image{ static = "icons/16/cancel.png" }
     7         slot.put(_"Cancel")
     8     end,
     9     module = "index",
    10     view = "index"
    11   }
    12 end)
    14 local pages = {}
    16 if not config.locked_profile_fields.name then
    17   pages[#pages+1] = { view = "settings_name",           text = _"Change your screen name" }
    18 end
    19 if not config.locked_profile_fields.login then
    20   pages[#pages+1] = { view = "settings_login",          text = _"Change your login" }
    21 end
    22 pages[#pages+1] = { view = "settings_password",       text = _"Change your password" }
    23 if not config.locked_profile_fields.notify_email then
    24   pages[#pages+1] = { view = "settings_email",          text = _"Change your notification email address" }
    25 end
    26 pages[#pages+1] = { view = "settings_notification", text = _"Notification settings" }
    27 pages[#pages+1] = { view = "settings_display",        text = _"Display settings" }
    28 pages[#pages+1] = { view = "developer_settings",      text = _"Developer settings" }
    30 ui.list{
    31   attr = { class = "menu_list" },
    32   style = "ulli",
    33   records = pages,
    34   columns = {
    35     {
    36       content = function(page)
    37         ui.link{
    38           module = page.module or "member",
    39           view = page.view,
    40           text = page.text
    41         }
    42       end
    43     }
    44   }
    45 }
