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()"
19 enctype="multipart/form-data"
20 tal:attributes="action context/designator">
22 <table class="form">
23 <tr>
24 <th>Name</th>
25 <td tal:content="structure context/realname/field">realname</td>
26 </tr>
27 <tr>
28 <th>Login Name</th>
29 <td tal:content="structure context/username/field">username</td>
30 </tr>
31 <tr>
32 <th>Login Password</th>
33 <td tal:content="structure context/password/field">password</td>
34 </tr>
35 <tr>
36 <th>Confirm Password</th>
37 <td tal:content="structure context/password/confirm">password</td>
38 </tr>
39 <tr tal:condition="python:request.user.hasPermission('Web Roles')">
40 <th>Roles</th>
41 <td tal:condition="exists:item"
42 tal:content="structure context/roles/field">roles</td>
43 <td tal:condition="not:exists:item">
44 <input name="roles" tal:attributes="value db/config/NEW_WEB_USER_ROLES">
45 </td>
46 </tr>
47 <tr>
48 <th>Phone</th>
49 <td tal:content="structure context/phone/field">phone</td>
50 </tr>
51 <tr>
52 <th>Organisation</th>
53 <td tal:content="structure context/organisation/field">organisation</td>
54 </tr>
55 <tr>
56 <th>E-mail address</th>
57 <td tal:content="structure context/address/field">address</td>
58 </tr>
59 <tr>
60 <th>Alternate E-mail addresses<br>One address per line</th>
61 <td tal:content="structure context/alternate_addresses/multiline">alternate_addresses</td>
62 </tr>
64 <tr>
65 <td> </td>
66 <td>
67 <input type="hidden" name=":template" value="register">
68 <input type="hidden" name=":required" value="username,password,address">
69 <input type="hidden" name=":action" value="register">
70 <input type="submit" name="submit" value="Register">
71 </td>
72 </tr>
73 </table>
74 </form>
76 </tal:block>
78 </tal:block>
80 </td>
82 </tal:block>