liquid_feedback_frontend

view app/main/suggestion/show.lua @ 7:3941792e8be6

Version beta3

Table allowed_policy is respected while creating new issues

Broken vote now/later link is not shown anymore (until it's implemented)

More user friendly error page

Minor spelling error corrected
author bsw
date Sat Jan 02 12:00:00 2010 +0100 (2010-01-02)
parents 8d91bccab0bf
children 00d1004545f1
line source
1 local suggestion = Suggestion:by_id(param.get_id())
3 slot.put_into("title", encode.html(_"Suggestion for initiative: '#{name}'":gsub("#{name}", suggestion.initiative.name) ))
5 slot.select("actions", function()
6 ui.link{
7 content = function()
8 ui.image{ static = "icons/16/resultset_previous.png" }
9 slot.put(_"Back")
10 end,
11 module = "initiative",
12 view = "show",
13 id = suggestion.initiative.id,
14 params = { tab = "suggestion" }
15 }
16 end)
18 ui.form{
19 attr = { class = "vertical" },
20 record = suggestion,
21 readonly = true,
22 content = function()
23 ui.field.text{ label = _"Name", name = "name" }
24 ui.field.text{ label = _"Description", name = "description" }
25 end
26 }
28 execute.view{
29 module = "suggestion",
30 view = "_list",
31 params = { suggestions_selector = Suggestion:new_selector():add_where{ "id = ?", suggestion.id } }
32 }
34 execute.view{
35 module = "opinion",
36 view = "_list",
37 params = {
38 opinions_selector = Opinion:new_selector()
39 :add_field("member.name", "member_name")
40 :add_where{ "suggestion_id = ?", suggestion.id }
41 :join("member", nil, "member.id = opinion.member_id")
42 :add_order_by("member.id DESC")
43 }
44 }

Impressum / About Us