liquid_feedback_frontend

diff app/main/member/settings.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 72c5e0ee7c98
children 0849be391140
line diff
     1.1 --- a/app/main/member/settings.lua	Tue Feb 02 00:31:06 2010 +0100
     1.2 +++ b/app/main/member/settings.lua	Sat Feb 20 22:10:31 2010 +0100
     1.3 @@ -26,6 +26,55 @@
     1.4    end
     1.5  end)
     1.6  
     1.7 +ui.heading{ content = _"Display settings" }
     1.8 +util.help("member.settings.display", _"Display settings")
     1.9 +
    1.10 +ui.form{
    1.11 +  attr = { class = "vertical" },
    1.12 +  module = "member",
    1.13 +  action = "update_display",
    1.14 +  routing = {
    1.15 +    ok = {
    1.16 +      mode = "redirect",
    1.17 +      module = "index",
    1.18 +      view = "index"
    1.19 +    }
    1.20 +  },
    1.21 +  content = function()
    1.22 +    ui.field.select{
    1.23 +      label = _"Type of tabs",
    1.24 +      foreign_records = {
    1.25 +        { id = "tabs",                     name = _"Tabs" },
    1.26 +        { id = "accordeon",                name = _"Accordion (none expanded)" .. " === " .. _"EXPERIMENTAL FEATURE" .. " ===" },
    1.27 +        { id = "accordeon_first_expanded", name = _"Accordion (first expanded)" .. " === " .. _"EXPERIMENTAL FEATURE" .. " ===" },
    1.28 +--        { id = "accordeon_all_expanded",   name = _"Accordion (all expanded)" }
    1.29 +      },
    1.30 +      foreign_id = "id",
    1.31 +      foreign_name = "name",
    1.32 +      name = "tab_mode",
    1.33 +      value = app.session.member:get_setting_value("tab_mode")
    1.34 +    }
    1.35 +    ui.field.select{
    1.36 +      label = _"Number of initiatives to preview",
    1.37 +      foreign_records = {
    1.38 +        { id =  3, name = "3" },
    1.39 +        { id =  4, name = "4" },
    1.40 +        { id =  5, name = "5" },
    1.41 +        { id =  6, name = "6" },
    1.42 +        { id =  7, name = "7" },
    1.43 +        { id =  8, name = "8" },
    1.44 +        { id =  9, name = "9" },
    1.45 +        { id = 10, name = "10" },
    1.46 +      },
    1.47 +      foreign_id = "id",
    1.48 +      foreign_name = "name",
    1.49 +      name = "initiatives_preview_limit",
    1.50 +      value = app.session.member:get_setting_value("initiatives_preview_limit")
    1.51 +    }
    1.52 +    ui.submit{ value = _"Change display settings" }
    1.53 +  end
    1.54 +}
    1.55 +
    1.56  ui.heading{ content = _"Change your name" }
    1.57  util.help("member.settings.name", _"Change name")
    1.58  

Impressum / About Us