liquid_feedback_frontend
view app/main/initiative/_details.lua @ 611:327f24e6799d
Work on wikisyntax help
| author | jbe | 
|---|---|
| date | Sun Jun 24 23:27:22 2012 +0200 (2012-06-24) | 
| 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 } }
