liquid_feedback_frontend

diff app/main/initiative/edit.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
children 80c215dbf076
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/app/main/initiative/edit.lua	Mon Nov 30 12:00:00 2009 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +local initiative = Initiative:by_id(param.get_id())
     1.5 +
     1.6 +slot.put_into("title", _"Edit initiative")
     1.7 +
     1.8 +ui.form{
     1.9 +  record = initiative,
    1.10 +  module = "initiative",
    1.11 +  action = "update",
    1.12 +  id = initiative.id,
    1.13 +  attr = { class = "vertical" },
    1.14 +  routing = {
    1.15 +    default = {
    1.16 +      mode = "redirect",
    1.17 +      module = "initiative",
    1.18 +      view = "show",
    1.19 +      id = initiative.id
    1.20 +    }
    1.21 +  },
    1.22 +  content = function()
    1.23 +    ui.field.text{ label = _"Discussion URL",  name = "discussion_url" }
    1.24 +    ui.submit{ text = _"Save" }
    1.25 +  end
    1.26 +}
    1.27 \ No newline at end of file

Impressum / About Us