comparison website/issues/html/user.index.html @ 4024:c2d0d3e9099d website

svn repository setup
author Stefan Seefeld <stefan@users.sourceforge.net>
date Fri, 06 Feb 2009 13:16:31 +0000
parents
children 20e0e5ce217f
comparison
equal deleted inserted replaced
4023:86c38b5aed66 4024:c2d0d3e9099d
1 <tal:block metal:use-macro="templates/page/macros/icing">
2 <title metal:fill-slot="head_title" i18n:translate="">User listing - <span
3 i18n:name="tracker" tal:replace="config/TRACKER_NAME" /></title>
4 <span metal:fill-slot="body_title" tal:omit-tag="python:1"
5 i18n:translate="">User listing</span>
6 <td class="content" metal:fill-slot="content">
7
8 <span tal:condition="python:not (context.is_view_ok()
9 or request.user.hasRole('Anonymous'))"
10 i18n:translate="">You are not allowed to view this page.</span>
11
12 <span tal:condition="python:not context.is_view_ok()
13 and request.user.hasRole('Anonymous')"
14 i18n:translate="">Please login with your username and password.</span>
15
16 <form tal:condition="context/is_view_ok" method="get" name="itemSynopsis"
17 tal:attributes="action request/classname">
18
19 <table class="form" tal:define="
20 search_input templates/page/macros/search_input;">
21
22 <tr><th class="header" colspan="5">Search for users</th></tr>
23 <tr>
24 <th class="header">Username</th>
25 <td tal:define="name string:username">
26 <input tal:attributes="value python:request.form.getvalue(name) or nothing;
27 name name;
28 id name"/>
29 </td>
30 <th class="header">Realname</th>
31 <td tal:define="name string:realname">
32 <input tal:attributes="value python:request.form.getvalue(name) or nothing;
33 name name;
34 id name"/>
35 </td>
36
37 <td><input class="form-small" type="submit" value="Search" i18n:attributes="value"/></td>
38 </tr>
39
40 </table>
41 <input type="hidden" name="@action" value="search"/>
42 </form>
43
44
45 <table width="100%" tal:condition="context/is_view_ok" class="list"
46 tal:define="batch request/batch">
47 <tr>
48 <th i18n:translate="">Username</th>
49 <th i18n:translate="">Real name</th>
50 <th i18n:translate="">Organisation</th>
51 <th i18n:translate="">Email address</th>
52 <th i18n:translate="">Phone number</th>
53 <th tal:condition="context/is_edit_ok" i18n:translate="">Retire</th>
54 </tr>
55 <tal:block repeat="user batch">
56 <tr tal:attributes="class python:['normal', 'alt'][repeat['user'].index%6/3]">
57 <td>
58 <a tal:attributes="href string:user${user/id}"
59 tal:content="user/username">username</a>
60 </td>
61 <td tal:content="python:user.realname.plain() or default">&nbsp;</td>
62 <td tal:content="python:user.organisation.plain() or default">&nbsp;</td>
63 <td tal:content="python:user.address.email() or default">&nbsp;</td>
64 <td tal:content="python:user.phone.plain() or default">&nbsp;</td>
65 <td tal:condition="context/is_edit_ok">
66 <a tal:attributes="href string:user${user/id}?@action=retire&@template=index"
67 i18n:translate="">retire</a>
68 </td>
69 </tr>
70 </tal:block>
71 <tr tal:condition="batch">
72 <th tal:attributes="colspan python:len(request.columns)">
73 <table width="100%">
74 <tr class="navigation">
75 <th>
76 <a tal:define="prev batch/previous" tal:condition="prev"
77 tal:attributes="href python:request.indexargs_url(request.classname,
78 {'@startwith':prev.first, '@pagesize':prev.size})"
79 i18n:translate="">&lt;&lt; previous</a>
80 &nbsp;
81 </th>
82 <th i18n:translate=""><span tal:replace="batch/start" i18n:name="start"
83 />..<span tal:replace="python: batch.start + batch.length -1" i18n:name="end"
84 /> out of <span tal:replace="batch/sequence_length" i18n:name="total"
85 /></th>
86 <th>
87 <a tal:define="next batch/next" tal:condition="next"
88 tal:attributes="href python:request.indexargs_url(request.classname,
89 {'@startwith':next.first, '@pagesize':next.size})"
90 i18n:translate="">next &gt;&gt;</a>
91 &nbsp;
92 </th>
93 </tr>
94 </table>
95 </th>
96 </tr>
97
98 </table>
99 </td>
100
101
102
103 </tal:block>

Roundup Issue Tracker: http://roundup-tracker.org/