Skip to content
Snippets Groups Projects
Commit 27d0d22b authored by xaralis's avatar xaralis
Browse files

feat(district): more content options for geo feature collection

parent 4f396db5
Branches
No related tags found
2 merge requests!536Release,!533Preload map collection images upfront, more content options for map collection, allow aligning button, new generic headline block
This diff is collapsed.
......@@ -1375,6 +1375,15 @@ class DistrictGeoFeatureCollectionPage(
verbose_name="Obsah za mapou",
blank=True,
)
content_footer = StreamField(
DEFAULT_CONTENT_BLOCKS
+ [
("badge", blocks.PersonBadgeBlock()),
("people_group", blocks.PeopleGroupListBlock()),
],
verbose_name="Obsah v patičkové části",
blank=True,
)
image = models.ForeignKey(
"wagtailimages.Image",
on_delete=models.PROTECT,
......@@ -1408,6 +1417,7 @@ class DistrictGeoFeatureCollectionPage(
StreamFieldPanel("hero_cta_buttons"),
StreamFieldPanel("content"),
StreamFieldPanel("content_after"),
StreamFieldPanel("content_footer"),
ImageChooserPanel("logo_image"),
ImageChooserPanel("image"),
],
......
......@@ -87,9 +87,17 @@
</div>
</section>
{% if page.content_after %}
<section class="space-y-4">
{% for block in page.content_after %}
{% include_block block %}
{% endfor %}
</section>
{% endif %}
<div class="space-y-8 lg:flex lg:space-y-0 lg:space-x-16">
<section class="lg:w-2/3 space-y-4">
{% for block in page.content_after %}
{% for block in page.content_footer %}
{% include_block block %}
{% endfor %}
</section>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment