liquid_feedback_frontend
view app/main/draft/new.lua @ 3:768faea1096d
Version alpha4
Members interested in an issue or supporting an initiative have a weight information attached. Browsing the members causing that weight is possible.
Initiatives may provide a link to an external discussion platform
Direct link on every initiative page to create an alternative initiative
Bugfix: No error when clicking "neutral", when "neutral" is currently selected
Members interested in an issue or supporting an initiative have a weight information attached. Browsing the members causing that weight is possible.
Initiatives may provide a link to an external discussion platform
Direct link on every initiative page to create an alternative initiative
Bugfix: No error when clicking "neutral", when "neutral" is currently selected
| author | bsw |
|---|---|
| date | Mon Nov 30 12:00:00 2009 +0100 (2009-11-30) |
| parents | 5c601807d397 |
| children | 80c215dbf076 |
line source
1 slot.put_into("title", _"Add new draft")
3 local initiative = Initiative:by_id(param.get("initiative_id"))
5 ui.form{
6 record = initiative.current_draft,
7 attr = { class = "vertical" },
8 module = "draft",
9 action = "add",
10 params = { initiative_id = initiative.id },
11 routing = {
12 default = {
13 mode = "redirect",
14 module = "initiative",
15 view = "show",
16 id = initiative.id
17 }
18 },
19 content = function()
21 ui.field.text{ label = _"Author", value = app.session.member.name, readonly = true }
22 ui.field.text{
23 label = _"Content",
24 name = "content",
25 multiline = true,
26 attr = { style = "height: 50ex;" }
27 }
29 ui.submit{ text = _"Save" }
30 end
31 }
