liquid_feedback_frontend
view app/main/member/settings.lua @ 117:b8dc98239f24
add custom script slot
| author | Daniel Poelzleithner <poelzi@poelzi.org> | 
|---|---|
| date | Sun Sep 19 04:44:58 2010 +0200 (2010-09-19) | 
| parents | 733f65c0c0a0 | 
| children | 7196685f9dd7 | 
 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 ui.tag{
    15   tag = "div",
    16   content = _"You can change the following settings:"
    17 }
    19 local pages = {
    20   { view = "settings_display",   text = _"Display settings" },
    21   { view = "settings_email",     text = _"Change your notification email address" },
    22   { view = "settings_name",      text = _"Change your name" },
    23   { view = "settings_login",     text = _"Change your login" },
    24   { view = "settings_password",  text = _"Change your password" },
    25   { view = "developer_settings", text = _"Developer settings" },
    26 }
    28 ui.list{
    29   attr = { class = "menu_list" },
    30   style = "ulli",
    31   records = pages,
    32   columns = {
    33     {
    34       content = function(page)
    35         ui.link{
    36           module = "member",
    37           view = page.view,
    38           text = page.text
    39         }
    40       end
    41     }
    42   }
    43 }
