bsw/jbe@19: local initiative = param.get("initiative", "table") bsw/jbe@19: bsw/jbe@19: ui.form{ bsw/jbe@19: attr = { class = "vertical" }, bsw/jbe@19: record = initiative, bsw/jbe@19: readonly = true, bsw/jbe@19: content = function() bsw/jbe@19: ui.field.text{ label = _"Issue policy", value = initiative.issue.policy.name } bsw/jbe@19: ui.field.text{ bsw/jbe@19: label = _"Created at", bsw/jbe@19: value = tostring(initiative.created) bsw/jbe@19: } bsw/jbe@19: ui.field.text{ bsw/jbe@19: label = _"Created at", bsw/jbe@19: value = format.timestamp(initiative.created) bsw/jbe@19: } bsw/jbe@19: -- ui.field.date{ label = _"Revoked at", name = "revoked" } bsw/jbe@19: ui.field.boolean{ label = _"Admitted", name = "admitted" } bsw/jbe@19: end bsw/jbe@19: }