liquid_feedback_frontend
view app/main/initiative/_details.lua @ 286:c587d8762e62
Registration process updated for Core 2.0, lockable member fields, notification settings
author | bsw |
---|---|
date | Sat Feb 25 11:51:37 2012 +0100 (2012-02-25) |
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 } }