aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/submit.html8
-rw-r--r--templates/submit_confirm.html2
-rw-r--r--templates/submit_name.html2
-rw-r--r--templates/submit_password.html2
-rw-r--r--www/templates/en/submit.html8
-rw-r--r--www/templates/en/submit_confirm.html2
-rw-r--r--www/templates/en/submit_name.html2
-rw-r--r--www/templates/en/submit_password.html2
8 files changed, 14 insertions, 14 deletions
diff --git a/templates/submit.html b/templates/submit.html
index 3a9629f..99dd9e2 100644
--- a/templates/submit.html
+++ b/templates/submit.html
@@ -17,11 +17,11 @@
<p id="confirm_details">[% loc('Confirm details') %]</p>
<div id="name_details">
- <label for="form_may_show_name">[% loc('Name') %]</label>
+ <label for="form_name">[% loc('Name') %]</label>
<input type="text" class="validName" value="<%= user.name %>" name="name" id="form_name" placeholder="[% loc('Your name') %]">
<div class="checkbox-group">
- <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" checked>
+ <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <%= user.may_show_name ? 'checked' : '' %>>
<label class="inline" for="form_may_show_name">[% loc('Show my name publicly') %]</label>
</div>
@@ -56,11 +56,11 @@
<h5 id="let_me_confirm">[% loc('<strong>No</strong> Let me confirm my report by email') %]</h5>
<div id="name_details">
- <label for="form_may_show_name">[% loc('Name') %]</label>
+ <label for="form_name">[% loc('Name') %]</label>
<input type="text" class="validName" value="<%= user.name %>" name="name" id="form_name" placeholder="[% loc('Your name') %]">
<div class="checkbox-group">
- <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" checked>
+ <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <%= user.may_show_name ? 'checked' : '' %>>
<label class="inline" for="form_may_show_name">[% loc('Show my name publicly') %]</label>
</div>
diff --git a/templates/submit_confirm.html b/templates/submit_confirm.html
index 1d3e862..e34fdf3 100644
--- a/templates/submit_confirm.html
+++ b/templates/submit_confirm.html
@@ -30,7 +30,7 @@
<input data-role="none" type="tel" value="<%= user.phone %>" name="name" id="form_phone" placeholder="[% loc('Optionally enter your phone number') %]">
</div>
<div class="checkbox-group noborder">
- <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<% } %>>
+ <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <%= user.may_show_name ? 'checked' : '' %>>
<label class="inline" for="form_may_show_name">[% loc('Show my name publicly') %]</label>
</div>
</div>
diff --git a/templates/submit_name.html b/templates/submit_name.html
index dbd1197..7cd52da 100644
--- a/templates/submit_name.html
+++ b/templates/submit_name.html
@@ -28,7 +28,7 @@
</div>
<div data-role="fieldcontain">
<fieldset data-role="controlgroup">
- <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<% } %>>
+ <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <%= user.may_show_name ? 'checked' : '' %>>
<label for="form_may_show_name">[% loc('Show my name publicly') %]</label>
</fieldset>
</div>
diff --git a/templates/submit_password.html b/templates/submit_password.html
index ff37992..50d2a3a 100644
--- a/templates/submit_password.html
+++ b/templates/submit_password.html
@@ -38,7 +38,7 @@
</div>
<div data-role="fieldcontain">
<fieldset data-role="controlgroup">
- <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" checked>
+ <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <%= user.may_show_name ? 'checked' : '' %>>
<label for="form_may_show_name">[% loc('Show my name publicly') %]</label>
</fieldset>
</div>
diff --git a/www/templates/en/submit.html b/www/templates/en/submit.html
index be31ffb..3a90730 100644
--- a/www/templates/en/submit.html
+++ b/www/templates/en/submit.html
@@ -17,11 +17,11 @@
<p id="confirm_details">Confirm details</p>
<div id="name_details">
- <label for="form_may_show_name">Name</label>
+ <label for="form_name">Name</label>
<input type="text" class="validName" value="<%= user.name %>" name="name" id="form_name" placeholder="Your name">
<div class="checkbox-group">
- <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" checked>
+ <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <%= user.may_show_name ? 'checked' : '' %>>
<label class="inline" for="form_may_show_name">Show my name publicly</label>
</div>
@@ -56,11 +56,11 @@
<h5 id="let_me_confirm"><strong>No</strong> Let me confirm my report by email</h5>
<div id="name_details">
- <label for="form_may_show_name">Name</label>
+ <label for="form_name">Name</label>
<input type="text" class="validName" value="<%= user.name %>" name="name" id="form_name" placeholder="Your name">
<div class="checkbox-group">
- <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" checked>
+ <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <%= user.may_show_name ? 'checked' : '' %>>
<label class="inline" for="form_may_show_name">Show my name publicly</label>
</div>
diff --git a/www/templates/en/submit_confirm.html b/www/templates/en/submit_confirm.html
index f41e71c..7518977 100644
--- a/www/templates/en/submit_confirm.html
+++ b/www/templates/en/submit_confirm.html
@@ -30,7 +30,7 @@
<input data-role="none" type="tel" value="<%= user.phone %>" name="name" id="form_phone" placeholder="Optionally enter your phone number">
</div>
<div class="checkbox-group noborder">
- <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<% } %>>
+ <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <%= user.may_show_name ? 'checked' : '' %>>
<label class="inline" for="form_may_show_name">Show my name publicly</label>
</div>
</div>
diff --git a/www/templates/en/submit_name.html b/www/templates/en/submit_name.html
index 0b6c28d..4d364f6 100644
--- a/www/templates/en/submit_name.html
+++ b/www/templates/en/submit_name.html
@@ -28,7 +28,7 @@
</div>
<div data-role="fieldcontain">
<fieldset data-role="controlgroup">
- <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<% } %>>
+ <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <%= user.may_show_name ? 'checked' : '' %>>
<label for="form_may_show_name">Show my name publicly</label>
</fieldset>
</div>
diff --git a/www/templates/en/submit_password.html b/www/templates/en/submit_password.html
index e0bd895..420e1f0 100644
--- a/www/templates/en/submit_password.html
+++ b/www/templates/en/submit_password.html
@@ -38,7 +38,7 @@
</div>
<div data-role="fieldcontain">
<fieldset data-role="controlgroup">
- <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" checked>
+ <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <%= user.may_show_name ? 'checked' : '' %>>
<label for="form_may_show_name">Show my name publicly</label>
</fieldset>
</div>