bsw@9: slot.put_into("title", _"Settings") bsw@9: bsw@9: slot.select("actions", function() bsw@9: ui.link{ bsw@9: content = function() bsw@9: ui.image{ static = "icons/16/cancel.png" } bsw@9: slot.put(_"Cancel") bsw@9: end, bsw@9: module = "index", bsw@9: view = "index" bsw@9: } bsw@9: end) bsw@9: bsw@75: ui.tag{ bsw@75: tag = "div", bsw@75: content = _"You can change the following settings:" bsw@75: } bsw/jbe@19: bsw@286: local pages = {} bsw@286: bsw@286: pages[#pages+1] = { module = "member", view = "edit", text = _"Edit profile" } bsw@286: pages[#pages+1] = { module = "member", view = "edit_images", text = _"Upload images" } bsw@286: pages[#pages+1] = { view = "settings_notification", text = _"Notification settings" } bsw@286: pages[#pages+1] = { view = "settings_display", text = _"Display settings" } bsw@286: if not config.locked_profile_fields.notify_email then bsw@286: pages[#pages+1] = { view = "settings_email", text = _"Change your notification email address" } bsw@286: end bsw@286: if not config.locked_profile_fields.name then bsw@286: pages[#pages+1] = { view = "settings_name", text = _"Change your screen name" } bsw@286: end bsw@286: if not config.locked_profile_fields.login then bsw@286: pages[#pages+1] = { view = "settings_login", text = _"Change your login" } bsw@286: end bsw@286: pages[#pages+1] = { view = "settings_password", text = _"Change your password" } bsw@286: pages[#pages+1] = { view = "developer_settings", text = _"Developer settings" } bsw/jbe@19: bsw@75: ui.list{ bsw@75: attr = { class = "menu_list" }, bsw@75: style = "ulli", bsw@75: records = pages, bsw@75: columns = { bsw@75: { bsw@75: content = function(page) bsw@75: ui.link{ bsw@273: module = page.module or "member", bsw@75: view = page.view, bsw@75: text = page.text bsw@75: } bsw@75: end bsw@9: } bsw@75: } bsw@9: } bsw@9: