Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit 8e466ef

Browse files
committed
Default to not showing name publicly
1 parent 5351fb7 commit 8e466ef

8 files changed

+14
-14
lines changed

templates/submit.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ <h1>[% loc('Submit') %]</h1>
1717

1818
<p id="confirm_details">[% loc('Confirm details') %]</p>
1919
<div id="name_details">
20-
<label for="form_may_show_name">[% loc('Name') %]</label>
20+
<label for="form_name">[% loc('Name') %]</label>
2121
<input type="text" class="validName" value="<%= user.name %>" name="name" id="form_name" placeholder="[% loc('Your name') %]">
2222

2323
<div class="checkbox-group">
24-
<input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" checked>
24+
<input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <%= user.may_show_name ? 'checked' : '' %>>
2525
<label class="inline" for="form_may_show_name">[% loc('Show my name publicly') %]</label>
2626
</div>
2727

@@ -56,11 +56,11 @@ <h5>[% loc('<strong>Yes</strong> I have a password') %]</h5>
5656
<h5 id="let_me_confirm">[% loc('<strong>No</strong> Let me confirm my report by email') %]</h5>
5757

5858
<div id="name_details">
59-
<label for="form_may_show_name">[% loc('Name') %]</label>
59+
<label for="form_name">[% loc('Name') %]</label>
6060
<input type="text" class="validName" value="<%= user.name %>" name="name" id="form_name" placeholder="[% loc('Your name') %]">
6161

6262
<div class="checkbox-group">
63-
<input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" checked>
63+
<input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <%= user.may_show_name ? 'checked' : '' %>>
6464
<label class="inline" for="form_may_show_name">[% loc('Show my name publicly') %]</label>
6565
</div>
6666

templates/submit_confirm.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ <h1>[% loc('Your details') %]</h1>
3030
<input data-role="none" type="tel" value="<%= user.phone %>" name="name" id="form_phone" placeholder="[% loc('Optionally enter your phone number') %]">
3131
</div>
3232
<div class="checkbox-group noborder">
33-
<input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <% if ( typeof user.may_show_name == 'undefined' || user.may_show_name ) { %>checked<% } %>>
33+
<input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <%= user.may_show_name ? 'checked' : '' %>>
3434
<label class="inline" for="form_may_show_name">[% loc('Show my name publicly') %]</label>
3535
</div>
3636
</div>

templates/submit_name.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h1>[% loc('Your details') %]</h1>
2828
</div>
2929
<div data-role="fieldcontain">
3030
<fieldset data-role="controlgroup">
31-
<input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <% if ( typeof user.may_show_name == 'undefined' || user.may_show_name ) { %>checked<% } %>>
31+
<input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <%= user.may_show_name ? 'checked' : '' %>>
3232
<label for="form_may_show_name">[% loc('Show my name publicly') %]</label>
3333
</fieldset>
3434
</div>

templates/submit_password.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h1>[% loc('Your details') %]</h1>
3838
</div>
3939
<div data-role="fieldcontain">
4040
<fieldset data-role="controlgroup">
41-
<input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" checked>
41+
<input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <%= user.may_show_name ? 'checked' : '' %>>
4242
<label for="form_may_show_name">[% loc('Show my name publicly') %]</label>
4343
</fieldset>
4444
</div>

www/templates/en/submit.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ <h1>Submit</h1>
1717

1818
<p id="confirm_details">Confirm details</p>
1919
<div id="name_details">
20-
<label for="form_may_show_name">Name</label>
20+
<label for="form_name">Name</label>
2121
<input type="text" class="validName" value="<%= user.name %>" name="name" id="form_name" placeholder="Your name">
2222

2323
<div class="checkbox-group">
24-
<input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" checked>
24+
<input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <%= user.may_show_name ? 'checked' : '' %>>
2525
<label class="inline" for="form_may_show_name">Show my name publicly</label>
2626
</div>
2727

@@ -56,11 +56,11 @@ <h5><strong>Yes</strong> I have a password</h5>
5656
<h5 id="let_me_confirm"><strong>No</strong> Let me confirm my report by email</h5>
5757

5858
<div id="name_details">
59-
<label for="form_may_show_name">Name</label>
59+
<label for="form_name">Name</label>
6060
<input type="text" class="validName" value="<%= user.name %>" name="name" id="form_name" placeholder="Your name">
6161

6262
<div class="checkbox-group">
63-
<input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" checked>
63+
<input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <%= user.may_show_name ? 'checked' : '' %>>
6464
<label class="inline" for="form_may_show_name">Show my name publicly</label>
6565
</div>
6666

www/templates/en/submit_confirm.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ <h1>Your details</h1>
3030
<input data-role="none" type="tel" value="<%= user.phone %>" name="name" id="form_phone" placeholder="Optionally enter your phone number">
3131
</div>
3232
<div class="checkbox-group noborder">
33-
<input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <% if ( typeof user.may_show_name == 'undefined' || user.may_show_name ) { %>checked<% } %>>
33+
<input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <%= user.may_show_name ? 'checked' : '' %>>
3434
<label class="inline" for="form_may_show_name">Show my name publicly</label>
3535
</div>
3636
</div>

www/templates/en/submit_name.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h1>Your details</h1>
2828
</div>
2929
<div data-role="fieldcontain">
3030
<fieldset data-role="controlgroup">
31-
<input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <% if ( typeof user.may_show_name == 'undefined' || user.may_show_name ) { %>checked<% } %>>
31+
<input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <%= user.may_show_name ? 'checked' : '' %>>
3232
<label for="form_may_show_name">Show my name publicly</label>
3333
</fieldset>
3434
</div>

www/templates/en/submit_password.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h1>Your details</h1>
3838
</div>
3939
<div data-role="fieldcontain">
4040
<fieldset data-role="controlgroup">
41-
<input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" checked>
41+
<input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <%= user.may_show_name ? 'checked' : '' %>>
4242
<label for="form_may_show_name">Show my name publicly</label>
4343
</fieldset>
4444
</div>

0 commit comments

Comments
 (0)