liquid_feedback_frontend
annotate app/main/initiative/_details.lua @ 700:a2d907f12dd8
Optical improvements
| author | bsw | 
|---|---|
| date | Tue Jun 26 19:40:29 2012 +0200 (2012-06-26) | 
| 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 } } |