liquid_feedback_frontend
view app/main/member/settings_display.lua @ 118:93f4e465b50d
add initiator support in delegation
if a delegation is issued from the initiative view, the initiators
from that one are added to the delegation target list. this makes it easier to delegate to the author without the need to add him to the contact list.
if a delegation is issued from the initiative view, the initiators
from that one are added to the delegation target list. this makes it easier to delegate to the author without the need to add him to the contact list.
author | Daniel Poelzleithner <poelzi@poelzi.org> |
---|---|
date | Mon Sep 20 20:32:04 2010 +0200 (2010-09-20) |
parents | 733f65c0c0a0 |
children | 524b46066028 |
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 }