From a5bef353a4afe8b36c6a86e33cc9e01742911016 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 19 Nov 2014 12:16:23 +0000 Subject: Tidy up reporting sidebar notes and privacy. For #344 and #935. --- perllib/FixMyStreet/Cobrand/EastSussex.pm | 8 -- perllib/FixMyStreet/Cobrand/UKCouncils.pm | 9 ++ templates/web/base/report/new/notes.html | 9 +- templates/web/base/static/privacy.html | 49 ++++++++ .../web/eastsussex/report/new/after_category.html | 1 + templates/web/eastsussex/report/new/notes.html | 11 -- templates/web/fixmybarangay/report/new/notes.html | 8 +- .../report/new/after_category.html | 1 + templates/web/fixmystreet.com/static/privacy.html | 133 +++++++++++++++++++++ .../report/new/fill_in_details_form.html | 2 + templates/web/fixmystreet/report/new/notes.html | 11 -- templates/web/fixmystreet/static/privacy.html | 85 ------------- .../web/oxfordshire/report/new/after_category.html | 1 + templates/web/oxfordshire/report/new/notes.html | 10 -- templates/web/zurich/report/new/notes.html | 6 + 15 files changed, 207 insertions(+), 137 deletions(-) create mode 100755 templates/web/base/static/privacy.html create mode 100644 templates/web/eastsussex/report/new/after_category.html delete mode 100644 templates/web/eastsussex/report/new/notes.html create mode 100644 templates/web/fixmystreet-uk-councils/report/new/after_category.html create mode 100755 templates/web/fixmystreet.com/static/privacy.html delete mode 100644 templates/web/fixmystreet/report/new/notes.html delete mode 100755 templates/web/fixmystreet/static/privacy.html create mode 100644 templates/web/oxfordshire/report/new/after_category.html delete mode 100644 templates/web/oxfordshire/report/new/notes.html create mode 100644 templates/web/zurich/report/new/notes.html diff --git a/perllib/FixMyStreet/Cobrand/EastSussex.pm b/perllib/FixMyStreet/Cobrand/EastSussex.pm index 5081d13e8..5447545e7 100644 --- a/perllib/FixMyStreet/Cobrand/EastSussex.pm +++ b/perllib/FixMyStreet/Cobrand/EastSussex.pm @@ -10,14 +10,6 @@ sub council_name { return 'East Sussex County Council'; } sub council_url { return 'eastsussex'; } sub is_two_tier { return 1; } -sub path_to_web_templates { - my $self = shift; - return [ - FixMyStreet->path_to( 'templates/web', $self->moniker )->stringify, - FixMyStreet->path_to( 'templates/web/fixmystreet' )->stringify - ]; -} - sub disambiguate_location { my $self = shift; my $string = shift; diff --git a/perllib/FixMyStreet/Cobrand/UKCouncils.pm b/perllib/FixMyStreet/Cobrand/UKCouncils.pm index 73132212a..ecea34ddf 100644 --- a/perllib/FixMyStreet/Cobrand/UKCouncils.pm +++ b/perllib/FixMyStreet/Cobrand/UKCouncils.pm @@ -11,6 +11,15 @@ sub is_council { 1; } +sub path_to_web_templates { + my $self = shift; + return [ + FixMyStreet->path_to( 'templates/web', $self->moniker )->stringify, + FixMyStreet->path_to( 'templates/web/fixmystreet-uk-councils' )->stringify, + FixMyStreet->path_to( 'templates/web/fixmystreet' )->stringify + ]; +} + sub site_restriction { my $self = shift; return { bodies_str => sprintf('%d', $self->council_id) }; diff --git a/templates/web/base/report/new/notes.html b/templates/web/base/report/new/notes.html index 68408acc7..8d55adc6e 100644 --- a/templates/web/base/report/new/notes.html +++ b/templates/web/base/report/new/notes.html @@ -1,11 +1,8 @@ -

[% loc("Please note:") %]

+

[% loc("Please note:") %]

-