liquid_feedback_frontend

diff app/main/suggestion/show.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
author bsw/jbe
date Sat Feb 20 22:10:31 2010 +0100 (2010-02-20)
parents 8d91bccab0bf
children 7d0f4721d2f3
line diff
     1.1 --- a/app/main/suggestion/show.lua	Tue Feb 02 00:31:06 2010 +0100
     1.2 +++ b/app/main/suggestion/show.lua	Sat Feb 20 22:10:31 2010 +0100
     1.3 @@ -11,34 +11,14 @@
     1.4      module = "initiative",
     1.5      view = "show",
     1.6      id = suggestion.initiative.id,
     1.7 -    params = { tab = "suggestion" }
     1.8 +    params = { tab = "suggestions" }
     1.9    }
    1.10  end)
    1.11  
    1.12 -ui.form{
    1.13 -  attr = { class = "vertical" },
    1.14 -  record = suggestion,
    1.15 -  readonly = true,
    1.16 -  content = function()
    1.17 -    ui.field.text{ label = _"Name",        name = "name" }
    1.18 -    ui.field.text{ label = _"Description", name = "description" }
    1.19 -  end
    1.20 -}
    1.21 -
    1.22  execute.view{
    1.23    module = "suggestion",
    1.24 -  view = "_list",
    1.25 -  params = { suggestions_selector = Suggestion:new_selector():add_where{ "id = ?", suggestion.id } }
    1.26 -}
    1.27 -
    1.28 -execute.view{
    1.29 -  module = "opinion",
    1.30 -  view = "_list",
    1.31 -  params = { 
    1.32 -    opinions_selector = Opinion:new_selector()
    1.33 -      :add_field("member.name", "member_name")
    1.34 -      :add_where{ "suggestion_id = ?", suggestion.id }
    1.35 -      :join("member", nil, "member.id = opinion.member_id")
    1.36 -      :add_order_by("member.id DESC")
    1.37 +  view = "show_tab",
    1.38 +  params = {
    1.39 +    suggestion = suggestion
    1.40    }
    1.41 -}
    1.42 +}
    1.43 \ No newline at end of file

Impressum / About Us