liquid_feedback_frontend
diff app/main/member/_profile.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 | 0607056cff72 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/app/main/member/_profile.lua Sat Feb 20 22:10:31 2010 +0100 1.3 @@ -0,0 +1,114 @@ 1.4 +local member = param.get("member", "table") 1.5 + 1.6 +if not member then 1.7 + local member_id = param.get("member_id", atom.integer) 1.8 + if member_id then 1.9 + member = Member:by_id(member_id) 1.10 + end 1.11 +end 1.12 + 1.13 + 1.14 +ui.form{ 1.15 + attr = { class = "member vertical" }, 1.16 + record = member, 1.17 + readonly = true, 1.18 + content = function() 1.19 + 1.20 + ui.container{ 1.21 + attr = { class = "right" }, 1.22 + content = function() 1.23 + 1.24 + execute.view{ 1.25 + module = "member_image", 1.26 + view = "_show", 1.27 + params = { 1.28 + member = member, 1.29 + image_type = "photo" 1.30 + } 1.31 + } 1.32 + 1.33 + ui.container{ 1.34 + attr = { class = "contact_data" }, 1.35 + content = function() 1.36 + end 1.37 + } 1.38 + 1.39 + end 1.40 + } 1.41 + 1.42 + if member.admin then 1.43 + ui.field.boolean{ label = _"Admin?", name = "admin" } 1.44 + end 1.45 + if member.locked then 1.46 + ui.field.boolean{ label = _"Locked?", name = "locked" } 1.47 + end 1.48 + if member.ident_number then 1.49 + ui.field.text{ label = _"Ident number", name = "ident_number" } 1.50 + end 1.51 + ui.field.text{ label = _"Name", name = "name" } 1.52 + 1.53 + if member.realname and #member.realname > 0 then 1.54 + ui.field.text{ label = _"Real name", name = "realname" } 1.55 + end 1.56 + if member.email and #member.email > 0 then 1.57 + ui.field.text{ label = _"email", name = "email" } 1.58 + end 1.59 + if member.xmpp_address and #member.xmpp_address > 0 then 1.60 + ui.field.text{ label = _"xmpp", name = "xmpp_address" } 1.61 + end 1.62 + if member.website and #member.website > 0 then 1.63 + ui.field.text{ label = _"Website", name = "website" } 1.64 + end 1.65 + if member.phone and #member.phone > 0 then 1.66 + ui.field.text{ label = _"Phone", name = "phone" } 1.67 + end 1.68 + if member.mobile_phone and #member.mobile_phone > 0 then 1.69 + ui.field.text{ label = _"Mobile phone", name = "mobile_phone" } 1.70 + end 1.71 + if member.address and #member.address > 0 then 1.72 + ui.container{ 1.73 + content = function() 1.74 + ui.tag{ 1.75 + tag = "label", 1.76 + attr = { class = "ui_field_label" }, 1.77 + content = _"Address" 1.78 + } 1.79 + ui.tag{ 1.80 + tag = "span", 1.81 + content = function() 1.82 + slot.put(encode.html_newlines(encode.html(member.address))) 1.83 + end 1.84 + } 1.85 + end 1.86 + } 1.87 + end 1.88 + if member.profession and #member.profession > 0 then 1.89 + ui.field.text{ label = _"Profession", name = "profession" } 1.90 + end 1.91 + if member.birthday and #member.birthday > 0 then 1.92 + ui.field.text{ label = _"Birthday", name = "birthday" } 1.93 + end 1.94 + if member.organizational_unit and #member.organizational_unit > 0 then 1.95 + ui.field.text{ label = _"Organizational unit", name = "organizational_unit" } 1.96 + end 1.97 + if member.internal_posts and #member.internal_posts > 0 then 1.98 + ui.field.text{ label = _"Internal posts", name = "internal_posts" } 1.99 + end 1.100 + if member.external_memberships and #member.external_memberships > 0 then 1.101 + ui.field.text{ label = _"Memberships", name = "external_memberships", multiline = true } 1.102 + end 1.103 + if member.external_posts and #member.external_posts > 0 then 1.104 + ui.field.text{ label = _"Posts", name = "external_posts", multiline = true } 1.105 + end 1.106 + slot.put('<br style="clear: right;" />') 1.107 + 1.108 + end 1.109 +} 1.110 +if member.statement and #member.statement > 0 then 1.111 + ui.container{ 1.112 + attr = { class = "member_statement wiki" }, 1.113 + content = function() 1.114 + slot.put(format.wiki_text(member.statement)) 1.115 + end 1.116 + } 1.117 +end