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 | Batch python:modules['Products.CMFPlone'].Batch; |
---|
21 | DateTime python:modules['DateTime'].DateTime; |
---|
22 | default_page_size python:1000; |
---|
23 | page_size default_page_size;page_size request/psize | page_size; |
---|
24 | b_size page_size; b_start python:0;b_start request/b_start | b_start;"> |
---|
25 | |
---|
26 | <h1 i18n:translate="member_list">WAeUP Member List</h1> |
---|
27 | |
---|
28 | <div tal:condition="results" |
---|
29 | tal:define="batch python:Batch(results, b_size, int(b_start), orphan=1)"> |
---|
30 | |
---|
31 | <br/> |
---|
32 | |
---|
33 | <table align='left' width=100%> |
---|
34 | <tbody> |
---|
35 | |
---|
36 | <metal:block tal:repeat="result batch"> |
---|
37 | |
---|
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 | |
---|
43 | <td> |
---|
44 | <a href="#" tal:attributes="href portrait/absolute_url"> |
---|
45 | <img src="" |
---|
46 | alt="" |
---|
47 | class="portraitPhoto" |
---|
48 | width="25" |
---|
49 | height="33" |
---|
50 | style="float: left; margin: 0em;" |
---|
51 | tal:attributes="src portrait/absolute_url" /> |
---|
52 | </a> |
---|
53 | </td> |
---|
54 | |
---|
55 | |
---|
56 | <td> |
---|
57 | <span tal:condition="python: is_manager and home_base"> |
---|
58 | <a href="#" tal:attributes="href string:${portal_url}/portal_memberdata/prefs_user_details?userid=${id}"> |
---|
59 | <span tal:content="id">id</span> |
---|
60 | </a> |
---|
61 | </span> |
---|
62 | <span tal:condition="python: is_manager and not home_base"> |
---|
63 | <span tal:content="id">id</span> |
---|
64 | </span> |
---|
65 | </td> |
---|
66 | |
---|
67 | <td> |
---|
68 | <span tal:condition="python: author['fullname']"> |
---|
69 | <a href="#" tal:attributes="href string:${portal_url}/author/${id}"> |
---|
70 | <span tal:content="python: author['fullname']">name</span> |
---|
71 | </a> |
---|
72 | </span> |
---|
73 | <span tal:condition="python: not author['fullname']"> |
---|
74 | XXXXX |
---|
75 | </span> |
---|
76 | </td> |
---|
77 | |
---|
78 | <td> |
---|
79 | |
---|
80 | <span tal:condition="python: author['location']"> |
---|
81 | <span tal:content="python: author['location']" /> |
---|
82 | </span> |
---|
83 | |
---|
84 | </td> |
---|
85 | |
---|
86 | <td> |
---|
87 | <span tal:condition="result/email" tal:content="structure python: result.spamProtect(result.email)" /> |
---|
88 | </td> |
---|
89 | |
---|
90 | </tr> |
---|
91 | |
---|
92 | </metal:block> |
---|
93 | |
---|
94 | </tbody> |
---|
95 | </table> |
---|
96 | |
---|
97 | <br/> |
---|
98 | |
---|
99 | <!-- Navigation --> |
---|
100 | <div metal:use-macro="here/batch_macros/macros/navigation" /> |
---|
101 | |
---|
102 | </div> |
---|
103 | |
---|
104 | <div tal:condition="not: results"> |
---|
105 | <p><strong i18n:translate="description_no_results_found">No results were found.</strong></p> |
---|
106 | </div> |
---|
107 | |
---|
108 | </div> |
---|
109 | |
---|
110 | </div> |
---|
111 | </body> |
---|
112 | </html> |
---|