diff options
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Reports/New.pm | 6 | ||||
-rw-r--r-- | templates/web/default/reports/new/fill_in_details.html | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Reports/New.pm b/perllib/FixMyStreet/App/Controller/Reports/New.pm index 47dbfaa89..80bf6abf8 100644 --- a/perllib/FixMyStreet/App/Controller/Reports/New.pm +++ b/perllib/FixMyStreet/App/Controller/Reports/New.pm @@ -852,7 +852,7 @@ Add the html needed to for the map to the stash. =cut # FIXME - much of this should not happen here or in maps code but in the -# templates. +# templates. Perhaps also create a map 'None' to use when map is skipped. sub generate_map : Private { my ( $self, $c ) = @_; @@ -896,6 +896,10 @@ END_MAP_HTML pins => [ [ $latitude, $longitude, 'purple' ] ], ); } + + # get the closing for the map + $c->stash->{map_end} = FixMyStreet::Map::display_map_end(1); + return 1; } diff --git a/templates/web/default/reports/new/fill_in_details.html b/templates/web/default/reports/new/fill_in_details.html index 7a5a9b2a7..caa406bde 100644 --- a/templates/web/default/reports/new/fill_in_details.html +++ b/templates/web/default/reports/new/fill_in_details.html @@ -145,7 +145,6 @@ </div> </div> -<!-- {{ $map_end }} --> - +[% map_end %] [% INCLUDE 'footer.html' %]
\ No newline at end of file |