liquid_feedback_frontend
annotate 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 |
rev | line source |
---|---|
bsw/jbe@19 | 1 local initiative = param.get("initiative", "table") |
bsw/jbe@19 | 2 |
bsw@274 | 3 ui.container{ content = _"Initiative details" } |
bsw@274 | 4 |
bsw/jbe@19 | 5 ui.form{ |
bsw/jbe@19 | 6 attr = { class = "vertical" }, |
bsw/jbe@19 | 7 record = initiative, |
bsw/jbe@19 | 8 readonly = true, |
bsw/jbe@19 | 9 content = function() |
bsw/jbe@19 | 10 ui.field.text{ |
bsw/jbe@19 | 11 label = _"Created at", |
bsw/jbe@19 | 12 value = tostring(initiative.created) |
bsw/jbe@19 | 13 } |
poelzi@159 | 14 if initiative.revoked then |
poelzi@159 | 15 ui.field.text{ |
poelzi@159 | 16 label = _"Revoked at", |
poelzi@159 | 17 value = format.timestamp(initiative.revoked) |
poelzi@159 | 18 } |
poelzi@159 | 19 end |
bsw/jbe@19 | 20 ui.field.boolean{ label = _"Admitted", name = "admitted" } |
bsw/jbe@19 | 21 end |
bsw/jbe@19 | 22 } |
bsw@274 | 23 |
bsw@274 | 24 ui.container{ content = _"Issue details" } |
bsw@274 | 25 |
bsw@274 | 26 execute.view{ module = "issue", view = "_details", params = { issue = initiative.issue } } |