liquid_feedback_frontend

annotate app/main/member/settings.lua @ 414:699b9fa7bc36

Integrated new event system, splitted issues in open/closed, changed navigation
author bsw
date Sat Mar 10 16:57:49 2012 +0100 (2012-03-10)
parents 790ff702402f
children 528409b5d49f
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@286 14 local pages = {}
bsw@286 15
bsw@286 16 if not config.locked_profile_fields.name then
bsw@286 17 pages[#pages+1] = { view = "settings_name", text = _"Change your screen name" }
bsw@286 18 end
bsw@286 19 if not config.locked_profile_fields.login then
bsw@286 20 pages[#pages+1] = { view = "settings_login", text = _"Change your login" }
bsw@286 21 end
bsw@286 22 pages[#pages+1] = { view = "settings_password", text = _"Change your password" }
bsw@414 23 if not config.locked_profile_fields.notify_email then
bsw@414 24 pages[#pages+1] = { view = "settings_email", text = _"Change your notification email address" }
bsw@414 25 end
bsw@414 26 pages[#pages+1] = { view = "settings_notification", text = _"Notification settings" }
bsw@414 27 pages[#pages+1] = { view = "settings_display", text = _"Display settings" }
bsw@286 28 pages[#pages+1] = { view = "developer_settings", text = _"Developer settings" }
bsw/jbe@19 29
bsw@75 30 ui.list{
bsw@75 31 attr = { class = "menu_list" },
bsw@75 32 style = "ulli",
bsw@75 33 records = pages,
bsw@75 34 columns = {
bsw@75 35 {
bsw@75 36 content = function(page)
bsw@75 37 ui.link{
bsw@273 38 module = page.module or "member",
bsw@75 39 view = page.view,
bsw@75 40 text = page.text
bsw@75 41 }
bsw@75 42 end
bsw@9 43 }
bsw@75 44 }
bsw@9 45 }
bsw@9 46

Impressum / About Us