liquid_feedback_frontend
view app/main/member/settings.lua @ 281:b77e6a17ca77
Check unit voting right where neccessary, hide action buttons for units without voting right
author | bsw |
---|---|
date | Thu Feb 16 15:01:49 2012 +0100 (2012-02-16) |
parents | 7196685f9dd7 |
children | c587d8762e62 |
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 { module = "member", view = "edit", text = _"Edit profile" },
21 { module = "member", view = "edit_images", text = _"Upload images" },
22 { view = "settings_display", text = _"Display settings" },
23 { view = "settings_email", text = _"Change your notification email address" },
24 { view = "settings_name", text = _"Change your name" },
25 { view = "settings_login", text = _"Change your login" },
26 { view = "settings_password", text = _"Change your password" },
27 { view = "developer_settings", text = _"Developer settings" },
28 }
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 }