cdee70cc59914b8b44bc2bf15f0afa0b9a15dd6d
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_retire_ok">
37 <form style="padding:0"
38 tal:attributes="action string:user${user/id}">
39 <input type="hidden" name="@template" value="index">
40 <input type="hidden" name="@action" value="retire">
41 <input type="submit" value="retire" i18n:attributes="value">
42 </form>
43 </td>
44 </tr>
45 </tal:block>
46 </table>
47 </td>
49 </tal:block>