aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-03-24 17:14:58 +0000
committerEdmund von der Burg <evdb@mysociety.org>2011-03-24 17:14:58 +0000
commit5c1343fb6d14dd8fb44b2cc626619845097b90a9 (patch)
tree8ebaf6e2733f0ea711f83c57e540a50ad95367f8
parent86aa0977730fcf99b9d6be2c0c9af7698cbdf23c (diff)
Close off map correctly
-rw-r--r--perllib/FixMyStreet/App/Controller/Reports/New.pm6
-rw-r--r--templates/web/default/reports/new/fill_in_details.html3
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