liquid_feedback_frontend
view app/main/member/settings_display.lua @ 279:23c98752e697
Added wiki support for suggestions and member statements
author | bsw |
---|---|
date | Thu Feb 16 14:08:43 2012 +0100 (2012-02-16) |
parents | 524b46066028 |
children | fbd6d5d2a18e |
line source
1 slot.put_into("title", _"Display 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 = "member",
10 view = "settings"
11 }
12 end)
15 util.help("member.settings.display", _"Display settings")
17 ui.form{
18 attr = { class = "vertical" },
19 module = "member",
20 action = "update_display",
21 routing = {
22 ok = {
23 mode = "redirect",
24 module = "index",
25 view = "index"
26 }
27 },
28 content = function()
29 ui.field.select{
30 label = _"Type of tabs",
31 foreign_records = {
32 { id = "tabs", name = _"Tabs" },
33 { id = "accordeon", name = _"Accordion (none expanded)" .. " === " .. _"EXPERIMENTAL FEATURE" .. " ===" },
34 { id = "accordeon_first_expanded", name = _"Accordion (first expanded)" .. " === " .. _"EXPERIMENTAL FEATURE" .. " ===" },
35 { id = "accordeon_all_expanded", name = _"Accordion (all expanded)" }
36 },
37 foreign_id = "id",
38 foreign_name = "name",
39 name = "tab_mode",
40 value = app.session.member:get_setting_value("tab_mode")
41 }
42 ui.field.select{
43 label = _"Number of initiatives to preview",
44 foreign_records = {
45 { id = 3, name = "3" },
46 { id = 4, name = "4" },
47 { id = 5, name = "5" },
48 { id = 6, name = "6" },
49 { id = 7, name = "7" },
50 { id = 8, name = "8" },
51 { id = 9, name = "9" },
52 { id = 10, name = "10" },
53 },
54 foreign_id = "id",
55 foreign_name = "name",
56 name = "initiatives_preview_limit",
57 value = app.session.member:get_setting_value("initiatives_preview_limit")
58 }
59 ui.submit{ value = _"Change display settings" }
60 end
61 }