Skip to content
Snippets Groups Projects
Commit 07b6477b authored by OndraRehounek's avatar OndraRehounek Committed by jan.bednarik
Browse files

district & region: HTML content in TableBlock

parent a2447ad2
Branches
No related tags found
2 merge requests!468Release,!465Resolve "Rozcestník s kartami - přidat text popisu pod nadpis každé karty"
# Generated by Django 4.0.3 on 2022-04-14 14:06
import wagtail.contrib.table_block.blocks
import wagtail.core.blocks
import wagtail.core.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("district", "0053_alter_districtcrossroadpage_cards_content"),
]
operations = [
migrations.AlterField(
model_name="districtcenterpage",
name="content",
field=wagtail.core.fields.StreamField(
[
("text", wagtail.core.blocks.RichTextBlock()),
(
"table",
wagtail.contrib.table_block.blocks.TableBlock(
table_options={"renderer": "html"}
),
),
],
blank=True,
verbose_name="Obsah",
),
),
migrations.AlterField(
model_name="districtcustompage",
name="content",
field=wagtail.core.fields.StreamField(
[
("text", wagtail.core.blocks.RichTextBlock()),
(
"table",
wagtail.contrib.table_block.blocks.TableBlock(
table_options={"renderer": "html"}
),
),
(
"people_group",
wagtail.core.blocks.StructBlock(
[
(
"group_title",
wagtail.core.blocks.CharBlock(
label="Titulek", required=True
),
),
(
"person_list",
wagtail.core.blocks.ListBlock(
wagtail.core.blocks.PageChooserBlock(
label="Osoba",
page_type=[
"district.DistrictPersonPage",
"region.RegionPersonPage",
],
),
label="List osob",
),
),
]
),
),
],
blank=True,
verbose_name="Obsah",
),
),
]
......@@ -888,7 +888,7 @@ class DistrictCenterPage(CalendarMixin, SubpageMixin, MetadataPageMixin, Page):
content = StreamField(
[
("text", RichTextBlock()),
("table", TableBlock()),
("table", TableBlock(table_options={"renderer": "html"})),
],
verbose_name="Obsah",
blank=True,
......@@ -1001,7 +1001,7 @@ class DistrictCustomPage(SubpageMixin, MetadataPageMixin, Page):
content = StreamField(
[
("text", RichTextBlock()),
("table", TableBlock()),
("table", TableBlock(table_options={"renderer": "html"})),
("people_group", blocks.PeopleGroupListBlock()),
],
verbose_name="Obsah",
......
# Generated by Django 4.0.3 on 2022-04-14 14:06
import wagtail.contrib.table_block.blocks
import wagtail.core.blocks
import wagtail.core.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("region", "0028_alter_regioncrossroadpage_cards_content"),
]
operations = [
migrations.AlterField(
model_name="regioncenterpage",
name="content",
field=wagtail.core.fields.StreamField(
[
("text", wagtail.core.blocks.RichTextBlock()),
(
"table",
wagtail.contrib.table_block.blocks.TableBlock(
table_options={"renderer": "html"}
),
),
],
blank=True,
verbose_name="Obsah",
),
),
migrations.AlterField(
model_name="regioncustompage",
name="content",
field=wagtail.core.fields.StreamField(
[
("text", wagtail.core.blocks.RichTextBlock()),
(
"table",
wagtail.contrib.table_block.blocks.TableBlock(
table_options={"renderer": "html"}
),
),
(
"people_group",
wagtail.core.blocks.StructBlock(
[
(
"group_title",
wagtail.core.blocks.CharBlock(
label="Titulek", required=True
),
),
(
"person_list",
wagtail.core.blocks.ListBlock(
wagtail.core.blocks.PageChooserBlock(
label="Osoba",
page_type=[
"district.DistrictPersonPage",
"region.RegionPersonPage",
],
),
label="List osob",
),
),
]
),
),
],
blank=True,
verbose_name="Obsah",
),
),
]
......@@ -874,7 +874,7 @@ class RegionCenterPage(CalendarMixin, SubpageMixin, MetadataPageMixin, Page):
content = StreamField(
[
("text", RichTextBlock()),
("table", TableBlock()),
("table", TableBlock(table_options={"renderer": "html"})),
],
verbose_name="Obsah",
blank=True,
......@@ -987,7 +987,7 @@ class RegionCustomPage(SubpageMixin, MetadataPageMixin, Page):
content = StreamField(
[
("text", RichTextBlock()),
("table", TableBlock()),
("table", TableBlock(table_options={"renderer": "html"})),
("people_group", blocks.PeopleGroupListBlock()),
],
verbose_name="Obsah",
......
table caption {
font-weight: 700;
text-align: left;
}
.responsive-object {
position: relative;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment