liquid_feedback_frontend
view app/main/initiative/_initiators.lua @ 19:00d1004545f1
Dynamic interface using XMLHttpRequests, and many other changes
Bugfixes:
- Only allow voting on admitted initiatives
- Repaired issue search
- Don't display delegations for closed issues on member page
- Don't show revoke link in initiative, when issue is already half_frozen
- Localization for voting JavaScript
- Display author of suggestions
Disclosure of voting data after voting is finished:
- Possibility to inspect every ballot including preferences
- Show number of voters preferring one initiative to another initiative
Interface behaviour changes:
- Reversed default order of drafts
- Default order of suggestions changed
- Show new drafts of initiatives only once per day in timeline
Accessibility:
- Barrier-free voting implemented
- POST links are now accessible without JavaScript
- Changed gray for unsatisfied supporters in bar graph to a lighter gray
Other interface improvements:
- Optical enhancements
- Dynamic interface using XMLHttpRequests
- Show usage terms in about section
- Show own membership in area listing
- Show uninformed supporters greyed out and marked with yellow question mark
- Warning box in non-admitted initiatives
- When voted, don't display voting notice and change label of voting link
- Show object counts in more tabulator heads
- Enlarged member statement input field
Miscellaneous:
- Code cleanup
- Added README file containing installation instructions
- Use new WebMCP function ui.filters{...} instead of own ui.filter and ui.order functions
Bugfixes:
- Only allow voting on admitted initiatives
- Repaired issue search
- Don't display delegations for closed issues on member page
- Don't show revoke link in initiative, when issue is already half_frozen
- Localization for voting JavaScript
- Display author of suggestions
Disclosure of voting data after voting is finished:
- Possibility to inspect every ballot including preferences
- Show number of voters preferring one initiative to another initiative
Interface behaviour changes:
- Reversed default order of drafts
- Default order of suggestions changed
- Show new drafts of initiatives only once per day in timeline
Accessibility:
- Barrier-free voting implemented
- POST links are now accessible without JavaScript
- Changed gray for unsatisfied supporters in bar graph to a lighter gray
Other interface improvements:
- Optical enhancements
- Dynamic interface using XMLHttpRequests
- Show usage terms in about section
- Show own membership in area listing
- Show uninformed supporters greyed out and marked with yellow question mark
- Warning box in non-admitted initiatives
- When voted, don't display voting notice and change label of voting link
- Show object counts in more tabulator heads
- Enlarged member statement input field
Miscellaneous:
- Code cleanup
- Added README file containing installation instructions
- Use new WebMCP function ui.filters{...} instead of own ui.filter and ui.order functions
| author | bsw/jbe | 
|---|---|
| date | Sat Feb 20 22:10:31 2010 +0100 (2010-02-20) | 
| parents | |
| children | 
 line source
     1 local initiative = param.get("initiative", "table")
     2 local initiator = param.get("initiator", "table")
     3 local initiators_members_selector = param.get("initiators_members_selector", "table")
     5 local initiator_count = initiators_members_selector:count()
     7 if initiator and initiator.accepted and not initiative.issue.fully_frozen and not initiative.issue.closed and not initiative.revoked then
     8   ui.link{
     9     attr = { class = "action" },
    10     content = function()
    11       ui.image{ static = "icons/16/user_add.png" }
    12       slot.put(_"Invite initiator")
    13     end,
    14     module = "initiative",
    15     view = "add_initiator",
    16     params = { initiative_id = initiative.id }
    17   }
    18   if initiator_count > 1 then
    19     ui.link{
    20       content = function()
    21         ui.image{ static = "icons/16/user_delete.png" }
    22         slot.put(_"Remove initiator")
    23       end,
    24       module = "initiative",
    25       view = "remove_initiator",
    26       params = { initiative_id = initiative.id }
    27     }
    28   end
    29 end
    30 if initiator and initiator.accepted == false then
    31     ui.link{
    32       image  = { static = "icons/16/user_delete.png" },
    33       text   = _"Cancel refuse of invitation",
    34       module = "initiative",
    35       action = "remove_initiator",
    36       params = {
    37         initiative_id = initiative.id,
    38         member_id = app.session.member.id
    39       },
    40       routing = {
    41         ok = {
    42           mode = "redirect",
    43           module = "initiative",
    44           view = "show",
    45           id = initiative.id
    46         }
    47       }
    48     }
    49 end
    51 execute.view{
    52   module = "member",
    53   view = "_list",
    54   params = {
    55     members_selector = initiators_members_selector,
    56     initiator = initiator
    57   }
    58 }
