Code

- replaced the content() callback ickiness with Page Template macro usage
[roundup.git] / roundup / templates / classic / html / user.register
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/page">
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">
19 <input type="hidden" name=":template" value="register">
20 <input type="hidden" name=":required" value="username">
21 <input type="hidden" name=":required" value="password">
22 <input type="hidden" name=":required" value="address">
24 <table class="form">
25  <tr>
26   <th>Name</th>
27   <td tal:content="structure context/realname/field">realname</td>
28  </tr>
29  <tr>
30   <th>Login Name</th>
31   <td tal:content="structure context/username/field">username</td>
32  </tr>
33  <tr>
34   <th>Login Password</th>
35   <td tal:content="structure context/password/field">password</td>
36  </tr>
37  <tr>
38   <th>Confirm Password</th>
39   <td tal:content="structure context/password/confirm">password</td>
40  </tr>
41  <tr tal:condition="python:request.user.hasPermission('Web Roles')">
42   <th>Roles</th>
43   <td tal:condition="exists:item"
44       tal:content="structure context/roles/field">roles</td>
45   <td tal:condition="not:exists:item">
46    <input name="roles" tal:attributes="value db/config/NEW_WEB_USER_ROLES">
47   </td>
48  </tr>
49  <tr>
50   <th>Phone</th>
51   <td tal:content="structure context/phone/field">phone</td>
52  </tr>
53  <tr>
54   <th>Organisation</th>
55   <td tal:content="structure context/organisation/field">organisation</td>
56  </tr>
57  <tr>
58   <th>E-mail address</th>
59   <td tal:content="structure context/address/field">address</td>
60  </tr>
61  <tr>
62   <th>Alternate E-mail addresses<br>One address per line</th>
63   <td tal:content="structure context/alternate_addresses/multiline">alternate_addresses</td>
64  </tr>
66  <tr>
67   <td>&nbsp;</td>
68   <td>
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>