liquid_feedback_frontend
view app/main/member/settings_display.lua @ 434:5a4f5cc161d7
Put admin button to footer
author | bsw |
---|---|
date | Sun Mar 11 09:14:19 2012 +0100 (2012-03-11) |
parents | fbd6d5d2a18e |
children | 418b590fa9ed |
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 = _"Number of initiatives to preview",
31 foreign_records = {
32 { id = 3, name = "3" },
33 { id = 4, name = "4" },
34 { id = 5, name = "5" },
35 { id = 6, name = "6" },
36 { id = 7, name = "7" },
37 { id = 8, name = "8" },
38 { id = 9, name = "9" },
39 { id = 10, name = "10" },
40 },
41 foreign_id = "id",
42 foreign_name = "name",
43 name = "initiatives_preview_limit",
44 value = app.session.member:get_setting_value("initiatives_preview_limit")
45 }
46 ui.submit{ value = _"Change display settings" }
47 end
48 }