liquid_feedback_frontend
view app/main/suggestion/_suggestion.lua @ 971:a8c6e80cdf5d
Fixed showing of wrong issue cancelled information
| author | bsw | 
|---|---|
| date | Sat Mar 09 19:13:55 2013 +0100 (2013-03-09) | 
| parents | cc64a4fc6ab6 | 
| children | 
 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         slot.put(suggestion:get_content("html"))
    16       end
    17     }
    18   end
    19 }
    20 execute.view{
    21   module = "suggestion",
    22   view = "_list_element",
    23   params = {
    24     suggestions_selector = Suggestion:new_selector():add_where{ "id = ?", suggestion.id },
    25     initiative = suggestion.initiative,
    26     show_name = false,
    27     show_filter = false
    28   }
    29 }
