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 tal:content="string:Registering with ${db/config/TRACKER_NAME}"></title>
5 <td class="page-header-top" metal:fill-slot="body_title">
6 <h2 tal:content="string:Registering with ${db/config/TRACKER_NAME}"></h2>
7 </td>
8 <td class="content" metal:fill-slot="content">
10 <tal:block tal:define=" editok python:request.user.username=='anonymous' and
11 request.user.hasPermission('Web Registration')">
13 <span tal:condition="python:not editok">
14 You are not allowed to view this page.
15 </span>
17 <tal:block tal:condition="editok">
18 <form method="POST" onSubmit="return submit_once()" enctype="multipart/form-data">
20 <table class="form">
21 <tr>
22 <th>Name</th>
23 <td tal:content="structure context/realname/field">realname</td>
24 </tr>
25 <tr>
26 <th>Login Name</th>
27 <td tal:content="structure context/username/field">username</td>
28 </tr>
29 <tr>
30 <th>Login Password</th>
31 <td tal:content="structure context/password/field">password</td>
32 </tr>
33 <tr>
34 <th>Confirm Password</th>
35 <td tal:content="structure context/password/confirm">password</td>
36 </tr>
37 <tr tal:condition="python:request.user.hasPermission('Web Roles')">
38 <th>Roles</th>
39 <td tal:condition="exists:item"
40 tal:content="structure context/roles/field">roles</td>
41 <td tal:condition="not:exists:item">
42 <input name="roles" tal:attributes="value db/config/NEW_WEB_USER_ROLES">
43 </td>
44 </tr>
45 <tr>
46 <th>Phone</th>
47 <td tal:content="structure context/phone/field">phone</td>
48 </tr>
49 <tr>
50 <th>Organisation</th>
51 <td tal:content="structure context/organisation/field">organisation</td>
52 </tr>
53 <tr>
54 <th>E-mail address</th>
55 <td tal:content="structure context/address/field">address</td>
56 </tr>
57 <tr>
58 <th>Alternate E-mail addresses<br>One address per line</th>
59 <td tal:content="structure context/alternate_addresses/multiline">alternate_addresses</td>
60 </tr>
62 <tr>
63 <td> </td>
64 <td>
65 <input type="hidden" name=":template" value="register">
66 <input type="hidden" name=":required" value="username,password,address">
67 <input type="hidden" name=":action" value="register">
68 <input type="submit" name="submit" value="Register">
69 </td>
70 </tr>
71 </table>
72 </form>
74 </tal:block>
76 </tal:block>
78 </td>
80 </tal:block>