bsw/jbe@0: slot.put_into("title", _"Add new draft") bsw/jbe@0: bsw/jbe@0: local initiative_id = param.get("initiative_id") bsw/jbe@0: bsw/jbe@0: ui.form{ bsw/jbe@0: attr = { class = "vertical" }, bsw/jbe@0: module = "draft", bsw/jbe@0: action = "add", bsw/jbe@0: params = { initiative_id = initiative_id }, bsw/jbe@0: routing = { bsw/jbe@0: default = { bsw/jbe@0: mode = "redirect", bsw/jbe@0: module = "initiative", bsw/jbe@0: view = "show", bsw/jbe@0: id = initiative_id bsw/jbe@0: } bsw/jbe@0: }, bsw/jbe@0: content = function() bsw/jbe@0: bsw/jbe@0: ui.field.text{ label = _"Author", value = app.session.member.name, readonly = true } bsw/jbe@0: ui.field.text{ label = _"Content", name = "content", multiline = true } bsw/jbe@0: bsw/jbe@0: ui.submit{ text = _"Save" } bsw/jbe@0: end bsw/jbe@0: }