liquid_feedback_frontend
view app/main/initiative/_details.lua @ 281:b77e6a17ca77
Check unit voting right where neccessary, hide action buttons for units without voting right
author | bsw |
---|---|
date | Thu Feb 16 15:01:49 2012 +0100 (2012-02-16) |
parents | aec9df5b4cd3 |
children | cc64a4fc6ab6 |
line source
1 local initiative = param.get("initiative", "table")
3 ui.container{ content = _"Initiative details" }
5 ui.form{
6 attr = { class = "vertical" },
7 record = initiative,
8 readonly = true,
9 content = function()
10 ui.field.text{
11 label = _"Created at",
12 value = tostring(initiative.created)
13 }
14 if initiative.revoked then
15 ui.field.text{
16 label = _"Revoked at",
17 value = format.timestamp(initiative.revoked)
18 }
19 end
20 ui.field.boolean{ label = _"Admitted", name = "admitted" }
21 end
22 }
24 ui.container{ content = _"Issue details" }
26 execute.view{ module = "issue", view = "_details", params = { issue = initiative.issue } }