1 <!-- dollarId: user.index,v 1.3 2002/07/09 05:29:51 richard Exp dollar-->
2 <tal:block metal:use-macro="templates/page/macros/icing">
3 <title metal:fill-slot="head_title" i18n:translate="">User listing - <span
4 i18n:name="tracker" tal:replace="config/TRACKER_NAME" /></title>
5 <span metal:fill-slot="body_title" tal:omit-tag="python:1"
6 i18n:translate="">User listing</span>
7 <td class="content" metal:fill-slot="content">
9 <span tal:condition="python:not (context.is_view_ok()
10 or request.user.hasRole('Anonymous'))"
11 i18n:translate="">You are not allowed to view this page.</span>
13 <span tal:condition="python:not context.is_view_ok()
14 and request.user.hasRole('Anonymous')"
15 i18n:translate="">Please login with your username and password.</span>
17 <table width="100%" tal:condition="context/is_view_ok" class="list">
18 <tr>
19 <th i18n:translate="">Username</th>
20 <th i18n:translate="">Real name</th>
21 <th i18n:translate="">Organisation</th>
22 <th i18n:translate="">Email address</th>
23 <th i18n:translate="">Phone number</th>
24 <th tal:condition="context/is_edit_ok" i18n:translate="">Retire</th>
25 </tr>
26 <tal:block repeat="user context/list">
27 <tr tal:attributes="class python:['normal', 'alt'][repeat['user'].index%6/3]">
28 <td>
29 <a tal:attributes="href string:user${user/id}"
30 tal:content="user/username">username</a>
31 </td>
32 <td tal:content="python:user.realname.plain() or default"> </td>
33 <td tal:content="python:user.organisation.plain() or default"> </td>
34 <td tal:content="python:user.address.email() or default"> </td>
35 <td tal:content="python:user.phone.plain() or default"> </td>
36 <td tal:condition="context/is_edit_ok">
37 <a tal:attributes="href string:user${user/id}?@action=retire&@template=index"
38 i18n:translate="">retire</a>
39 </td>
40 </tr>
41 </tal:block>
42 </table>
43 </td>
45 </tal:block>