Skip to content

Commit 2dfe303

Browse files
author
Alexander Smishlajev
committed
remove "real name", "phone" and "organisation"...
...not present in the minimal user class; i18n markup
1 parent 37775be commit 2dfe303

File tree

1 file changed

+13
-24
lines changed

1 file changed

+13
-24
lines changed

templates/minimal/html/user.register.html

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
<!-- dollarId: user.item,v 1.7 2002/08/16 04:29:04 richard Exp dollar-->
22
<tal:block metal:use-macro="templates/page/macros/icing">
33
<title metal:fill-slot="head_title"
4-
tal:content="string:Registering with ${db/config/TRACKER_NAME}"></title>
4+
i18n:translate="">Registering with <span i18n:name="tracker"
5+
tal:replace="db/config/TRACKER_NAME" /></title>
56
<span metal:fill-slot="body_title" tal:omit-tag="python:1"
6-
tal:content="string:Registering with ${db/config/TRACKER_NAME}"></span>
7+
i18n:translate="">Registering with <span i18n:name="tracker"
8+
tal:replace="db/config/TRACKER_NAME" /></span>
79
<td class="content" metal:fill-slot="content">
810

911
<tal:block tal:define=" editok python:request.user.username=='anonymous' and
1012
request.user.hasPermission('Web Registration')">
1113

12-
<span tal:condition="python:not editok">
13-
You are not allowed to view this page.
14-
</span>
14+
<span tal:condition="python:not editok"
15+
i18n:translate="">You are not allowed to view this page.</span>
1516

1617
<tal:block tal:condition="editok">
1718
<form method="POST" onSubmit="return submit_once()" enctype="multipart/form-data">
@@ -22,51 +23,39 @@
2223

2324
<table class="form">
2425
<tr>
25-
<th>Name</th>
26-
<td tal:content="structure context/realname/field">realname</td>
27-
</tr>
28-
<tr>
29-
<th>Login Name</th>
26+
<th i18n:translate="">Login Name</th>
3027
<td tal:content="structure context/username/field">username</td>
3128
</tr>
3229
<tr>
33-
<th>Login Password</th>
30+
<th i18n:translate="">Login Password</th>
3431
<td tal:content="structure context/password/field">password</td>
3532
</tr>
3633
<tr>
37-
<th>Confirm Password</th>
34+
<th i18n:translate="">Confirm Password</th>
3835
<td tal:content="structure context/password/confirm">password</td>
3936
</tr>
4037
<tr tal:condition="python:request.user.hasPermission('Web Roles')">
41-
<th>Roles</th>
38+
<th i18n:translate="">Roles</th>
4239
<td tal:condition="exists:item"
4340
tal:content="structure context/roles/field">roles</td>
4441
<td tal:condition="not:exists:item">
4542
<input name="roles" tal:attributes="value db/config/NEW_WEB_USER_ROLES">
4643
</td>
4744
</tr>
4845
<tr>
49-
<th>Phone</th>
50-
<td tal:content="structure context/phone/field">phone</td>
51-
</tr>
52-
<tr>
53-
<th>Organisation</th>
54-
<td tal:content="structure context/organisation/field">organisation</td>
55-
</tr>
56-
<tr>
57-
<th>E-mail address</th>
46+
<th i18n:translate="">E-mail address</th>
5847
<td tal:content="structure context/address/field">address</td>
5948
</tr>
6049
<tr>
61-
<th>Alternate E-mail addresses<br>One address per line</th>
50+
<th i18n:translate="">Alternate E-mail addresses<br>One address per line</th>
6251
<td tal:content="structure context/alternate_addresses/multiline">alternate_addresses</td>
6352
</tr>
6453

6554
<tr>
6655
<td>&nbsp;</td>
6756
<td>
6857
<input type="hidden" name=":action" value="register">
69-
<input type="submit" name="submit" value="Register">
58+
<input type="submit" name="submit" value="Register" i18n:attributes="value">
7059
</td>
7160
</tr>
7261
</table>

0 commit comments

Comments
 (0)