liquid_feedback_frontend

diff app/main/initiative/remove_initiator.lua @ 10:72c5e0ee7c98

Version beta6

Bugfixes:
- Security fix: Every user was able to change the discussion URL of an initiative
- Creation of new issues in areas without default policies is now possible
- Members can now be sorted in different ways
- No error when trying to compare a draft with itself
- Added missing local statement to variable initialization in app/main/delegation/new.lua
- CSS flaw in initiative action bar fixed

New features:
- Possiblity to invite other users to become initiator
- Revokation of initiatives implemented
- Number of suggestions, supporters, etc. is shown on corresponding tabs of initiative view
- Members can now be sorted by account creation (default sorting is "newest first")
- Configuration option to create an automatic discussion link for all issues
- First draft of global timeline feature (not accessible via link yet)
- Custom stylesheet URL for users marked as developers

In area listing the number of closed issues is shown too

Renamed "author" field of initiative to "last author"

Removed wrongly included file app/main/member/_show_thumb.lua.orig in the distribution

Help texts updated
author bsw
date Sun Jan 10 12:00:00 2010 +0100 (2010-01-10)
parents
children 701a5cf6b067
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/app/main/initiative/remove_initiator.lua	Sun Jan 10 12:00:00 2010 +0100
     1.3 @@ -0,0 +1,65 @@
     1.4 +local initiative = Initiative:by_id(param.get("initiative_id"))
     1.5 +
     1.6 +local initiator = Initiator:by_pk(initiative.id, app.session.member.id)
     1.7 +if not initiator or initiator.accepted ~= true then
     1.8 +  error("access denied")
     1.9 +end
    1.10 +
    1.11 +slot.put_into("title", _"Remove initiator from initiative")
    1.12 +
    1.13 +slot.select("actions", function()
    1.14 +  ui.link{
    1.15 +    content = function()
    1.16 +        ui.image{ static = "icons/16/cancel.png" }
    1.17 +        slot.put(_"Cancel")
    1.18 +    end,
    1.19 +    module = "initiative",
    1.20 +    view = "show",
    1.21 +    id = initiative.id,
    1.22 +    params = {
    1.23 +      tab = "initiators"
    1.24 +    }
    1.25 +  }
    1.26 +end)
    1.27 +
    1.28 +util.help("initiative.remove_initiator", _"Remove initiator from initiative")
    1.29 +
    1.30 +ui.form{
    1.31 +  attr = { class = "vertical" },
    1.32 +  module = "initiative",
    1.33 +  action = "remove_initiator",
    1.34 +  params = {
    1.35 +    initiative_id = initiative.id,
    1.36 +  },
    1.37 +  routing = {
    1.38 +    ok = {
    1.39 +      mode = "redirect",
    1.40 +      module = "initiative",
    1.41 +      view = "show",
    1.42 +      id = initiative.id,
    1.43 +      params = {
    1.44 +        tab = "initiators",
    1.45 +      }
    1.46 +    }
    1.47 +  },
    1.48 +  content = function()
    1.49 +    local records = {
    1.50 +      {
    1.51 +        id = "-1",
    1.52 +        name = _"Choose initiator"
    1.53 +      }
    1.54 +    }
    1.55 +    local members = initiative:get_reference_selector("initiating_members"):add_where("accepted OR accepted ISNULL"):exec()
    1.56 +    for i, record in ipairs(members) do
    1.57 +      records[#records+1] = record
    1.58 +    end
    1.59 +    ui.field.select{
    1.60 +      label = _"Member",
    1.61 +      name = "member_id",
    1.62 +      foreign_records = records,
    1.63 +      foreign_id = "id",
    1.64 +      foreign_name = "name"
    1.65 +    }
    1.66 +    ui.submit{ text = _"Save" }
    1.67 +  end
    1.68 +}
    1.69 \ No newline at end of file

Impressum / About Us