liquid_feedback_frontend

view app/main/member/settings.lua @ 286:c587d8762e62

Registration process updated for Core 2.0, lockable member fields, notification settings
author bsw
date Sat Feb 25 11:51:37 2012 +0100 (2012-02-25)
parents 7196685f9dd7
children 790ff702402f
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 = {}
21 pages[#pages+1] = { module = "member", view = "edit", text = _"Edit profile" }
22 pages[#pages+1] = { module = "member", view = "edit_images", text = _"Upload images" }
23 pages[#pages+1] = { view = "settings_notification", text = _"Notification settings" }
24 pages[#pages+1] = { view = "settings_display", text = _"Display settings" }
25 if not config.locked_profile_fields.notify_email then
26 pages[#pages+1] = { view = "settings_email", text = _"Change your notification email address" }
27 end
28 if not config.locked_profile_fields.name then
29 pages[#pages+1] = { view = "settings_name", text = _"Change your screen name" }
30 end
31 if not config.locked_profile_fields.login then
32 pages[#pages+1] = { view = "settings_login", text = _"Change your login" }
33 end
34 pages[#pages+1] = { view = "settings_password", text = _"Change your password" }
35 pages[#pages+1] = { view = "developer_settings", text = _"Developer settings" }
37 ui.list{
38 attr = { class = "menu_list" },
39 style = "ulli",
40 records = pages,
41 columns = {
42 {
43 content = function(page)
44 ui.link{
45 module = page.module or "member",
46 view = page.view,
47 text = page.text
48 }
49 end
50 }
51 }
52 }

Impressum / About Us