liquid_feedback_frontend
view app/main/suggestion/_suggestion.lua @ 1038:4ea14823ffad
Added missing field admin_notice to group by clause
| author | bsw | 
|---|---|
| date | Wed Aug 14 20:37:49 2013 +0200 (2013-08-14) | 
| 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 }
