bsw/jbe@0: local draft = param.get("draft", "table") bsw/jbe@0: bsw/jbe@0: ui.form{ bsw/jbe@0: attr = { class = "vertical" }, bsw/jbe@0: record = draft, bsw/jbe@0: readonly = true, bsw/jbe@0: content = function() bsw/jbe@0: bsw/jbe@0: ui.field.text{ label = _"Author", name = "author_name" } bsw@2: ui.field.timestamp{ label = _"Created at", name = "created" } bsw@2: ui.container{ bsw/jbe@4: attr = { class = "draft_content wiki" }, bsw@2: content = function() bsw/jbe@4: slot.put(format.wiki_text(draft.content, draft.formatting_engine)) bsw@2: end bsw@2: } bsw/jbe@0: end bsw/jbe@0: }