liquid_feedback_frontend
annotate app/main/member/developer_settings.lua @ 12:60bed92b7434
Version beta8
Bugfix in app/main/member_show.lua related to last fix
Bugfix in app/main/member_show.lua related to last fix
author | bsw |
---|---|
date | Fri Jan 22 12:00:00 2010 +0100 (2010-01-22) |
parents | 72c5e0ee7c98 |
children | 0849be391140 |
rev | line source |
---|---|
bsw@10 | 1 slot.put_into("title", _"Developer features") |
bsw@10 | 2 |
bsw@10 | 3 slot.select("actions", function() |
bsw@10 | 4 ui.link{ |
bsw@10 | 5 content = function() |
bsw@10 | 6 ui.image{ static = "icons/16/cancel.png" } |
bsw@10 | 7 slot.put(_"Cancel") |
bsw@10 | 8 end, |
bsw@10 | 9 module = "member", |
bsw@10 | 10 view = "settings" |
bsw@10 | 11 } |
bsw@10 | 12 end) |
bsw@10 | 13 |
bsw@10 | 14 ui.form{ |
bsw@10 | 15 attr = { class = "vertical" }, |
bsw@10 | 16 module = "member", |
bsw@10 | 17 action = "update_stylesheet_url", |
bsw@10 | 18 routing = { |
bsw@10 | 19 ok = { |
bsw@10 | 20 mode = "redirect", |
bsw@10 | 21 module = "index", |
bsw@10 | 22 view = "index" |
bsw@10 | 23 } |
bsw@10 | 24 }, |
bsw@10 | 25 content = function() |
bsw@10 | 26 local setting_key = "liquidfeedback_frontend_stylesheet_url" |
bsw@10 | 27 local setting = Setting:by_pk(app.session.member.id, setting_key) |
bsw@10 | 28 local value = setting and setting.value |
bsw@10 | 29 ui.field.text{ |
bsw@10 | 30 label = _"Stylesheet URL", |
bsw@10 | 31 name = "stylesheet_url", |
bsw@10 | 32 value = value |
bsw@10 | 33 } |
bsw@10 | 34 ui.submit{ value = _"Set URL" } |
bsw@10 | 35 end |
bsw@10 | 36 } |