1 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" |
---|
2 | lang="en" |
---|
3 | metal:use-macro="here/main_template/macros/master" |
---|
4 | i18n:domain="plone"> |
---|
5 | |
---|
6 | <metal:block fill-slot="base"> |
---|
7 | <tal:block tal:define="dummy python:request.set('disable_border', 1)" |
---|
8 | tal:replace="nothing"> |
---|
9 | Disable the tabs |
---|
10 | </tal:block> |
---|
11 | </metal:block> |
---|
12 | |
---|
13 | <body> |
---|
14 | |
---|
15 | <div metal:fill-slot="main" |
---|
16 | tal:define="is_manager python:test(here.portal_membership.checkPermission('Manage portal', here), 1, 0);"> |
---|
17 | |
---|
18 | <div |
---|
19 | tal:define="results python:here.portal_membership.searchForMembers(request)"> |
---|
20 | |
---|
21 | <h1 i18n:translate="member_list">WAeUP Member List</h1> |
---|
22 | |
---|
23 | <div tal:condition="results"> |
---|
24 | |
---|
25 | <table align="left" width=100%> |
---|
26 | |
---|
27 | <tbody> |
---|
28 | |
---|
29 | <tal:repeat tal:define="Groups python:(('Nigeria','Nigerian Group'), ('Germany','German Group'), ('Ghana','Ghanaian Group'), ('USA','US American Group'))" |
---|
30 | tal:repeat="Group Groups"> |
---|
31 | |
---|
32 | <tr><td colspan="5"> |
---|
33 | <h2 style="padding-top: 0.5em" tal:content="python:Group[1]" /> |
---|
34 | </td></tr> |
---|
35 | |
---|
36 | |
---|
37 | <tal:block tal:repeat="result results"> |
---|
38 | <tr tal:define="id result/getUserName; |
---|
39 | author python:mtool.getMemberInfo(id); |
---|
40 | portrait python: mtool.getPersonalPortrait(id); |
---|
41 | home_base python:container.portal_membership.getHomeUrl(id, verifyPermission=1)" |
---|
42 | tal:condition="python:Group[0] in result.getGroupNames() and not id.endswith('1')"> |
---|
43 | |
---|
44 | <td> |
---|
45 | <a href="#" tal:attributes="href portrait/absolute_url"> |
---|
46 | <img src="" alt="" class="portraitPhoto" width="25" height="33" |
---|
47 | style="float: left; margin: 0em;" |
---|
48 | tal:attributes="src portrait/absolute_url" /> |
---|
49 | </a> |
---|
50 | </td> |
---|
51 | |
---|
52 | |
---|
53 | <td> |
---|
54 | <span tal:condition="python: is_manager and home_base"> |
---|
55 | <a href="#" tal:attributes="href string:${portal_url}/portal_memberdata/prefs_user_details?userid=${id}"> |
---|
56 | <span tal:content="id">id</span> |
---|
57 | </a> |
---|
58 | </span> |
---|
59 | <span tal:condition="python: is_manager and not home_base"> |
---|
60 | <span tal:content="id">id</span> |
---|
61 | </span> |
---|
62 | </td> |
---|
63 | |
---|
64 | <td> |
---|
65 | <span tal:condition="python: author['fullname']"> |
---|
66 | <a href="#" tal:attributes="href string:${portal_url}/author/${id}"> |
---|
67 | <span tal:content="python: author['fullname']">name</span> |
---|
68 | </a> |
---|
69 | </span> |
---|
70 | <span tal:condition="python: not author['fullname']"> |
---|
71 | XXXXX |
---|
72 | </span> |
---|
73 | </td> |
---|
74 | |
---|
75 | <td> |
---|
76 | <span tal:content="author/location|nothing" >Location</span> |
---|
77 | </td> |
---|
78 | |
---|
79 | <td> |
---|
80 | <span tal:condition="result/email" tal:content="structure python: result.spamProtect(result.email)" /> |
---|
81 | </td> |
---|
82 | |
---|
83 | <td> |
---|
84 | <span tal:condition="python: id == member.id and not is_manager"> |
---|
85 | <a href="#" tal:attributes="href string:${portal_url}/personalize_form"> |
---|
86 | Personal Preferences |
---|
87 | </a> |
---|
88 | </span> |
---|
89 | </td> |
---|
90 | |
---|
91 | </tr> |
---|
92 | |
---|
93 | </tal:block> |
---|
94 | |
---|
95 | </tal:repeat> |
---|
96 | </tbody> |
---|
97 | </table> |
---|
98 | |
---|
99 | </div> |
---|
100 | |
---|
101 | <div tal:condition="not: results"> |
---|
102 | <p><strong i18n:translate="description_no_results_found">No results were found.</strong></p> |
---|
103 | </div> |
---|
104 | |
---|
105 | </div> |
---|
106 | |
---|
107 | </div> |
---|
108 | </body> |
---|
109 | </html> |
---|