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">User listing</title>
4 <td class="page-header-top" metal:fill-slot="body_title">
5 <h2>User listing</h2>
6 </td>
7 <td class="content" metal:fill-slot="content">
9 <span tal:condition="not:context/is_view_ok">
10 You are not allowed to view this page.
11 </span>
13 <table width="100%" tal:condition="context/is_view_ok" class="list">
14 <tr>
15 <th>Username</th>
16 <th>Real name</th>
17 <th>Organisation</th>
18 <th>Email address</th>
19 <th>Phone number</th>
20 <th tal:condition="context/is_edit_ok">Retire</th>
21 </tr>
22 <tr tal:repeat="user context/list"
23 tal:attributes="class python:['normal', 'alt'][repeat['user'].index%6/3]">
24 <td>
25 <a tal:attributes="href string:user${user/id}"
26 tal:content="user/username">username</a>
27 </td>
28 <td tal:content="user/realname">realname</td>
29 <td tal:content="user/organisation">organisation</td>
30 <td tal:content="python:user.address.email()">address</td>
31 <td tal:content="user/phone">phone</td>
32 <td tal:condition="context/is_edit_ok">
33 <a tal:attributes="href string:user${user/id}?:action=retire&:template=index">
34 retire</a>
35 </td>
36 </tr>
37 </table>
38 </td>
40 </tal:block>