Code

- queries on a per-user basis, and public queries (sf "bug" 891798 :)
[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 <span metal:fill-slot="body_title" tal:omit-tag="python:1">
10   User<span tal:replace="context/id" />
11    <tal:x tal:condition="context/is_edit_ok">Editing</tal:x>
12  </span>
14 <td class="content" metal:fill-slot="content">
15 <span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok())">
16 You are not allowed to view this page.
17 </span>
19 <form method="POST" onSubmit="return submit_once()"
20       enctype="multipart/form-data" tal:condition="context/is_edit_ok"
21       tal:attributes="action context/designator">
23 <table class="form">
24  <tr>
25   <th>Name</th>
26   <td tal:content="structure context/realname/field">realname</td>
27  </tr>
28  <tr>
29   <th>Login Name</th>
30   <td tal:content="structure context/username/field">username</td>
31  </tr>
32  <tr>
33   <th>Login Password</th>
34   <td tal:content="structure context/password/field">password</td>
35  </tr>
36  <tr>
37   <th>Confirm Password</th>
38   <td tal:content="structure context/password/confirm">password</td>
39  </tr>
40  <tr tal:condition="python:request.user.hasPermission('Web Roles')">
41   <th>Roles</th>
42   <td tal:condition="context/id"
43       tal:content="structure context/roles/field">roles</td>
44   <td tal:condition="not:context/id">
45    <input name="roles" tal:attributes="value db/config/NEW_WEB_USER_ROLES">
46    (to give the user more than one role, enter a comma,separated,list)
47   </td>
48  </tr>
49  <tr>
50   <th>Phone</th>
51   <td tal:content="structure context/phone/field">phone</td>
52  </tr>
53  <tr>
54   <th>Organisation</th>
55   <td tal:content="structure context/organisation/field">organisation</td>
56  </tr>
57  <tr>
58   <th>Timezone</th>
59   <td tal:content="structure context/timezone/field">timezone</td>
60  </tr>
61  <tr>
62   <th>E-mail address</th>
63   <td tal:content="structure context/address/field">address</td>
64  </tr>
65  <tr>
66   <th>Alternate E-mail addresses<br>One address per line</th>
67   <td tal:content="structure context/alternate_addresses/multiline">alternate_addresses</td>
68  </tr>
70  <tr>
71   <td>
72    &nbsp;
73    <input type="hidden" name="@template" value="item">
74    <input type="hidden" name="@required" value="username,address">
75   </td>
76   <td tal:content="structure context/submit">submit button here</td>
77  </tr>
78 </table>
79 </form>
81 <table class="form" tal:condition="context/is_only_view_ok">
82  <tr>
83   <th colspan=2 class="header" tal:content="context/realname">realname</th>
84  </tr>
85  <tr>
86   <th>Login Name</th>
87   <td tal:content="context/username">username</td>
88  </tr>
89  <tr>
90   <th>Phone</th>
91   <td tal:content="context/phone">phone</td>
92  </tr>
93  <tr>
94   <th>Organisation</th>
95   <td tal:content="context/organisation">organisation</td>
96  </tr>
97  <tr>
98   <th>Timezone</th>
99   <td tal:content="context/timezone">timezone</td>
100  </tr>
101  <tr>
102   <th>E-mail address</th>
103   <td tal:content="context/address/email">address</td>
104  </tr>
105 </table>
107 <tal:block tal:condition="python:context.id and context.is_view_ok()"
108            tal:replace="structure context/history" />
110 </td>
112 </tal:block>