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