liquid_feedback_frontend
view 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
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 source
     1 local initiative = Initiative:by_id(param.get_id())
     3 slot.put_into("title", _"Edit initiative")
     5 ui.form{
     6   record = initiative,
     7   module = "initiative",
     8   action = "update",
     9   id = initiative.id,
    10   attr = { class = "vertical" },
    11   routing = {
    12     default = {
    13       mode = "redirect",
    14       module = "initiative",
    15       view = "show",
    16       id = initiative.id
    17     }
    18   },
    19   content = function()
    20     ui.field.text{ label = _"Discussion URL",  name = "discussion_url" }
    21     ui.submit{ text = _"Save" }
    22   end
    23 }
