diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-03-27 23:38:26 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-03-28 09:50:40 +0100 |
commit | afc0d9423f53180629ba1fa9c3605b9d2528d57d (patch) | |
tree | 60dbd4bb12e99c41b95aa14bc5eb48b0cf16a07b | |
parent | 737265d8ac35faf2d9db536e43420fca2f31a38f (diff) |
Put template in default so other cobrands can find it, but make code only look for it if necessary too.
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/New.pm | 4 | ||||
-rw-r--r-- | templates/web/default/report/new/extra_name.html (renamed from templates/web/fixmystreet/report/new/extra_name.html) | 0 |
2 files changed, 3 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm index 68a30ca2c..ff0c64dc9 100644 --- a/perllib/FixMyStreet/App/Controller/Report/New.pm +++ b/perllib/FixMyStreet/App/Controller/Report/New.pm @@ -124,7 +124,9 @@ sub report_form_ajax : Path('ajax') : Args(0) { my $category = $c->render_fragment( 'report/new/category.html'); my $councils_text = $c->render_fragment( 'report/new/councils_text.html'); my $has_open311 = keys %{ $c->stash->{category_extras} }; - my $extra_name_info = $c->render_fragment('report/new/extra_name.html'); + my $extra_name_info = $c->stash->{extra_name_info} + ? $c->render_fragment('report/new/extra_name.html') + : ''; my $body = JSON->new->utf8(1)->encode( { diff --git a/templates/web/fixmystreet/report/new/extra_name.html b/templates/web/default/report/new/extra_name.html index 7b057a831..7b057a831 100644 --- a/templates/web/fixmystreet/report/new/extra_name.html +++ b/templates/web/default/report/new/extra_name.html |