Skip to content

Commit 4c95f3e

Browse files
author
Alexander Smishlajev
committed
mark login name and email address fields as required [SF#1392364]
1 parent c0120ff commit 4c95f3e

File tree

2 files changed

+26
-6
lines changed

2 files changed

+26
-6
lines changed

templates/classic/html/user.item.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<td tal:content="structure context/realname/field">realname</td>
4141
</tr>
4242
<tr>
43-
<th i18n:translate="">Login Name</th>
43+
<th class="required" i18n:translate="">Login Name</th>
4444
<td tal:content="structure context/username/field">username</td>
4545
</tr>
4646
<tr>
@@ -80,7 +80,7 @@
8080
</td>
8181
</tr>
8282
<tr>
83-
<th i18n:translate="">E-mail address</th>
83+
<th class="required" i18n:translate="">E-mail address</th>
8484
<td tal:content="structure context/address/field">address</td>
8585
</tr>
8686
<tr>
@@ -99,6 +99,16 @@
9999
</table>
100100
</form>
101101

102+
<tal:block tal:condition="not:context/id" i18n:translate="">
103+
<table class="form">
104+
<tr>
105+
<td>Note:&nbsp;</td>
106+
<th class="required">highlighted</th>
107+
<td>&nbsp;fields are required.</td>
108+
</tr>
109+
</table>
110+
</tal:block>
111+
102112
<tal:block tal:condition="context/id" tal:replace="structure context/history" />
103113

104114
</div>

templates/classic/html/user.register.html

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
<td tal:content="structure context/realname/field">realname</td>
1919
</tr>
2020
<tr>
21-
<th i18n:translate="">Login Name</th>
21+
<th class="required" i18n:translate="">Login Name</th>
2222
<td tal:content="structure context/username/field">username</td>
2323
</tr>
2424
<tr>
25-
<th i18n:translate="">Login Password</th>
25+
<th class="required" i18n:translate="">Login Password</th>
2626
<td tal:content="structure context/password/field">password</td>
2727
</tr>
2828
<tr>
29-
<th i18n:translate="">Confirm Password</th>
29+
<th class="required" i18n:translate="">Confirm Password</th>
3030
<td tal:content="structure context/password/confirm">password</td>
3131
</tr>
3232
<tr tal:condition="python:request.user.hasPermission('Web Roles')">
@@ -46,7 +46,7 @@
4646
<td tal:content="structure context/organisation/field">organisation</td>
4747
</tr>
4848
<tr>
49-
<th i18n:translate="">E-mail address</th>
49+
<th class="required" i18n:translate="">E-mail address</th>
5050
<td tal:content="structure context/address/field">address</td>
5151
</tr>
5252
<tr>
@@ -66,6 +66,16 @@
6666
</table>
6767
</form>
6868

69+
<tal:block tal:condition="not:context/id" i18n:translate="">
70+
<table class="form">
71+
<tr>
72+
<td>Note:&nbsp;</td>
73+
<th class="required">highlighted</th>
74+
<td>&nbsp;fields are required.</td>
75+
</tr>
76+
</table>
77+
</tal:block>
78+
6979
</td>
7080

7181
</tal:block>

0 commit comments

Comments
 (0)