Code

8dd12df4faecb483eb3a32aaa8ed7fdf481f0898
[roundup.git] / roundup / templates / classic / html / user.item
1 <!-- dollarId: user.item,v 1.7 2002/08/16 04:29:04 richard Exp dollar-->
2 <span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok())">
3 You are not allowed to view this page.
4 </span>
6 <form method="POST" onSubmit="return submit_once()"
7       enctype="multipart/form-data" tal:condition="context/is_edit_ok">
9 <input type="hidden" name=":required" value="username,address">
11 <table class="form">
12  <tr>
13   <th>Name</th>
14   <td tal:content="structure context/realname/field">realname</td>
15  </tr>
16  <tr>
17   <th>Login Name</th>
18   <td tal:content="structure context/username/field">username</td>
19  </tr>
20  <tr>
21   <th>Login Password</th>
22   <td tal:content="structure context/password/field">password</td>
23  </tr>
24  <tr>
25   <th>Confirm Password</th>
26   <td tal:content="structure context/password/confirm">password</td>
27  </tr>
28  <tr tal:condition="python:request.user.hasPermission('Web Roles')">
29   <th>Roles</th>
30   <td tal:condition="context/id"
31       tal:content="structure context/roles/field">roles</td>
32   <td tal:condition="not:context/id">
33    <input name="roles" tal:attributes="value db/config/NEW_WEB_USER_ROLES">
34   </td>
35  </tr>
36  <tr>
37   <th>Phone</th>
38   <td tal:content="structure context/phone/field">phone</td>
39  </tr>
40  <tr>
41   <th>Organisation</th>
42   <td tal:content="structure context/organisation/field">organisation</td>
43  </tr>
44  <tr>
45   <th>E-mail address</th>
46   <td tal:content="structure context/address/field">address</td>
47  </tr>
48  <tr>
49   <th>Alternate E-mail addresses<br>One address per line</th>
50   <td tal:content="structure context/alternate_addresses/multiline">alternate_addresses</td>
51  </tr>
53  <tr>
54   <td>&nbsp;</td>
55   <td tal:content="structure context/submit">submit button here</td>
56  </tr>
57 </table>
58 </form>
60 <table class="otherinfo" tal:condition="context/queries">
61  <tr><th colspan="2" class="header">Queries</th></tr>
62  <tr><th>Name</th><th>Display</th></tr>
63  <tr tal:repeat="query context/queries">
64   <td><a tal:attributes="href string:query${query/id}"
65          tal:content="query/name"></a></td>
66   <td>
67    <a tal:attributes="href python:'%s%s'%(query['klass'], query['url'])">display</a>
68   </td>
69  </tr>
70 </table>
72 <table class="form" tal:condition="context/is_only_view_ok">
73  <tr>
74   <th colspan=2 class="header" tal:content="context/realname">realname</th>
75  </tr>
76  <tr>
77   <th>Login Name</th>
78   <td tal:content="context/username">username</td>
79  </tr>
80  <tr>
81   <th>Phone</th>
82   <td tal:content="context/phone">phone</td>
83  </tr>
84  <tr>
85   <th>Organisation</th>
86   <td tal:content="context/organisation">organisation</td>
87  </tr>
88  <tr>
89   <th>E-mail address</th>
90   <td tal:content="context/address/email">address</td>
91  </tr>
92 </table>
94 <tal:block tal:condition="python:context.id and context.is_view_ok()"
95            tal:replace="structure context/history" />