liquid_feedback_frontend
view app/main/draft/new.lua @ 0:3bfb2fcf7ab9
Version alpha1
author | bsw/jbe |
---|---|
date | Wed Nov 18 12:00:00 2009 +0100 (2009-11-18) |
parents | |
children | 5c601807d397 |
line source
1 slot.put_into("title", _"Add new draft")
3 local initiative_id = param.get("initiative_id")
5 ui.form{
6 attr = { class = "vertical" },
7 module = "draft",
8 action = "add",
9 params = { initiative_id = initiative_id },
10 routing = {
11 default = {
12 mode = "redirect",
13 module = "initiative",
14 view = "show",
15 id = initiative_id
16 }
17 },
18 content = function()
20 ui.field.text{ label = _"Author", value = app.session.member.name, readonly = true }
21 ui.field.text{ label = _"Content", name = "content", multiline = true }
23 ui.submit{ text = _"Save" }
24 end
25 }