liquid_feedback_frontend

view app/main/suggestion/_suggestion.lua @ 142:44ba79952610

redirect to initiative if suggestion got deleted when changing to neutral

fixes bug #240
author Daniel Poelzleithner <poelzi@poelzi.org>
date Wed Oct 06 16:18:54 2010 +0200 (2010-10-06)
parents 20e0b64cc1f9
children 105abd1d4996
line source
1 local suggestion = param.get("suggestion", "table")
3 ui.form{
4 attr = { class = "vertical" },
5 record = suggestion,
6 readonly = true,
7 content = function()
8 if suggestion.author then
9 suggestion.author:ui_field_text{label=_"Author"}
10 end
11 ui.field.text{ label = _"Title", name = "name" }
12 ui.container{
13 attr = { class = "suggestion_content wiki" },
14 content = function()
15 ui.tag{
16 tag = "pre",
17 content = suggestion.description
18 }
19 end
20 }
21 end
22 }
23 execute.view{
24 module = "suggestion",
25 view = "_list",
26 params = {
27 suggestions_selector = Suggestion:new_selector():add_where{ "id = ?", suggestion.id },
28 initiative = suggestion.initiative,
29 show_name = false,
30 show_filter = false
31 }
32 }

Impressum / About Us