aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Whiteland <dave@mysociety.org>2012-11-14 09:25:22 +0000
committerDave Whiteland <dave@mysociety.org>2012-11-14 09:25:22 +0000
commitfb50071d8b618f61abee90333e372116de24f4a8 (patch)
treee3b8a9c029a3a3433a79665435c41deb5394ee78
parentccd8a2e06ab90202e0205cad3b0fb8ff9ed4b78e (diff)
added explanation for curious FMB logic on may_show_name
-rw-r--r--templates/web/fixmystreet/report/new/fill_in_details_form.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/web/fixmystreet/report/new/fill_in_details_form.html b/templates/web/fixmystreet/report/new/fill_in_details_form.html
index 032fbaf3e..3e7ef0a76 100644
--- a/templates/web/fixmystreet/report/new/fill_in_details_form.html
+++ b/templates/web/fixmystreet/report/new/fill_in_details_form.html
@@ -129,7 +129,11 @@
<div class="checkbox-group">
<input type="checkbox" name="may_show_name" id="form_may_show_name" value="1"
[% IF c.cobrand.moniker == 'fixmybarangay' && c.user.from_council %]
- [% 'checked' IF report.anonymous==0 %]
+ [%#
+ FMB staff reports are anonymous by default; so may_show_name is checked only if explicitly set to 0.
+ If the user has not set it (that is, it is null) TemplateToolkit sees an empty string.
+ %]
+ [% 'checked' IF report.anonymous==0 %]
[% ELSE %]
[% 'checked' IF !report.anonymous %]
[% END %]