Code

Queries are no longer viewable to unauthorized users.
[roundup.git] / templates / classic / html / user.item.html
1 <!-- dollarId: user.item,v 1.7 2002/08/16 04:29:04 richard Exp dollar-->
2 <tal:block metal:use-macro="templates/page/macros/icing">
3 <title metal:fill-slot="head_title"> 
4 <span tal:replace="config/TRACKER_NAME" />: 
5 <span tal:condition="context/id"
6       tal:replace="string:User ${context/id}: ${context/username}" />
7 <tal:x tal:condition="not:context/id">New User</tal:x> 
8 </title> 
9 <td class="page-header-top" metal:fill-slot="body_title">
10  <h2>
11   User<span tal:replace="context/id" />
12    <tal:x tal:condition="context/is_edit_ok">Editing</tal:x>
13  </h2>
14 </td>
16 <td class="content" metal:fill-slot="content">
17 <span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok())">
18 You are not allowed to view this page.
19 </span>
21 <form method="POST" onSubmit="return submit_once()"
22       enctype="multipart/form-data" tal:condition="context/is_edit_ok">
24 <input type="hidden" name=":template" value="item">
25 <input type="hidden" name=":required" value="username,address">
27 <table class="form">
28  <tr>
29   <th>Name</th>
30   <td tal:content="structure context/realname/field">realname</td>
31  </tr>
32  <tr>
33   <th>Login Name</th>
34   <td tal:content="structure context/username/field">username</td>
35  </tr>
36  <tr>
37   <th>Login Password</th>
38   <td tal:content="structure context/password/field">password</td>
39  </tr>
40  <tr>
41   <th>Confirm Password</th>
42   <td tal:content="structure context/password/confirm">password</td>
43  </tr>
44  <tr tal:condition="python:request.user.hasPermission('Web Roles')">
45   <th>Roles</th>
46   <td tal:condition="context/id"
47       tal:content="structure context/roles/field">roles</td>
48   <td tal:condition="not:context/id">
49    <input name="roles" tal:attributes="value db/config/NEW_WEB_USER_ROLES">
50    (to give the user more than one role, enter a comma,separated,list)
51   </td>
52  </tr>
53  <tr>
54   <th>Phone</th>
55   <td tal:content="structure context/phone/field">phone</td>
56  </tr>
57  <tr>
58   <th>Organisation</th>
59   <td tal:content="structure context/organisation/field">organisation</td>
60  </tr>
61  <tr>
62   <th>Timezone</th>
63   <td tal:content="structure context/timezone/field">timezone</td>
64  </tr>
65  <tr>
66   <th>E-mail address</th>
67   <td tal:content="structure context/address/field">address</td>
68  </tr>
69  <tr>
70   <th>Alternate E-mail addresses<br>One address per line</th>
71   <td tal:content="structure context/alternate_addresses/multiline">alternate_addresses</td>
72  </tr>
74  <tr>
75   <td>&nbsp;</td>
76   <td tal:content="structure context/submit">submit button here</td>
77  </tr>
78 </table>
79 </form>
81 <table class="otherinfo" tal:condition="python:context.queries and context.is_view_ok()">
82  <tr><th colspan="3" class="header">Queries</th></tr>
83  <tr><th>Name</th><th colspan="2">Actions</th></tr>
84  <tr tal:repeat="query context/queries">
85   <td><a tal:attributes="href string:query${query/id}"
86          tal:content="query/name"></a></td>
87   <td>
88    <a tal:attributes="href string:${query/klass}?${query/url}">display</a>   
89   </td>
90   <td>
91    <a tal:attributes="href string:?:remove:queries=${query/id}&:action=edit">remove</a>
92   </td>
93  </tr>
94 </table>
96 <table class="form" tal:condition="context/is_only_view_ok">
97  <tr>
98   <th colspan=2 class="header" tal:content="context/realname">realname</th>
99  </tr>
100  <tr>
101   <th>Login Name</th>
102   <td tal:content="context/username">username</td>
103  </tr>
104  <tr>
105   <th>Phone</th>
106   <td tal:content="context/phone">phone</td>
107  </tr>
108  <tr>
109   <th>Organisation</th>
110   <td tal:content="context/organisation">organisation</td>
111  </tr>
112  <tr>
113   <th>Timezone</th>
114   <td tal:content="context/timezone">timezone</td>
115  </tr>
116  <tr>
117   <th>E-mail address</th>
118   <td tal:content="context/address/email">address</td>
119  </tr>
120 </table>
122 <tal:block tal:condition="python:context.id and context.is_view_ok()"
123            tal:replace="structure context/history" />
125 </td>
127 </tal:block>