Code

working toward 0.5.2 release
[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 <tal:block metal:use-macro="templates/page/macros/icing">
3 <title metal:fill-slot="head_title">User editing</title>
4 <td class="page-header-top" metal:fill-slot="body_title">
5  <h2>User editing</h2>
6 </td>
7 <td class="content" metal:fill-slot="content">
8 <span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok())">
9 You are not allowed to view this page.
10 </span>
12 <form method="POST" onSubmit="return submit_once()"
13       enctype="multipart/form-data" tal:condition="context/is_edit_ok">
15 <input type="hidden" name=":required" value="username,address">
17 <table class="form">
18  <tr>
19   <th>Name</th>
20   <td tal:content="structure context/realname/field">realname</td>
21  </tr>
22  <tr>
23   <th>Login Name</th>
24   <td tal:content="structure context/username/field">username</td>
25  </tr>
26  <tr>
27   <th>Login Password</th>
28   <td tal:content="structure context/password/field">password</td>
29  </tr>
30  <tr>
31   <th>Confirm Password</th>
32   <td tal:content="structure context/password/confirm">password</td>
33  </tr>
34  <tr tal:condition="python:request.user.hasPermission('Web Roles')">
35   <th>Roles</th>
36   <td tal:condition="context/id"
37       tal:content="structure context/roles/field">roles</td>
38   <td tal:condition="not:context/id">
39    <input name="roles" tal:attributes="value db/config/NEW_WEB_USER_ROLES">
40   </td>
41  </tr>
42  <tr>
43   <th>Phone</th>
44   <td tal:content="structure context/phone/field">phone</td>
45  </tr>
46  <tr>
47   <th>Organisation</th>
48   <td tal:content="structure context/organisation/field">organisation</td>
49  </tr>
50  <tr>
51   <th>E-mail address</th>
52   <td tal:content="structure context/address/field">address</td>
53  </tr>
54  <tr>
55   <th>Alternate E-mail addresses<br>One address per line</th>
56   <td tal:content="structure context/alternate_addresses/multiline">alternate_addresses</td>
57  </tr>
59  <tr>
60   <td>&nbsp;</td>
61   <td tal:content="structure context/submit">submit button here</td>
62  </tr>
63 </table>
64 </form>
66 <table class="otherinfo" tal:condition="context/queries">
67  <tr><th colspan="3" class="header">Queries</th></tr>
68  <tr><th>Name</th><th colspan="2">Actions</th></tr>
69  <tr tal:repeat="query context/queries">
70   <td><a tal:attributes="href string:query${query/id}"
71          tal:content="query/name"></a></td>
72   <td>
73    <a tal:attributes="href python:'%s%s'%(query['klass'], query['url'])">display</a>
74   </td>
75   <td>
76    <a tal:attributes="href string:?:remove:queries=${query/id}&:action=edit">remove</a>
77   </td>
78  </tr>
79 </table>
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>E-mail address</th>
99   <td tal:content="context/address/email">address</td>
100  </tr>
101 </table>
103 <tal:block tal:condition="python:context.id and context.is_view_ok()"
104            tal:replace="structure context/history" />
106 </td>
108 </tal:block>