Premiere version : mise en route du suivi.
[auf_roundup.git] / share / roundup / templates / classic / html / .svn / text-base / user.index.html.svn-base
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">
8
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>
12
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>
16
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">&nbsp;</td>
33  <td tal:content="python:user.organisation.plain() or default">&nbsp;</td>
34  <td tal:content="python:user.address.email() or default">&nbsp;</td>
35  <td tal:content="python:user.phone.plain() or default">&nbsp;</td>
36  <td tal:condition="context/is_retire_ok">
37     <form style="padding:0" method="POST"
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>
48
49 </tal:block>