diff options
4 files changed, 8 insertions, 8 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm index 687e54fbe..da9097ab1 100644 --- a/perllib/FixMyStreet/App/Controller/Report/New.pm +++ b/perllib/FixMyStreet/App/Controller/Report/New.pm @@ -598,7 +598,6 @@ sub setup_categories_and_bodies : Private { # variables to populate my %bodies_to_list = (); # Bodies with categories assigned my @category_options = (); # categories to show - my $category_label = undef; # what to call them my %category_extras = (); # extra fields to fill in for open311 my %non_public_categories = (); # categories for which the reports are not public @@ -621,7 +620,6 @@ sub setup_categories_and_bodies : Private { _('Empty pub or bar'), _('Empty public building - school, hospital, etc.') ); - $category_label = _('Property type:'); } elsif ($first_area->{id} != COUNCIL_ID_BROMLEY && $first_area->{type} eq 'LBO') { @@ -636,7 +634,6 @@ sub setup_categories_and_bodies : Private { _('-- Pick a category --'), @local_categories ); - $category_label = _('Category'); } else { @@ -663,7 +660,6 @@ sub setup_categories_and_bodies : Private { # If there's an Other category present, put it at the bottom @category_options = ( _('-- Pick a category --'), grep { $_ ne _('Other') } @category_options ); push @category_options, _('Other') if $seen{_('Other')}; - $category_label = _('Category'); } } @@ -671,7 +667,6 @@ sub setup_categories_and_bodies : Private { $c->stash->{bodies} = \%bodies; $c->stash->{all_body_names} = [ map { $_->name } values %bodies ]; $c->stash->{bodies_to_list} = [ keys %bodies_to_list ]; - $c->stash->{category_label} = $category_label; $c->stash->{category_options} = \@category_options; $c->stash->{category_extras} = \%category_extras; $c->stash->{non_public_categories} = \%non_public_categories; diff --git a/templates/web/default/report/new/category.html b/templates/web/default/report/new/category.html index a701e0851..a6f2bf14d 100644 --- a/templates/web/default/report/new/category.html +++ b/templates/web/default/report/new/category.html @@ -3,7 +3,12 @@ [% IF category; category = category | lower; END; %] - <label for='form_category' id="form_category_label">[% category_label | html %]</label> + <label for='form_category' id="form_category_label"> + [%- IF c.cobrand.moniker == 'emptyhomes' %] + [%- loc('Property type:') %] + [%- ELSE %] + [%- loc('Category') %] + [%- END -%]</label> <select name='category' id='form_category'[% ' onchange="form_category_onchange()"' IF category_extras.size %]> [% FOREACH cat_op IN category_options %] [% cat_op_lc = cat_op | lower %] diff --git a/templates/web/seesomething/report/new/category.html b/templates/web/seesomething/report/new/category.html index 26d750b52..8c837a047 100644 --- a/templates/web/seesomething/report/new/category.html +++ b/templates/web/seesomething/report/new/category.html @@ -3,7 +3,7 @@ [% IF category; category = category | lower; END; %] - <label for='form_category' class="select">[% category_label | html %]</label> + <label for='form_category' class="select">[% loc('Category') %]</label> <select name='category' data-theme="c" id='form_category'[% ' onchange="form_category_onchange()"' IF category_extras.size %]> [% FOREACH cat_op IN category_options %] [% cat_op_lc = cat_op | lower %] diff --git a/templates/web/southampton/report/new/category.html b/templates/web/southampton/report/new/category.html index 7c7748c78..0a7703bbb 100644 --- a/templates/web/southampton/report/new/category.html +++ b/templates/web/southampton/report/new/category.html @@ -1,6 +1,6 @@ [% FILTER collapse %] [% IF category_options.size %] - <label for='form_category'>[% category_label | html %]</label> + <label for='form_category'>[% loc('Category') %]</label> <select name='category' id='form_category'> [% FOREACH cat_op IN category_options %] [% NEXT IF cat_op == 'Abandoned vehicles' %] |