liquid_feedback_frontend

annotate 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
rev   line source
bsw@9 1 slot.put_into("title", _"Settings")
bsw@9 2
bsw@9 3 slot.select("actions", function()
bsw@9 4 ui.link{
bsw@9 5 content = function()
bsw@9 6 ui.image{ static = "icons/16/cancel.png" }
bsw@9 7 slot.put(_"Cancel")
bsw@9 8 end,
bsw@9 9 module = "index",
bsw@9 10 view = "index"
bsw@9 11 }
bsw@9 12 end)
bsw@9 13
bsw@75 14 ui.tag{
bsw@75 15 tag = "div",
bsw@75 16 content = _"You can change the following settings:"
bsw@75 17 }
bsw/jbe@19 18
bsw@286 19 local pages = {}
bsw@286 20
bsw@286 21 pages[#pages+1] = { module = "member", view = "edit", text = _"Edit profile" }
bsw@286 22 pages[#pages+1] = { module = "member", view = "edit_images", text = _"Upload images" }
bsw@286 23 pages[#pages+1] = { view = "settings_notification", text = _"Notification settings" }
bsw@286 24 pages[#pages+1] = { view = "settings_display", text = _"Display settings" }
bsw@286 25 if not config.locked_profile_fields.notify_email then
bsw@286 26 pages[#pages+1] = { view = "settings_email", text = _"Change your notification email address" }
bsw@286 27 end
bsw@286 28 if not config.locked_profile_fields.name then
bsw@286 29 pages[#pages+1] = { view = "settings_name", text = _"Change your screen name" }
bsw@286 30 end
bsw@286 31 if not config.locked_profile_fields.login then
bsw@286 32 pages[#pages+1] = { view = "settings_login", text = _"Change your login" }
bsw@286 33 end
bsw@286 34 pages[#pages+1] = { view = "settings_password", text = _"Change your password" }
bsw@286 35 pages[#pages+1] = { view = "developer_settings", text = _"Developer settings" }
bsw/jbe@19 36
bsw@75 37 ui.list{
bsw@75 38 attr = { class = "menu_list" },
bsw@75 39 style = "ulli",
bsw@75 40 records = pages,
bsw@75 41 columns = {
bsw@75 42 {
bsw@75 43 content = function(page)
bsw@75 44 ui.link{
bsw@273 45 module = page.module or "member",
bsw@75 46 view = page.view,
bsw@75 47 text = page.text
bsw@75 48 }
bsw@75 49 end
bsw@9 50 }
bsw@75 51 }
bsw@9 52 }
bsw@9 53

Impressum / About Us