liquid_feedback_frontend
view app/main/initiative/_details.lua @ 355:a34c8c5a4853
Show direct majority in policy listing
| author | bsw | 
|---|---|
| date | Wed Feb 29 20:28:50 2012 +0100 (2012-02-29) | 
| 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 } }
