-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#1393] Added product locations plugin to products app
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/open_inwoner/templates/cms/products/product_location_plugin.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{% load i18n map_tags %} | ||
|
||
<h2 class="h2">{{configurable_text.home_page.home_map_title}}</h2> | ||
<p class="p">{{configurable_text.home_page.home_map_intro|linebreaksbr}}</p> | ||
|
||
{% with centroid=product_locations.get_centroid %} | ||
{% map centroid.lat centroid.lng geojson_feature_collection=product_locations.get_geojson_feature_collection %} | ||
{% endwith %} |