liquid_feedback_frontend

annotate 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
author bsw
date Mon Nov 30 12:00:00 2009 +0100 (2009-11-30)
parents 5c601807d397
children 80c215dbf076
rev   line source
bsw/jbe@0 1 slot.put_into("title", _"Add new draft")
bsw/jbe@0 2
bsw@2 3 local initiative = Initiative:by_id(param.get("initiative_id"))
bsw/jbe@0 4
bsw/jbe@0 5 ui.form{
bsw@2 6 record = initiative.current_draft,
bsw/jbe@0 7 attr = { class = "vertical" },
bsw/jbe@0 8 module = "draft",
bsw/jbe@0 9 action = "add",
bsw@2 10 params = { initiative_id = initiative.id },
bsw/jbe@0 11 routing = {
bsw/jbe@0 12 default = {
bsw/jbe@0 13 mode = "redirect",
bsw/jbe@0 14 module = "initiative",
bsw/jbe@0 15 view = "show",
bsw@2 16 id = initiative.id
bsw/jbe@0 17 }
bsw/jbe@0 18 },
bsw/jbe@0 19 content = function()
bsw/jbe@0 20
bsw/jbe@0 21 ui.field.text{ label = _"Author", value = app.session.member.name, readonly = true }
bsw@2 22 ui.field.text{
bsw@2 23 label = _"Content",
bsw@2 24 name = "content",
bsw@2 25 multiline = true,
bsw@2 26 attr = { style = "height: 50ex;" }
bsw@2 27 }
bsw/jbe@0 28
bsw/jbe@0 29 ui.submit{ text = _"Save" }
bsw/jbe@0 30 end
bsw/jbe@0 31 }

Impressum / About Us