84e52a0022307f8b3735da6e560341a6336cbc8f
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 tal:condition="python:request.user.hasPermission('Web Roles')">
25 <th>Roles</th>
26 <td tal:condition="context/id"
27 tal:content="structure context/roles/field">roles</td>
28 <td tal:condition="not:context/id">
29 <input name="roles" tal:attributes="value db/config/NEW_WEB_USER_ROLES">
30 </td>
31 </tr>
32 <tr>
33 <th>Phone</th>
34 <td tal:content="structure context/phone/field/asdfasdf">phone</td>
35 </tr>
36 <tr>
37 <th>Organisation</th>
38 <td tal:content="structure context/organisation/field">organisation</td>
39 </tr>
40 <tr>
41 <th>E-mail address</th>
42 <td tal:content="structure context/address/field">address</td>
43 </tr>
44 <tr>
45 <th>Alternate E-mail addresses<br>One address per line</th>
46 <td tal:content="structure context/alternate_addresses/multiline">alternate_addresses</td>
47 </tr>
49 <tr>
50 <td> </td>
51 <td tal:content="structure context/submit">submit button here</td>
52 </tr>
53 </table>
54 </form>
56 <table class="otherinfo" tal:condition="context/queries">
57 <tr><th colspan="2" class="header">Queries</th></tr>
58 <tr><th>Name</th><th>Display</th></tr>
59 <tr tal:repeat="query context/queries">
60 <td><a tal:attributes="href string:query${query/id}"
61 tal:content="query/name"></a></td>
62 <td>
63 <a tal:attributes="href python:'%s%s'%(query['klass'], query['url'])">display</a>
64 </td>
65 </tr>
66 </table>
68 <table class="form" tal:condition="context/is_only_view_ok">
69 <tr>
70 <th colspan=2 class="header" tal:content="context/realname">realname</th>
71 </tr>
72 <tr>
73 <th>Login Name</th>
74 <td tal:content="context/username">username</td>
75 </tr>
76 <tr>
77 <th>Phone</th>
78 <td tal:content="context/phone">phone</td>
79 </tr>
80 <tr>
81 <th>Organisation</th>
82 <td tal:content="context/organisation">organisation</td>
83 </tr>
84 <tr>
85 <th>E-mail address</th>
86 <td tal:content="context/address/email">address</td>
87 </tr>
88 </table>
90 <tal:block tal:condition="python:context.id and context.is_view_ok()">
91 <tal:block tal:replace="structure context/history" />
92 </tal:block>