From a5d9c58fdd5acc0fb5872e0239af9ed371977932 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexa=20Valentov=C3=A1?= <git@imaniti.org> Date: Tue, 25 Mar 2025 19:49:39 +0100 Subject: [PATCH] Improve newsletter list subscribe function --- ...homepage_ecomail_newsletter_list_source.py | 15 +- ...homepage_ecomail_newsletter_list_source.py | 15 +- majak/settings/base.py | 2 + ...oot_ecomail_newsletter_list_id_and_more.py | 23 +- ...wishroot_ecomail_newsletter_list_source.py | 15 +- .../0010_makeawishroot_fbevents_id.py | 11 +- make_a_wish/models.py | 2 +- shared/models/main.py | 8 +- shared/utils.py | 5 +- ...homepage_ecomail_newsletter_list_source.py | 15 +- ...0132_uniwebformpage_show_in_parent_page.py | 13 +- ...ter_uniwebflexiblepage_content_and_more.py | 4193 ++++++++++++++++- .../0134_uniwebhomepage_fbevents_id.py | 11 +- .../uniweb/blocks/embedded_subpage_form.html | 2 +- 14 files changed, 4261 insertions(+), 69 deletions(-) diff --git a/district/migrations/0318_districthomepage_ecomail_newsletter_list_source.py b/district/migrations/0318_districthomepage_ecomail_newsletter_list_source.py index d1ed4678..c07dd091 100644 --- a/district/migrations/0318_districthomepage_ecomail_newsletter_list_source.py +++ b/district/migrations/0318_districthomepage_ecomail_newsletter_list_source.py @@ -4,15 +4,20 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ - ('district', '0317_alter_districtarticlepage_content_and_more'), + ("district", "0317_alter_districtarticlepage_content_and_more"), ] operations = [ migrations.AddField( - model_name='districthomepage', - name='ecomail_newsletter_list_source', - field=models.CharField(blank=True, default='web-nl-generic', help_text='NenĂ nutno mÄ›nit.', null=True, verbose_name='Ecomail newsletter zdroj'), + model_name="districthomepage", + name="ecomail_newsletter_list_source", + field=models.CharField( + blank=True, + default="web-nl-generic", + help_text="NenĂ nutno mÄ›nit.", + null=True, + verbose_name="Ecomail newsletter zdroj", + ), ), ] diff --git a/main/migrations/0156_mainhomepage_ecomail_newsletter_list_source.py b/main/migrations/0156_mainhomepage_ecomail_newsletter_list_source.py index 3154c5e5..96f5aa75 100644 --- a/main/migrations/0156_mainhomepage_ecomail_newsletter_list_source.py +++ b/main/migrations/0156_mainhomepage_ecomail_newsletter_list_source.py @@ -4,15 +4,20 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ - ('main', '0155_alter_mainarticlepage_content_and_more'), + ("main", "0155_alter_mainarticlepage_content_and_more"), ] operations = [ migrations.AddField( - model_name='mainhomepage', - name='ecomail_newsletter_list_source', - field=models.CharField(blank=True, default='web-nl-generic', help_text='NenĂ nutno mÄ›nit.', null=True, verbose_name='Ecomail newsletter zdroj'), + model_name="mainhomepage", + name="ecomail_newsletter_list_source", + field=models.CharField( + blank=True, + default="web-nl-generic", + help_text="NenĂ nutno mÄ›nit.", + null=True, + verbose_name="Ecomail newsletter zdroj", + ), ), ] diff --git a/majak/settings/base.py b/majak/settings/base.py index b875d229..6beb8a91 100644 --- a/majak/settings/base.py +++ b/majak/settings/base.py @@ -311,6 +311,8 @@ MAILTRAIN_API_TOKEN = env.str("MAILTRAIN_API_TOKEN", default="") ECOMAIL_API_URL = env.str("ECOMAIL_API_URL", default="") ECOMAIL_API_KEY = env.str("ECOMAIL_API_KEY", default="") +# So Andrej doesn't complain about having to add another env variable. +ECOMAIL_DEFAULT_LIST_ID = env.int("ECOMAIL_DEFAULT_LIST_ID", default=4) CZECH_INSPIRATIONAL_NEWSLETTER_CID = env.str( "CZECH_INSPIRATIONAL_NEWSLETTER_CID", default="" diff --git a/make_a_wish/migrations/0008_makeawishroot_ecomail_newsletter_list_id_and_more.py b/make_a_wish/migrations/0008_makeawishroot_ecomail_newsletter_list_id_and_more.py index 69f8d0eb..914b845d 100644 --- a/make_a_wish/migrations/0008_makeawishroot_ecomail_newsletter_list_id_and_more.py +++ b/make_a_wish/migrations/0008_makeawishroot_ecomail_newsletter_list_id_and_more.py @@ -4,20 +4,27 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ - ('make_a_wish', '0007_makeawishroot_matomo_id'), + ("make_a_wish", "0007_makeawishroot_matomo_id"), ] operations = [ migrations.AddField( - model_name='makeawishroot', - name='ecomail_newsletter_list_id', - field=models.IntegerField(blank=True, null=True, verbose_name='ID Ecomail newsletteru'), + model_name="makeawishroot", + name="ecomail_newsletter_list_id", + field=models.IntegerField( + blank=True, null=True, verbose_name="ID Ecomail newsletteru" + ), ), migrations.AddField( - model_name='makeawishroot', - name='ecomail_newsletter_list_tags', - field=models.CharField(blank=True, help_text="OddÄ›lte čárkou, napĹ™Ăklad 'Tag1,Tag2,Tag3'. Bez mezer.", max_length=128, null=True, verbose_name='Tagy k pĹ™idánĂ novĂ˝m odbÄ›ratelĹŻm na Ecomailu'), + model_name="makeawishroot", + name="ecomail_newsletter_list_tags", + field=models.CharField( + blank=True, + help_text="OddÄ›lte čárkou, napĹ™Ăklad 'Tag1,Tag2,Tag3'. Bez mezer.", + max_length=128, + null=True, + verbose_name="Tagy k pĹ™idánĂ novĂ˝m odbÄ›ratelĹŻm na Ecomailu", + ), ), ] diff --git a/make_a_wish/migrations/0009_makeawishroot_ecomail_newsletter_list_source.py b/make_a_wish/migrations/0009_makeawishroot_ecomail_newsletter_list_source.py index c7fd7c73..7ba86197 100644 --- a/make_a_wish/migrations/0009_makeawishroot_ecomail_newsletter_list_source.py +++ b/make_a_wish/migrations/0009_makeawishroot_ecomail_newsletter_list_source.py @@ -4,15 +4,20 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ - ('make_a_wish', '0008_makeawishroot_ecomail_newsletter_list_id_and_more'), + ("make_a_wish", "0008_makeawishroot_ecomail_newsletter_list_id_and_more"), ] operations = [ migrations.AddField( - model_name='makeawishroot', - name='ecomail_newsletter_list_source', - field=models.CharField(blank=True, default='web-nl-generic', help_text='NenĂ nutno mÄ›nit.', null=True, verbose_name='Ecomail newsletter zdroj'), + model_name="makeawishroot", + name="ecomail_newsletter_list_source", + field=models.CharField( + blank=True, + default="web-nl-generic", + help_text="NenĂ nutno mÄ›nit.", + null=True, + verbose_name="Ecomail newsletter zdroj", + ), ), ] diff --git a/make_a_wish/migrations/0010_makeawishroot_fbevents_id.py b/make_a_wish/migrations/0010_makeawishroot_fbevents_id.py index 65287ce2..9c5d65a6 100644 --- a/make_a_wish/migrations/0010_makeawishroot_fbevents_id.py +++ b/make_a_wish/migrations/0010_makeawishroot_fbevents_id.py @@ -4,15 +4,16 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ - ('make_a_wish', '0009_makeawishroot_ecomail_newsletter_list_source'), + ("make_a_wish", "0009_makeawishroot_ecomail_newsletter_list_source"), ] operations = [ migrations.AddField( - model_name='makeawishroot', - name='fbevents_id', - field=models.CharField(blank=True, max_length=64, null=True, verbose_name='InternĂ ID 1'), + model_name="makeawishroot", + name="fbevents_id", + field=models.CharField( + blank=True, max_length=64, null=True, verbose_name="InternĂ ID 1" + ), ), ] diff --git a/make_a_wish/models.py b/make_a_wish/models.py index 336f0302..a51b6209 100644 --- a/make_a_wish/models.py +++ b/make_a_wish/models.py @@ -129,9 +129,9 @@ class MakeAWishRoot( subscribe_to_ecomail_newsletter( cleaned_data["e_mail"], - self.ecomail_newsletter_list_id, self.ecomail_newsletter_list_tags, self.ecomail_newsletter_list_source, + self.ecomail_newsletter_list_id, custom_data, ) diff --git a/shared/models/main.py b/shared/models/main.py index 37b0fff1..92698c92 100644 --- a/shared/models/main.py +++ b/shared/models/main.py @@ -1276,16 +1276,12 @@ class MainHomePageMixin( form.cleaned_data["email"], settings.PIRATICZ_NEWSLETTER_CID ) - if ( - hasattr(self, "ecomail_newsletter_list_id") - and self.ecomail_newsletter_list_id is not None - and self.ecomail_newsletter_list_id >= 1 - ): + if hasattr(self, "ecomail_newsletter_list_id"): subscribe_to_ecomail_newsletter( form.cleaned_data["email"], - self.ecomail_newsletter_list_id, self.ecomail_newsletter_list_tags, self.ecomail_newsletter_list_source, + self.ecomail_newsletter_list_id, ) messages.success( diff --git a/shared/utils.py b/shared/utils.py index 07654e3b..97291b60 100644 --- a/shared/utils.py +++ b/shared/utils.py @@ -72,14 +72,17 @@ def subscribe_to_newsletter(email, list_id): def subscribe_to_ecomail_newsletter( email: str, - list_id: int, categories: str, source: str, + list_id: int | None = None, custom_data: dict | None = None, ): if custom_data is None: custom_data = {} + if not list_id: + list_id = settings.ECOMAIL_DEFAULT_LIST_ID + split_categories = categories.split(",") if categories is not None else [] data = { diff --git a/uniweb/migrations/0131_uniwebhomepage_ecomail_newsletter_list_source.py b/uniweb/migrations/0131_uniwebhomepage_ecomail_newsletter_list_source.py index f1847295..b2e3c303 100644 --- a/uniweb/migrations/0131_uniwebhomepage_ecomail_newsletter_list_source.py +++ b/uniweb/migrations/0131_uniwebhomepage_ecomail_newsletter_list_source.py @@ -4,15 +4,20 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ - ('uniweb', '0130_uniwebhomepage_newsletter_list_id'), + ("uniweb", "0130_uniwebhomepage_newsletter_list_id"), ] operations = [ migrations.AddField( - model_name='uniwebhomepage', - name='ecomail_newsletter_list_source', - field=models.CharField(blank=True, default='web-nl-generic', help_text='NenĂ nutno mÄ›nit.', null=True, verbose_name='Ecomail newsletter zdroj'), + model_name="uniwebhomepage", + name="ecomail_newsletter_list_source", + field=models.CharField( + blank=True, + default="web-nl-generic", + help_text="NenĂ nutno mÄ›nit.", + null=True, + verbose_name="Ecomail newsletter zdroj", + ), ), ] diff --git a/uniweb/migrations/0132_uniwebformpage_show_in_parent_page.py b/uniweb/migrations/0132_uniwebformpage_show_in_parent_page.py index 98a38b71..68e689bd 100644 --- a/uniweb/migrations/0132_uniwebformpage_show_in_parent_page.py +++ b/uniweb/migrations/0132_uniwebformpage_show_in_parent_page.py @@ -4,15 +4,18 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ - ('uniweb', '0131_uniwebhomepage_ecomail_newsletter_list_source'), + ("uniweb", "0131_uniwebhomepage_ecomail_newsletter_list_source"), ] operations = [ migrations.AddField( - model_name='uniwebformpage', - name='show_in_parent_page', - field=models.BooleanField(default=False, help_text='Pokud je toto pole zaškrtnutĂ©, formulář se pĹ™esune do nadĹ™azenĂ© stránky a stránka jemu nadĹ™azená bude nedostupná.', verbose_name='Ukazovat obsah formuláře v nadĹ™azenĂ© stránce?'), + model_name="uniwebformpage", + name="show_in_parent_page", + field=models.BooleanField( + default=False, + help_text="Pokud je toto pole zaškrtnutĂ©, formulář se pĹ™esune do nadĹ™azenĂ© stránky a stránka jemu nadĹ™azená bude nedostupná.", + verbose_name="Ukazovat obsah formuláře v nadĹ™azenĂ© stránce?", + ), ), ] diff --git a/uniweb/migrations/0133_alter_uniwebflexiblepage_content_and_more.py b/uniweb/migrations/0133_alter_uniwebflexiblepage_content_and_more.py index e4f7acce..6155a34c 100644 --- a/uniweb/migrations/0133_alter_uniwebflexiblepage_content_and_more.py +++ b/uniweb/migrations/0133_alter_uniwebflexiblepage_content_and_more.py @@ -5,35 +5,4194 @@ from django.db import migrations class Migration(migrations.Migration): - dependencies = [ - ('uniweb', '0132_uniwebformpage_show_in_parent_page'), + ("uniweb", "0132_uniwebformpage_show_in_parent_page"), ] operations = [ migrations.AlterField( - model_name='uniwebflexiblepage', - name='content', - field=wagtail.fields.StreamField([('text', 0), ('advanced_text', 4), ('two_columns_text', 7), ('headline', 12), ('headline_with_picture', 15), ('picture_list', 19), ('flip_cards', 30), ('table', 31), ('popout_table', 32), ('gallery', 35), ('figure', 38), ('card', 63), ('two_columns', 73), ('three_columns', 75), ('youtube', 76), ('map_point', 53), ('map_collection', 60), ('button', 68), ('button_group', 70), ('popout_point', 79), ('calendar', 82), ('subpage_form', 84), ('newsletter', 89)], blank=True, block_lookup={0: ('wagtail.blocks.RichTextBlock', (), {'features': ['h2', 'h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], 'group': '1. Text', 'label': 'TextovĂ˝ editor', 'template': 'styleguide2/includes/atoms/text/prose_richtext.html'}), 1: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('left', 'vlevo'), ('center', 'uprostĹ™ed'), ('right', 'vpravo')], 'label': 'zarovnánĂ'}), 2: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('black_on_white', 'ÄŤerná na bĂlĂ©'), ('black_on_yellow', 'ÄŤerná na ĹľlutĂ©'), ('white_on_black', 'bĂlá na ÄŤernĂ©'), ('white_on_blue', 'bĂlá na modrĂ©'), ('white_on_cyan', 'bĂlá na tyrkysovĂ©'), ('white_on_violet', 'bĂlá na fialovĂ©')], 'label': 'barva'}), 3: ('wagtail.blocks.RichTextBlock', (), {'features': ['h2', 'h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], 'group': '1. Text', 'label': 'TextovĂ˝ editor'}), 4: ('wagtail.blocks.StructBlock', [[('align', 1), ('color', 2), ('text', 3)]], {}), 5: ('wagtail.blocks.RichTextBlock', (), {'features': ['h2', 'h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], 'label': 'levĂ˝ sloupec'}), 6: ('wagtail.blocks.RichTextBlock', (), {'features': ['h2', 'h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], 'label': 'pravĂ˝ sloupec'}), 7: ('wagtail.blocks.StructBlock', [[('left_text', 5), ('right_text', 6)]], {}), 8: ('wagtail.blocks.CharBlock', (), {'label': 'Nadpis', 'max_length': 300, 'required': True}), 9: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('h1', 'H1'), ('h2', 'H2'), ('h3', 'H3'), ('h4', 'H4'), ('h5', 'H5'), ('h6', 'H6')], 'help_text': 'ÄŚĂm nižšà čĂslo, tĂm vyššà úroveĹ.', 'label': 'ĂšroveĹ nadpisu'}), 10: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('head-alt-xl', 'VelkĂ˝, Bebas Neue - 6XL'), ('head-alt-lg', 'StĹ™ednĂ, Bebas Neue - 4XL'), ('head-alt-md', 'ZákladnĂ velikost - Roboto - MD'), ('head-alt-sm', 'MalĂ˝ - Roboto - SM'), ('head-alt-xs', 'Extra malĂ˝ - Roboto - XS')], 'help_text': 'Náhled si prohlĂ©dnÄ›te na https://styleguide2.pirati.cz/pattern/patterns/atoms/text/headings.html.', 'label': 'Velikost'}), 11: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('auto', 'Automaticky'), ('center', 'Na stĹ™ed')], 'label': 'ZarovnánĂ'}), 12: ('wagtail.blocks.StructBlock', [[('headline', 8), ('tag', 9), ('style', 10), ('align', 11)]], {}), 13: ('wagtail.blocks.CharBlock', (), {'label': 'nadpis'}), 14: ('wagtail.images.blocks.ImageChooserBlock', (), {'help_text': 'rozmÄ›r na výšku 75px nebo vĂce (obrázek bude zmenšen na výšku 75px)', 'label': 'obrázek'}), 15: ('wagtail.blocks.StructBlock', [[('color', 2), ('title', 13), ('picture', 14)]], {}), 16: ('wagtail.blocks.RichTextBlock', (), {'features': ['h2', 'h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], 'label': 'Odstavec'}), 17: ('wagtail.blocks.ListBlock', (16,), {'label': 'Odstavce'}), 18: ('wagtail.images.blocks.ImageChooserBlock', (), {'help_text': 'RozmÄ›r 30x30px nebo vĂce (obrázek bude zmenšen na 30x30px)', 'label': 'Obrázek'}), 19: ('wagtail.blocks.StructBlock', [[('color', 2), ('items', 17), ('picture', 18)]], {}), 20: ('wagtail.blocks.CharBlock', (), {'default': 'FEC900', 'help_text': "KĂłd barvy lze vytvoĹ™it napĹ™. <a href='https://mdn.github.io/css-examples/tools/color-picker/' target='_blank'>zde</a>.", 'label': 'Barva pozadĂ'}), 21: ('wagtail.images.blocks.ImageChooserBlock', (), {'help_text': 'Nahrazuje pozadĂ. Nelze vybrat obÄ› najednou.', 'label': 'Obrázek', 'required': False}), 22: ('wagtail.images.blocks.ImageChooserBlock', (), {'help_text': 'Nahrazuje obrázek. Nelze vybrat obÄ› najednou.', 'label': 'PozadĂ', 'required': False}), 23: ('wagtail.blocks.TextBlock', (), {'help_text': 'ĹádkovánĂ je manuálnĂ.', 'label': 'Nadpis'}), 24: ('wagtail.blocks.CharBlock', (), {'default': '000000', 'help_text': "KĂłd barvy lze vytvoĹ™it napĹ™. <a href='https://mdn.github.io/css-examples/tools/color-picker/' target='_blank'>zde</a>.", 'label': 'Barva textu'}), 25: ('wagtail.blocks.RichTextBlock', (), {'label': 'Obsah'}), 26: ('wagtail.blocks.CharBlock', (), {'help_text': 'Pokud nenĂ vyplnÄ›n, tlaÄŤĂtko se neukáže.', 'label': 'Nadpis tlaÄŤĂtka', 'required': False}), 27: ('wagtail.blocks.CharBlock', (), {'label': 'Odkaz tlaÄŤĂtka', 'required': False}), 28: ('wagtail.blocks.StructBlock', [[('bg_color', 20), ('image', 21), ('background', 22), ('title', 23), ('title_color', 24), ('content', 25), ('button_text', 26), ('button_url', 27)]], {'label': 'Karta'}), 29: ('wagtail.blocks.ListBlock', (28,), {'label': 'Karty'}), 30: ('wagtail.blocks.StructBlock', [[('cards', 29)]], {}), 31: ('wagtail.contrib.table_block.blocks.TableBlock', (), {'group': '3. OstatnĂ', 'label': 'Tabulka', 'template': 'styleguide2/includes/atoms/table/table.html'}), 32: ('wagtail.contrib.table_block.blocks.TableBlock', (), {'group': '3. OstatnĂ', 'label': 'RozbalovacĂ tabulka', 'template': 'styleguide2/includes/atoms/table/popout_table.html'}), 33: ('wagtail.images.blocks.ImageChooserBlock', (), {'label': 'obrázek', 'required': True}), 34: ('wagtail.blocks.ListBlock', (33,), {'group': '3. OstatnĂ', 'icon': 'image', 'label': 'Galerie'}), 35: ('wagtail.blocks.StructBlock', [[('gallery_items', 34)]], {'label': 'Galerie'}), 36: ('wagtail.images.blocks.ImageChooserBlock', (), {'label': 'Obrázek', 'required': True}), 37: ('wagtail.blocks.TextBlock', (), {'label': 'Popisek', 'required': False}), 38: ('wagtail.blocks.StructBlock', [[('img', 36), ('caption', 37)]], {}), 39: ('wagtail.images.blocks.ImageChooserBlock', (), {'label': 'Obrázek', 'required': False}), 40: ('wagtail.blocks.TextBlock', (), {'label': 'Titulek', 'required': False}), 41: ('wagtail.images.blocks.ImageChooserBlock', (), {'help_text': 'NenĂ tĹ™eba vyplĹovat, náhled bude dohledán automaticky.', 'label': 'Náhled videa (automatickĂ© pole)', 'required': False}), 42: ('wagtail.blocks.URLBlock', (), {'help_text': 'Odkaz na YouTube video bude automaticky zkonvertován na ID videa a NEBUDE uloĹľen.', 'label': 'Odkaz na video', 'required': False}), 43: ('wagtail.blocks.CharBlock', (), {'help_text': 'NenĂ tĹ™eba vyplĹovat, bude automaticky naÄŤteno z odkazu.', 'label': 'ID videa (automatickĂ© pole)', 'required': False}), 44: ('wagtail.blocks.BooleanBlock', (), {'default': False, 'help_text': 'Pokud toto pole nenĂ zaškrtlĂ©, video bude užšà neĹľ text okolo.', 'label': 'ZabĂrá maximálnà šĂĹ™ku povolenou pro text?', 'required': False}), 45: ('wagtail.blocks.BooleanBlock', (), {'default': False, 'help_text': 'Automaticky spustĂ video bez zvuku. Pozor, nÄ›kterĂ© prohlĂĹľeÄŤe blokujĂ i automatickĂ© pĹ™ehrávánĂ videĂ bez zvuku.', 'label': 'Spustit video automaticky?', 'required': False}), 46: ('wagtail.blocks.StructBlock', [[('poster_image', 41), ('video_url', 42), ('video_id', 43), ('is_full_width', 44), ('autoplay', 45)]], {}), 47: ('wagtail.blocks.DecimalBlock', (), {'help_text': 'NapĹ™. 50.04075', 'label': 'ZemÄ›pisná šĂĹ™ka'}), 48: ('wagtail.blocks.DecimalBlock', (), {'help_text': 'NapĹ™. 15.77659', 'label': 'ZemÄ›pisná dĂ©lka'}), 49: ('wagtail.blocks.CharBlock', (), {'default': '000000', 'help_text': 'Zadejte barvu pomocĂ HEX notace (bez # na začátku).', 'label': 'Barva špendlĂku (HEX)'}), 50: ('wagtail.blocks.IntegerBlock', (), {'default': 15, 'label': 'VĂ˝chozĂ zoom', 'max_value': 18, 'min_value': 1}), 51: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('osm-mapnik', 'OSM Mapnik'), ('stadia-osm-bright', 'Stadia OSM Bright'), ('stadia-outdoors', 'Stadia Outdoors'), ('mapbox-streets', 'Mapbox Streets'), ('mapbox-outdoors', 'Mapbox Outdoors'), ('mapbox-light', 'Mapbox Light'), ('mapbox-dark', 'Mapbox Dark'), ('mapbox-satellite', 'Mapbox Satellite'), ('mapbox-pirate', 'Mapbox Pirate Theme')], 'label': 'Styl'}), 52: ('wagtail.blocks.IntegerBlock', (), {'label': 'Výška v px', 'max_value': 1000, 'min_value': 100}), 53: ('wagtail.blocks.StructBlock', [[('lat', 47), ('lon', 48), ('hex_color', 49), ('zoom', 50), ('style', 51), ('height', 52)]], {'label': 'Ĺ pendlĂk na mapÄ›'}), 54: ('wagtail.blocks.CharBlock', (), {'label': 'Titulek', 'required': True}), 55: ('wagtail.blocks.TextBlock', (), {'help_text': "VloĹľte surovĂ˝ GeoJSON objekt typu 'Feature'. Vyrobit jej mĹŻĹľete napĹ™. pomocĂ online sluĹľby geojson.io. Pokud u objektu poskytnete properties 'title' a 'description', zobrazĂ se jak na mapÄ›, tak i v detailu.", 'label': 'Geodata', 'required': True}), 56: ('wagtail.blocks.URLBlock', (), {'label': 'Odkaz', 'required': False}), 57: ('wagtail.blocks.CharBlock', (), {'default': '000000', 'help_text': 'Zadejte barvu pomocĂ HEX notace (bez # na začátku).', 'label': 'Barva (HEX)'}), 58: ('wagtail.blocks.StructBlock', [[('title', 54), ('description', 37), ('geojson', 55), ('image', 39), ('link', 56), ('hex_color', 57)]], {'required': True}), 59: ('wagtail.blocks.ListBlock', (58,), {'label': 'Součásti'}), 60: ('wagtail.blocks.StructBlock', [[('features', 59), ('zoom', 50), ('style', 51), ('height', 52)]], {'label': 'Mapová kolekce'}), 61: ('wagtail.blocks.StreamBlock', [[('text', 3), ('table', 31), ('figure', 38), ('youtube', 46), ('map_point', 53), ('map_collection', 60)]], {'label': 'Obsah', 'required': False}), 62: ('wagtail.blocks.PageChooserBlock', (), {'label': 'Stránka', 'required': False}), 63: ('wagtail.blocks.StructBlock', [[('img', 39), ('headline', 40), ('content', 61), ('page', 62), ('link', 56)]], {}), 64: ('wagtail.blocks.CharBlock', (), {'label': 'Titulek', 'max_length': 128, 'required': True}), 65: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('black', 'ÄŚerná'), ('white', 'BĂlá'), ('pirati-yellow', 'Ĺ˝lutá'), ('grey-125', 'SvÄ›tle šedá'), ('blue-300', 'Modrá'), ('cyan-200', 'Tyrkysová'), ('green-400', 'Zelená'), ('violet-400', 'VĂnová'), ('red-600', 'ÄŚervená')], 'label': 'Barva'}), 66: ('wagtail.blocks.BooleanBlock', (), {'default': True, 'help_text': 'Pokud je zapnuto, tlaÄŤĂtko pĹ™i najetĂ kurzorem ukáže Ĺľlutou šipku.', 'label': 'Animovat na hover', 'required': False}), 67: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('normal', 'NormálnĂ'), ('large', 'Velká'), ('huge', 'MasivnĂ')], 'label': 'Velikost tlaÄŤĂtka'}), 68: ('wagtail.blocks.StructBlock', [[('title', 64), ('color', 65), ('hoveractive', 66), ('page', 62), ('link', 56), ('align', 11), ('size', 67)]], {}), 69: ('wagtail.blocks.ListBlock', (68,), {'label': 'TlaÄŤĂtka'}), 70: ('wagtail.blocks.StructBlock', [[('buttons', 69)]], {}), 71: ('wagtail.blocks.StreamBlock', [[('text', 3), ('table', 31), ('card', 63), ('figure', 38), ('youtube', 46), ('map_point', 53), ('map_collection', 60), ('button', 68), ('button_group', 70)]], {'label': 'Obsah levĂ©ho sloupce', 'required': True}), 72: ('wagtail.blocks.StreamBlock', [[('text', 3), ('table', 31), ('card', 63), ('figure', 38), ('youtube', 46), ('map_point', 53), ('map_collection', 60), ('button', 68), ('button_group', 70)]], {'label': 'Obsah pravĂ©ho sloupce', 'required': True}), 73: ('wagtail.blocks.StructBlock', [[('left_column_content', 71), ('right_column_content', 72)]], {}), 74: ('wagtail.blocks.StreamBlock', [[('text', 3), ('table', 31), ('card', 63), ('figure', 38), ('youtube', 46), ('map_point', 53), ('map_collection', 60), ('button', 68), ('button_group', 70)]], {'label': 'Obsah prostĹ™ednĂho sloupce', 'required': True}), 75: ('wagtail.blocks.StructBlock', [[('left_column_content', 71), ('middle_column_content', 74), ('right_column_content', 72)]], {}), 76: ('wagtail.blocks.StructBlock', [[('poster_image', 41), ('video_url', 42), ('video_id', 43), ('is_full_width', 44), ('autoplay', 45)]], {'label': 'YouTube video'}), 77: ('wagtail.blocks.CharBlock', (), {'label': 'Název', 'required': True}), 78: ('wagtail.blocks.StreamBlock', [[('text', 0), ('headline', 12), ('table', 31)]], {'label': 'Obsah'}), 79: ('wagtail.blocks.StructBlock', [[('name', 77), ('content', 78)]], {}), 80: ('wagtail.blocks.CharBlock', (), {'label': 'Titulek', 'required': False}), 81: ('wagtail.blocks.static_block.StaticBlock', (), {'admin_text': 'Adresa kalendáře se zadává v nastavenĂ hlavnĂ stránky webu', 'label': 'Volba kalendáře'}), 82: ('wagtail.blocks.StructBlock', [[('title', 80), ('info', 81)]], {}), 83: ('wagtail.blocks.PageChooserBlock', (), {'label': 'Formulářová stránka', 'page_type': ['uniweb.UniwebFormPage']}), 84: ('wagtail.blocks.StructBlock', [[('page', 83)]], {}), 85: ('wagtail.blocks.CharBlock', (), {'help_text': 'Pokud toto pole zĹŻstane nevyplnÄ›nĂ©, pouĹľije se nastavenĂ tohoto webu. V takovĂ©m pĹ™ĂpadÄ› se mĹŻĹľe pĹ™idat i odbÄ›ratel do Ecomailu.', 'label': 'ID newsletteru v Mailtrainu', 'required': False}), 86: ('wagtail.blocks.CharBlock', (), {'default': 'OdebĂrej náš', 'label': 'Nadpis bloku (1. řádek)', 'required': True}), 87: ('wagtail.blocks.CharBlock', (), {'default': 'newsletter', 'label': 'Nadpis bloku (2. řádek)', 'required': True}), 88: ('wagtail.blocks.CharBlock', (), {'default': 'Fake news tam nenajdeš, ale dozvĂš se, co chystáme doopravdy!', 'label': 'Popis newsletteru', 'required': True}), 89: ('wagtail.blocks.StructBlock', [[('list_id', 85), ('title_line_1', 86), ('title_line_2', 87), ('description', 88)]], {})}, verbose_name='obsah stránky'), + model_name="uniwebflexiblepage", + name="content", + field=wagtail.fields.StreamField( + [ + ("text", 0), + ("advanced_text", 4), + ("two_columns_text", 7), + ("headline", 12), + ("headline_with_picture", 15), + ("picture_list", 19), + ("flip_cards", 30), + ("table", 31), + ("popout_table", 32), + ("gallery", 35), + ("figure", 38), + ("card", 63), + ("two_columns", 73), + ("three_columns", 75), + ("youtube", 76), + ("map_point", 53), + ("map_collection", 60), + ("button", 68), + ("button_group", 70), + ("popout_point", 79), + ("calendar", 82), + ("subpage_form", 84), + ("newsletter", 89), + ], + blank=True, + block_lookup={ + 0: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "h2", + "h3", + "h4", + "h5", + "bold", + "italic", + "ol", + "ul", + "hr", + "link", + "document-link", + "image", + "superscript", + "subscript", + "strikethrough", + "blockquote", + "embed", + ], + "group": "1. Text", + "label": "TextovĂ˝ editor", + "template": "styleguide2/includes/atoms/text/prose_richtext.html", + }, + ), + 1: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("left", "vlevo"), + ("center", "uprostĹ™ed"), + ("right", "vpravo"), + ], + "label": "zarovnánĂ", + }, + ), + 2: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("black_on_white", "ÄŤerná na bĂlĂ©"), + ("black_on_yellow", "ÄŤerná na ĹľlutĂ©"), + ("white_on_black", "bĂlá na ÄŤernĂ©"), + ("white_on_blue", "bĂlá na modrĂ©"), + ("white_on_cyan", "bĂlá na tyrkysovĂ©"), + ("white_on_violet", "bĂlá na fialovĂ©"), + ], + "label": "barva", + }, + ), + 3: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "h2", + "h3", + "h4", + "h5", + "bold", + "italic", + "ol", + "ul", + "hr", + "link", + "document-link", + "image", + "superscript", + "subscript", + "strikethrough", + "blockquote", + "embed", + ], + "group": "1. Text", + "label": "TextovĂ˝ editor", + }, + ), + 4: ( + "wagtail.blocks.StructBlock", + [[("align", 1), ("color", 2), ("text", 3)]], + {}, + ), + 5: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "h2", + "h3", + "h4", + "h5", + "bold", + "italic", + "ol", + "ul", + "hr", + "link", + "document-link", + "image", + "superscript", + "subscript", + "strikethrough", + "blockquote", + "embed", + ], + "label": "levĂ˝ sloupec", + }, + ), + 6: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "h2", + "h3", + "h4", + "h5", + "bold", + "italic", + "ol", + "ul", + "hr", + "link", + "document-link", + "image", + "superscript", + "subscript", + "strikethrough", + "blockquote", + "embed", + ], + "label": "pravĂ˝ sloupec", + }, + ), + 7: ( + "wagtail.blocks.StructBlock", + [[("left_text", 5), ("right_text", 6)]], + {}, + ), + 8: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Nadpis", "max_length": 300, "required": True}, + ), + 9: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("h1", "H1"), + ("h2", "H2"), + ("h3", "H3"), + ("h4", "H4"), + ("h5", "H5"), + ("h6", "H6"), + ], + "help_text": "ÄŚĂm nižšà čĂslo, tĂm vyššà úroveĹ.", + "label": "ĂšroveĹ nadpisu", + }, + ), + 10: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("head-alt-xl", "VelkĂ˝, Bebas Neue - 6XL"), + ("head-alt-lg", "StĹ™ednĂ, Bebas Neue - 4XL"), + ("head-alt-md", "ZákladnĂ velikost - Roboto - MD"), + ("head-alt-sm", "MalĂ˝ - Roboto - SM"), + ("head-alt-xs", "Extra malĂ˝ - Roboto - XS"), + ], + "help_text": "Náhled si prohlĂ©dnÄ›te na https://styleguide2.pirati.cz/pattern/patterns/atoms/text/headings.html.", + "label": "Velikost", + }, + ), + 11: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("auto", "Automaticky"), + ("center", "Na stĹ™ed"), + ], + "label": "ZarovnánĂ", + }, + ), + 12: ( + "wagtail.blocks.StructBlock", + [[("headline", 8), ("tag", 9), ("style", 10), ("align", 11)]], + {}, + ), + 13: ("wagtail.blocks.CharBlock", (), {"label": "nadpis"}), + 14: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + { + "help_text": "rozmÄ›r na výšku 75px nebo vĂce (obrázek bude zmenšen na výšku 75px)", + "label": "obrázek", + }, + ), + 15: ( + "wagtail.blocks.StructBlock", + [[("color", 2), ("title", 13), ("picture", 14)]], + {}, + ), + 16: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "h2", + "h3", + "h4", + "h5", + "bold", + "italic", + "ol", + "ul", + "hr", + "link", + "document-link", + "image", + "superscript", + "subscript", + "strikethrough", + "blockquote", + "embed", + ], + "label": "Odstavec", + }, + ), + 17: ("wagtail.blocks.ListBlock", (16,), {"label": "Odstavce"}), + 18: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + { + "help_text": "RozmÄ›r 30x30px nebo vĂce (obrázek bude zmenšen na 30x30px)", + "label": "Obrázek", + }, + ), + 19: ( + "wagtail.blocks.StructBlock", + [[("color", 2), ("items", 17), ("picture", 18)]], + {}, + ), + 20: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "FEC900", + "help_text": "KĂłd barvy lze vytvoĹ™it napĹ™. <a href='https://mdn.github.io/css-examples/tools/color-picker/' target='_blank'>zde</a>.", + "label": "Barva pozadĂ", + }, + ), + 21: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + { + "help_text": "Nahrazuje pozadĂ. Nelze vybrat obÄ› najednou.", + "label": "Obrázek", + "required": False, + }, + ), + 22: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + { + "help_text": "Nahrazuje obrázek. Nelze vybrat obÄ› najednou.", + "label": "PozadĂ", + "required": False, + }, + ), + 23: ( + "wagtail.blocks.TextBlock", + (), + {"help_text": "ĹádkovánĂ je manuálnĂ.", "label": "Nadpis"}, + ), + 24: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "000000", + "help_text": "KĂłd barvy lze vytvoĹ™it napĹ™. <a href='https://mdn.github.io/css-examples/tools/color-picker/' target='_blank'>zde</a>.", + "label": "Barva textu", + }, + ), + 25: ("wagtail.blocks.RichTextBlock", (), {"label": "Obsah"}), + 26: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "Pokud nenĂ vyplnÄ›n, tlaÄŤĂtko se neukáže.", + "label": "Nadpis tlaÄŤĂtka", + "required": False, + }, + ), + 27: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Odkaz tlaÄŤĂtka", "required": False}, + ), + 28: ( + "wagtail.blocks.StructBlock", + [ + [ + ("bg_color", 20), + ("image", 21), + ("background", 22), + ("title", 23), + ("title_color", 24), + ("content", 25), + ("button_text", 26), + ("button_url", 27), + ] + ], + {"label": "Karta"}, + ), + 29: ("wagtail.blocks.ListBlock", (28,), {"label": "Karty"}), + 30: ("wagtail.blocks.StructBlock", [[("cards", 29)]], {}), + 31: ( + "wagtail.contrib.table_block.blocks.TableBlock", + (), + { + "group": "3. OstatnĂ", + "label": "Tabulka", + "template": "styleguide2/includes/atoms/table/table.html", + }, + ), + 32: ( + "wagtail.contrib.table_block.blocks.TableBlock", + (), + { + "group": "3. OstatnĂ", + "label": "RozbalovacĂ tabulka", + "template": "styleguide2/includes/atoms/table/popout_table.html", + }, + ), + 33: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + {"label": "obrázek", "required": True}, + ), + 34: ( + "wagtail.blocks.ListBlock", + (33,), + {"group": "3. OstatnĂ", "icon": "image", "label": "Galerie"}, + ), + 35: ( + "wagtail.blocks.StructBlock", + [[("gallery_items", 34)]], + {"label": "Galerie"}, + ), + 36: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + {"label": "Obrázek", "required": True}, + ), + 37: ( + "wagtail.blocks.TextBlock", + (), + {"label": "Popisek", "required": False}, + ), + 38: ( + "wagtail.blocks.StructBlock", + [[("img", 36), ("caption", 37)]], + {}, + ), + 39: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + {"label": "Obrázek", "required": False}, + ), + 40: ( + "wagtail.blocks.TextBlock", + (), + {"label": "Titulek", "required": False}, + ), + 41: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + { + "help_text": "NenĂ tĹ™eba vyplĹovat, náhled bude dohledán automaticky.", + "label": "Náhled videa (automatickĂ© pole)", + "required": False, + }, + ), + 42: ( + "wagtail.blocks.URLBlock", + (), + { + "help_text": "Odkaz na YouTube video bude automaticky zkonvertován na ID videa a NEBUDE uloĹľen.", + "label": "Odkaz na video", + "required": False, + }, + ), + 43: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "NenĂ tĹ™eba vyplĹovat, bude automaticky naÄŤteno z odkazu.", + "label": "ID videa (automatickĂ© pole)", + "required": False, + }, + ), + 44: ( + "wagtail.blocks.BooleanBlock", + (), + { + "default": False, + "help_text": "Pokud toto pole nenĂ zaškrtlĂ©, video bude užšà neĹľ text okolo.", + "label": "ZabĂrá maximálnà šĂĹ™ku povolenou pro text?", + "required": False, + }, + ), + 45: ( + "wagtail.blocks.BooleanBlock", + (), + { + "default": False, + "help_text": "Automaticky spustĂ video bez zvuku. Pozor, nÄ›kterĂ© prohlĂĹľeÄŤe blokujĂ i automatickĂ© pĹ™ehrávánĂ videĂ bez zvuku.", + "label": "Spustit video automaticky?", + "required": False, + }, + ), + 46: ( + "wagtail.blocks.StructBlock", + [ + [ + ("poster_image", 41), + ("video_url", 42), + ("video_id", 43), + ("is_full_width", 44), + ("autoplay", 45), + ] + ], + {}, + ), + 47: ( + "wagtail.blocks.DecimalBlock", + (), + {"help_text": "NapĹ™. 50.04075", "label": "ZemÄ›pisná šĂĹ™ka"}, + ), + 48: ( + "wagtail.blocks.DecimalBlock", + (), + {"help_text": "NapĹ™. 15.77659", "label": "ZemÄ›pisná dĂ©lka"}, + ), + 49: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "000000", + "help_text": "Zadejte barvu pomocĂ HEX notace (bez # na začátku).", + "label": "Barva špendlĂku (HEX)", + }, + ), + 50: ( + "wagtail.blocks.IntegerBlock", + (), + { + "default": 15, + "label": "VĂ˝chozĂ zoom", + "max_value": 18, + "min_value": 1, + }, + ), + 51: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("osm-mapnik", "OSM Mapnik"), + ("stadia-osm-bright", "Stadia OSM Bright"), + ("stadia-outdoors", "Stadia Outdoors"), + ("mapbox-streets", "Mapbox Streets"), + ("mapbox-outdoors", "Mapbox Outdoors"), + ("mapbox-light", "Mapbox Light"), + ("mapbox-dark", "Mapbox Dark"), + ("mapbox-satellite", "Mapbox Satellite"), + ("mapbox-pirate", "Mapbox Pirate Theme"), + ], + "label": "Styl", + }, + ), + 52: ( + "wagtail.blocks.IntegerBlock", + (), + {"label": "Výška v px", "max_value": 1000, "min_value": 100}, + ), + 53: ( + "wagtail.blocks.StructBlock", + [ + [ + ("lat", 47), + ("lon", 48), + ("hex_color", 49), + ("zoom", 50), + ("style", 51), + ("height", 52), + ] + ], + {"label": "Ĺ pendlĂk na mapÄ›"}, + ), + 54: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Titulek", "required": True}, + ), + 55: ( + "wagtail.blocks.TextBlock", + (), + { + "help_text": "VloĹľte surovĂ˝ GeoJSON objekt typu 'Feature'. Vyrobit jej mĹŻĹľete napĹ™. pomocĂ online sluĹľby geojson.io. Pokud u objektu poskytnete properties 'title' a 'description', zobrazĂ se jak na mapÄ›, tak i v detailu.", + "label": "Geodata", + "required": True, + }, + ), + 56: ( + "wagtail.blocks.URLBlock", + (), + {"label": "Odkaz", "required": False}, + ), + 57: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "000000", + "help_text": "Zadejte barvu pomocĂ HEX notace (bez # na začátku).", + "label": "Barva (HEX)", + }, + ), + 58: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 54), + ("description", 37), + ("geojson", 55), + ("image", 39), + ("link", 56), + ("hex_color", 57), + ] + ], + {"required": True}, + ), + 59: ("wagtail.blocks.ListBlock", (58,), {"label": "Součásti"}), + 60: ( + "wagtail.blocks.StructBlock", + [ + [ + ("features", 59), + ("zoom", 50), + ("style", 51), + ("height", 52), + ] + ], + {"label": "Mapová kolekce"}, + ), + 61: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 3), + ("table", 31), + ("figure", 38), + ("youtube", 46), + ("map_point", 53), + ("map_collection", 60), + ] + ], + {"label": "Obsah", "required": False}, + ), + 62: ( + "wagtail.blocks.PageChooserBlock", + (), + {"label": "Stránka", "required": False}, + ), + 63: ( + "wagtail.blocks.StructBlock", + [ + [ + ("img", 39), + ("headline", 40), + ("content", 61), + ("page", 62), + ("link", 56), + ] + ], + {}, + ), + 64: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Titulek", "max_length": 128, "required": True}, + ), + 65: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("black", "ÄŚerná"), + ("white", "BĂlá"), + ("pirati-yellow", "Ĺ˝lutá"), + ("grey-125", "SvÄ›tle šedá"), + ("blue-300", "Modrá"), + ("cyan-200", "Tyrkysová"), + ("green-400", "Zelená"), + ("violet-400", "VĂnová"), + ("red-600", "ÄŚervená"), + ], + "label": "Barva", + }, + ), + 66: ( + "wagtail.blocks.BooleanBlock", + (), + { + "default": True, + "help_text": "Pokud je zapnuto, tlaÄŤĂtko pĹ™i najetĂ kurzorem ukáže Ĺľlutou šipku.", + "label": "Animovat na hover", + "required": False, + }, + ), + 67: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("normal", "NormálnĂ"), + ("large", "Velká"), + ("huge", "MasivnĂ"), + ], + "label": "Velikost tlaÄŤĂtka", + }, + ), + 68: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 64), + ("color", 65), + ("hoveractive", 66), + ("page", 62), + ("link", 56), + ("align", 11), + ("size", 67), + ] + ], + {}, + ), + 69: ("wagtail.blocks.ListBlock", (68,), {"label": "TlaÄŤĂtka"}), + 70: ("wagtail.blocks.StructBlock", [[("buttons", 69)]], {}), + 71: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 3), + ("table", 31), + ("card", 63), + ("figure", 38), + ("youtube", 46), + ("map_point", 53), + ("map_collection", 60), + ("button", 68), + ("button_group", 70), + ] + ], + {"label": "Obsah levĂ©ho sloupce", "required": True}, + ), + 72: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 3), + ("table", 31), + ("card", 63), + ("figure", 38), + ("youtube", 46), + ("map_point", 53), + ("map_collection", 60), + ("button", 68), + ("button_group", 70), + ] + ], + {"label": "Obsah pravĂ©ho sloupce", "required": True}, + ), + 73: ( + "wagtail.blocks.StructBlock", + [[("left_column_content", 71), ("right_column_content", 72)]], + {}, + ), + 74: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 3), + ("table", 31), + ("card", 63), + ("figure", 38), + ("youtube", 46), + ("map_point", 53), + ("map_collection", 60), + ("button", 68), + ("button_group", 70), + ] + ], + {"label": "Obsah prostĹ™ednĂho sloupce", "required": True}, + ), + 75: ( + "wagtail.blocks.StructBlock", + [ + [ + ("left_column_content", 71), + ("middle_column_content", 74), + ("right_column_content", 72), + ] + ], + {}, + ), + 76: ( + "wagtail.blocks.StructBlock", + [ + [ + ("poster_image", 41), + ("video_url", 42), + ("video_id", 43), + ("is_full_width", 44), + ("autoplay", 45), + ] + ], + {"label": "YouTube video"}, + ), + 77: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Název", "required": True}, + ), + 78: ( + "wagtail.blocks.StreamBlock", + [[("text", 0), ("headline", 12), ("table", 31)]], + {"label": "Obsah"}, + ), + 79: ( + "wagtail.blocks.StructBlock", + [[("name", 77), ("content", 78)]], + {}, + ), + 80: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Titulek", "required": False}, + ), + 81: ( + "wagtail.blocks.static_block.StaticBlock", + (), + { + "admin_text": "Adresa kalendáře se zadává v nastavenĂ hlavnĂ stránky webu", + "label": "Volba kalendáře", + }, + ), + 82: ( + "wagtail.blocks.StructBlock", + [[("title", 80), ("info", 81)]], + {}, + ), + 83: ( + "wagtail.blocks.PageChooserBlock", + (), + { + "label": "Formulářová stránka", + "page_type": ["uniweb.UniwebFormPage"], + }, + ), + 84: ("wagtail.blocks.StructBlock", [[("page", 83)]], {}), + 85: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "Pokud toto pole zĹŻstane nevyplnÄ›nĂ©, pouĹľije se nastavenĂ tohoto webu. V takovĂ©m pĹ™ĂpadÄ› se mĹŻĹľe pĹ™idat i odbÄ›ratel do Ecomailu.", + "label": "ID newsletteru v Mailtrainu", + "required": False, + }, + ), + 86: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "OdebĂrej náš", + "label": "Nadpis bloku (1. řádek)", + "required": True, + }, + ), + 87: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "newsletter", + "label": "Nadpis bloku (2. řádek)", + "required": True, + }, + ), + 88: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "Fake news tam nenajdeš, ale dozvĂš se, co chystáme doopravdy!", + "label": "Popis newsletteru", + "required": True, + }, + ), + 89: ( + "wagtail.blocks.StructBlock", + [ + [ + ("list_id", 85), + ("title_line_1", 86), + ("title_line_2", 87), + ("description", 88), + ] + ], + {}, + ), + }, + verbose_name="obsah stránky", + ), ), migrations.AlterField( - model_name='uniwebformpage', - name='content_after', - field=wagtail.fields.StreamField([('text', 0), ('advanced_text', 4), ('two_columns_text', 7), ('headline', 12), ('headline_with_picture', 15), ('picture_list', 19), ('flip_cards', 30), ('table', 31), ('popout_table', 32), ('gallery', 35), ('figure', 38), ('card', 63), ('two_columns', 73), ('three_columns', 75), ('youtube', 76), ('map_point', 53), ('map_collection', 60), ('button', 68), ('button_group', 70), ('popout_point', 79), ('calendar', 82), ('subpage_form', 84)], blank=True, block_lookup={0: ('wagtail.blocks.RichTextBlock', (), {'features': ['h2', 'h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], 'group': '1. Text', 'label': 'TextovĂ˝ editor', 'template': 'styleguide2/includes/atoms/text/prose_richtext.html'}), 1: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('left', 'vlevo'), ('center', 'uprostĹ™ed'), ('right', 'vpravo')], 'label': 'zarovnánĂ'}), 2: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('black_on_white', 'ÄŤerná na bĂlĂ©'), ('black_on_yellow', 'ÄŤerná na ĹľlutĂ©'), ('white_on_black', 'bĂlá na ÄŤernĂ©'), ('white_on_blue', 'bĂlá na modrĂ©'), ('white_on_cyan', 'bĂlá na tyrkysovĂ©'), ('white_on_violet', 'bĂlá na fialovĂ©')], 'label': 'barva'}), 3: ('wagtail.blocks.RichTextBlock', (), {'features': ['h2', 'h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], 'group': '1. Text', 'label': 'TextovĂ˝ editor'}), 4: ('wagtail.blocks.StructBlock', [[('align', 1), ('color', 2), ('text', 3)]], {}), 5: ('wagtail.blocks.RichTextBlock', (), {'features': ['h2', 'h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], 'label': 'levĂ˝ sloupec'}), 6: ('wagtail.blocks.RichTextBlock', (), {'features': ['h2', 'h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], 'label': 'pravĂ˝ sloupec'}), 7: ('wagtail.blocks.StructBlock', [[('left_text', 5), ('right_text', 6)]], {}), 8: ('wagtail.blocks.CharBlock', (), {'label': 'Nadpis', 'max_length': 300, 'required': True}), 9: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('h1', 'H1'), ('h2', 'H2'), ('h3', 'H3'), ('h4', 'H4'), ('h5', 'H5'), ('h6', 'H6')], 'help_text': 'ÄŚĂm nižšà čĂslo, tĂm vyššà úroveĹ.', 'label': 'ĂšroveĹ nadpisu'}), 10: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('head-alt-xl', 'VelkĂ˝, Bebas Neue - 6XL'), ('head-alt-lg', 'StĹ™ednĂ, Bebas Neue - 4XL'), ('head-alt-md', 'ZákladnĂ velikost - Roboto - MD'), ('head-alt-sm', 'MalĂ˝ - Roboto - SM'), ('head-alt-xs', 'Extra malĂ˝ - Roboto - XS')], 'help_text': 'Náhled si prohlĂ©dnÄ›te na https://styleguide2.pirati.cz/pattern/patterns/atoms/text/headings.html.', 'label': 'Velikost'}), 11: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('auto', 'Automaticky'), ('center', 'Na stĹ™ed')], 'label': 'ZarovnánĂ'}), 12: ('wagtail.blocks.StructBlock', [[('headline', 8), ('tag', 9), ('style', 10), ('align', 11)]], {}), 13: ('wagtail.blocks.CharBlock', (), {'label': 'nadpis'}), 14: ('wagtail.images.blocks.ImageChooserBlock', (), {'help_text': 'rozmÄ›r na výšku 75px nebo vĂce (obrázek bude zmenšen na výšku 75px)', 'label': 'obrázek'}), 15: ('wagtail.blocks.StructBlock', [[('color', 2), ('title', 13), ('picture', 14)]], {}), 16: ('wagtail.blocks.RichTextBlock', (), {'features': ['h2', 'h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], 'label': 'Odstavec'}), 17: ('wagtail.blocks.ListBlock', (16,), {'label': 'Odstavce'}), 18: ('wagtail.images.blocks.ImageChooserBlock', (), {'help_text': 'RozmÄ›r 30x30px nebo vĂce (obrázek bude zmenšen na 30x30px)', 'label': 'Obrázek'}), 19: ('wagtail.blocks.StructBlock', [[('color', 2), ('items', 17), ('picture', 18)]], {}), 20: ('wagtail.blocks.CharBlock', (), {'default': 'FEC900', 'help_text': "KĂłd barvy lze vytvoĹ™it napĹ™. <a href='https://mdn.github.io/css-examples/tools/color-picker/' target='_blank'>zde</a>.", 'label': 'Barva pozadĂ'}), 21: ('wagtail.images.blocks.ImageChooserBlock', (), {'help_text': 'Nahrazuje pozadĂ. Nelze vybrat obÄ› najednou.', 'label': 'Obrázek', 'required': False}), 22: ('wagtail.images.blocks.ImageChooserBlock', (), {'help_text': 'Nahrazuje obrázek. Nelze vybrat obÄ› najednou.', 'label': 'PozadĂ', 'required': False}), 23: ('wagtail.blocks.TextBlock', (), {'help_text': 'ĹádkovánĂ je manuálnĂ.', 'label': 'Nadpis'}), 24: ('wagtail.blocks.CharBlock', (), {'default': '000000', 'help_text': "KĂłd barvy lze vytvoĹ™it napĹ™. <a href='https://mdn.github.io/css-examples/tools/color-picker/' target='_blank'>zde</a>.", 'label': 'Barva textu'}), 25: ('wagtail.blocks.RichTextBlock', (), {'label': 'Obsah'}), 26: ('wagtail.blocks.CharBlock', (), {'help_text': 'Pokud nenĂ vyplnÄ›n, tlaÄŤĂtko se neukáže.', 'label': 'Nadpis tlaÄŤĂtka', 'required': False}), 27: ('wagtail.blocks.CharBlock', (), {'label': 'Odkaz tlaÄŤĂtka', 'required': False}), 28: ('wagtail.blocks.StructBlock', [[('bg_color', 20), ('image', 21), ('background', 22), ('title', 23), ('title_color', 24), ('content', 25), ('button_text', 26), ('button_url', 27)]], {'label': 'Karta'}), 29: ('wagtail.blocks.ListBlock', (28,), {'label': 'Karty'}), 30: ('wagtail.blocks.StructBlock', [[('cards', 29)]], {}), 31: ('wagtail.contrib.table_block.blocks.TableBlock', (), {'group': '3. OstatnĂ', 'label': 'Tabulka', 'template': 'styleguide2/includes/atoms/table/table.html'}), 32: ('wagtail.contrib.table_block.blocks.TableBlock', (), {'group': '3. OstatnĂ', 'label': 'RozbalovacĂ tabulka', 'template': 'styleguide2/includes/atoms/table/popout_table.html'}), 33: ('wagtail.images.blocks.ImageChooserBlock', (), {'label': 'obrázek', 'required': True}), 34: ('wagtail.blocks.ListBlock', (33,), {'group': '3. OstatnĂ', 'icon': 'image', 'label': 'Galerie'}), 35: ('wagtail.blocks.StructBlock', [[('gallery_items', 34)]], {'label': 'Galerie'}), 36: ('wagtail.images.blocks.ImageChooserBlock', (), {'label': 'Obrázek', 'required': True}), 37: ('wagtail.blocks.TextBlock', (), {'label': 'Popisek', 'required': False}), 38: ('wagtail.blocks.StructBlock', [[('img', 36), ('caption', 37)]], {}), 39: ('wagtail.images.blocks.ImageChooserBlock', (), {'label': 'Obrázek', 'required': False}), 40: ('wagtail.blocks.TextBlock', (), {'label': 'Titulek', 'required': False}), 41: ('wagtail.images.blocks.ImageChooserBlock', (), {'help_text': 'NenĂ tĹ™eba vyplĹovat, náhled bude dohledán automaticky.', 'label': 'Náhled videa (automatickĂ© pole)', 'required': False}), 42: ('wagtail.blocks.URLBlock', (), {'help_text': 'Odkaz na YouTube video bude automaticky zkonvertován na ID videa a NEBUDE uloĹľen.', 'label': 'Odkaz na video', 'required': False}), 43: ('wagtail.blocks.CharBlock', (), {'help_text': 'NenĂ tĹ™eba vyplĹovat, bude automaticky naÄŤteno z odkazu.', 'label': 'ID videa (automatickĂ© pole)', 'required': False}), 44: ('wagtail.blocks.BooleanBlock', (), {'default': False, 'help_text': 'Pokud toto pole nenĂ zaškrtlĂ©, video bude užšà neĹľ text okolo.', 'label': 'ZabĂrá maximálnà šĂĹ™ku povolenou pro text?', 'required': False}), 45: ('wagtail.blocks.BooleanBlock', (), {'default': False, 'help_text': 'Automaticky spustĂ video bez zvuku. Pozor, nÄ›kterĂ© prohlĂĹľeÄŤe blokujĂ i automatickĂ© pĹ™ehrávánĂ videĂ bez zvuku.', 'label': 'Spustit video automaticky?', 'required': False}), 46: ('wagtail.blocks.StructBlock', [[('poster_image', 41), ('video_url', 42), ('video_id', 43), ('is_full_width', 44), ('autoplay', 45)]], {}), 47: ('wagtail.blocks.DecimalBlock', (), {'help_text': 'NapĹ™. 50.04075', 'label': 'ZemÄ›pisná šĂĹ™ka'}), 48: ('wagtail.blocks.DecimalBlock', (), {'help_text': 'NapĹ™. 15.77659', 'label': 'ZemÄ›pisná dĂ©lka'}), 49: ('wagtail.blocks.CharBlock', (), {'default': '000000', 'help_text': 'Zadejte barvu pomocĂ HEX notace (bez # na začátku).', 'label': 'Barva špendlĂku (HEX)'}), 50: ('wagtail.blocks.IntegerBlock', (), {'default': 15, 'label': 'VĂ˝chozĂ zoom', 'max_value': 18, 'min_value': 1}), 51: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('osm-mapnik', 'OSM Mapnik'), ('stadia-osm-bright', 'Stadia OSM Bright'), ('stadia-outdoors', 'Stadia Outdoors'), ('mapbox-streets', 'Mapbox Streets'), ('mapbox-outdoors', 'Mapbox Outdoors'), ('mapbox-light', 'Mapbox Light'), ('mapbox-dark', 'Mapbox Dark'), ('mapbox-satellite', 'Mapbox Satellite'), ('mapbox-pirate', 'Mapbox Pirate Theme')], 'label': 'Styl'}), 52: ('wagtail.blocks.IntegerBlock', (), {'label': 'Výška v px', 'max_value': 1000, 'min_value': 100}), 53: ('wagtail.blocks.StructBlock', [[('lat', 47), ('lon', 48), ('hex_color', 49), ('zoom', 50), ('style', 51), ('height', 52)]], {'label': 'Ĺ pendlĂk na mapÄ›'}), 54: ('wagtail.blocks.CharBlock', (), {'label': 'Titulek', 'required': True}), 55: ('wagtail.blocks.TextBlock', (), {'help_text': "VloĹľte surovĂ˝ GeoJSON objekt typu 'Feature'. Vyrobit jej mĹŻĹľete napĹ™. pomocĂ online sluĹľby geojson.io. Pokud u objektu poskytnete properties 'title' a 'description', zobrazĂ se jak na mapÄ›, tak i v detailu.", 'label': 'Geodata', 'required': True}), 56: ('wagtail.blocks.URLBlock', (), {'label': 'Odkaz', 'required': False}), 57: ('wagtail.blocks.CharBlock', (), {'default': '000000', 'help_text': 'Zadejte barvu pomocĂ HEX notace (bez # na začátku).', 'label': 'Barva (HEX)'}), 58: ('wagtail.blocks.StructBlock', [[('title', 54), ('description', 37), ('geojson', 55), ('image', 39), ('link', 56), ('hex_color', 57)]], {'required': True}), 59: ('wagtail.blocks.ListBlock', (58,), {'label': 'Součásti'}), 60: ('wagtail.blocks.StructBlock', [[('features', 59), ('zoom', 50), ('style', 51), ('height', 52)]], {'label': 'Mapová kolekce'}), 61: ('wagtail.blocks.StreamBlock', [[('text', 3), ('table', 31), ('figure', 38), ('youtube', 46), ('map_point', 53), ('map_collection', 60)]], {'label': 'Obsah', 'required': False}), 62: ('wagtail.blocks.PageChooserBlock', (), {'label': 'Stránka', 'required': False}), 63: ('wagtail.blocks.StructBlock', [[('img', 39), ('headline', 40), ('content', 61), ('page', 62), ('link', 56)]], {}), 64: ('wagtail.blocks.CharBlock', (), {'label': 'Titulek', 'max_length': 128, 'required': True}), 65: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('black', 'ÄŚerná'), ('white', 'BĂlá'), ('pirati-yellow', 'Ĺ˝lutá'), ('grey-125', 'SvÄ›tle šedá'), ('blue-300', 'Modrá'), ('cyan-200', 'Tyrkysová'), ('green-400', 'Zelená'), ('violet-400', 'VĂnová'), ('red-600', 'ÄŚervená')], 'label': 'Barva'}), 66: ('wagtail.blocks.BooleanBlock', (), {'default': True, 'help_text': 'Pokud je zapnuto, tlaÄŤĂtko pĹ™i najetĂ kurzorem ukáže Ĺľlutou šipku.', 'label': 'Animovat na hover', 'required': False}), 67: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('normal', 'NormálnĂ'), ('large', 'Velká'), ('huge', 'MasivnĂ')], 'label': 'Velikost tlaÄŤĂtka'}), 68: ('wagtail.blocks.StructBlock', [[('title', 64), ('color', 65), ('hoveractive', 66), ('page', 62), ('link', 56), ('align', 11), ('size', 67)]], {}), 69: ('wagtail.blocks.ListBlock', (68,), {'label': 'TlaÄŤĂtka'}), 70: ('wagtail.blocks.StructBlock', [[('buttons', 69)]], {}), 71: ('wagtail.blocks.StreamBlock', [[('text', 3), ('table', 31), ('card', 63), ('figure', 38), ('youtube', 46), ('map_point', 53), ('map_collection', 60), ('button', 68), ('button_group', 70)]], {'label': 'Obsah levĂ©ho sloupce', 'required': True}), 72: ('wagtail.blocks.StreamBlock', [[('text', 3), ('table', 31), ('card', 63), ('figure', 38), ('youtube', 46), ('map_point', 53), ('map_collection', 60), ('button', 68), ('button_group', 70)]], {'label': 'Obsah pravĂ©ho sloupce', 'required': True}), 73: ('wagtail.blocks.StructBlock', [[('left_column_content', 71), ('right_column_content', 72)]], {}), 74: ('wagtail.blocks.StreamBlock', [[('text', 3), ('table', 31), ('card', 63), ('figure', 38), ('youtube', 46), ('map_point', 53), ('map_collection', 60), ('button', 68), ('button_group', 70)]], {'label': 'Obsah prostĹ™ednĂho sloupce', 'required': True}), 75: ('wagtail.blocks.StructBlock', [[('left_column_content', 71), ('middle_column_content', 74), ('right_column_content', 72)]], {}), 76: ('wagtail.blocks.StructBlock', [[('poster_image', 41), ('video_url', 42), ('video_id', 43), ('is_full_width', 44), ('autoplay', 45)]], {'label': 'YouTube video'}), 77: ('wagtail.blocks.CharBlock', (), {'label': 'Název', 'required': True}), 78: ('wagtail.blocks.StreamBlock', [[('text', 0), ('headline', 12), ('table', 31)]], {'label': 'Obsah'}), 79: ('wagtail.blocks.StructBlock', [[('name', 77), ('content', 78)]], {}), 80: ('wagtail.blocks.CharBlock', (), {'label': 'Titulek', 'required': False}), 81: ('wagtail.blocks.static_block.StaticBlock', (), {'admin_text': 'Adresa kalendáře se zadává v nastavenĂ hlavnĂ stránky webu', 'label': 'Volba kalendáře'}), 82: ('wagtail.blocks.StructBlock', [[('title', 80), ('info', 81)]], {}), 83: ('wagtail.blocks.PageChooserBlock', (), {'label': 'Formulářová stránka', 'page_type': ['uniweb.UniwebFormPage']}), 84: ('wagtail.blocks.StructBlock', [[('page', 83)]], {})}, verbose_name='obsah stránky za formulářem'), + model_name="uniwebformpage", + name="content_after", + field=wagtail.fields.StreamField( + [ + ("text", 0), + ("advanced_text", 4), + ("two_columns_text", 7), + ("headline", 12), + ("headline_with_picture", 15), + ("picture_list", 19), + ("flip_cards", 30), + ("table", 31), + ("popout_table", 32), + ("gallery", 35), + ("figure", 38), + ("card", 63), + ("two_columns", 73), + ("three_columns", 75), + ("youtube", 76), + ("map_point", 53), + ("map_collection", 60), + ("button", 68), + ("button_group", 70), + ("popout_point", 79), + ("calendar", 82), + ("subpage_form", 84), + ], + blank=True, + block_lookup={ + 0: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "h2", + "h3", + "h4", + "h5", + "bold", + "italic", + "ol", + "ul", + "hr", + "link", + "document-link", + "image", + "superscript", + "subscript", + "strikethrough", + "blockquote", + "embed", + ], + "group": "1. Text", + "label": "TextovĂ˝ editor", + "template": "styleguide2/includes/atoms/text/prose_richtext.html", + }, + ), + 1: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("left", "vlevo"), + ("center", "uprostĹ™ed"), + ("right", "vpravo"), + ], + "label": "zarovnánĂ", + }, + ), + 2: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("black_on_white", "ÄŤerná na bĂlĂ©"), + ("black_on_yellow", "ÄŤerná na ĹľlutĂ©"), + ("white_on_black", "bĂlá na ÄŤernĂ©"), + ("white_on_blue", "bĂlá na modrĂ©"), + ("white_on_cyan", "bĂlá na tyrkysovĂ©"), + ("white_on_violet", "bĂlá na fialovĂ©"), + ], + "label": "barva", + }, + ), + 3: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "h2", + "h3", + "h4", + "h5", + "bold", + "italic", + "ol", + "ul", + "hr", + "link", + "document-link", + "image", + "superscript", + "subscript", + "strikethrough", + "blockquote", + "embed", + ], + "group": "1. Text", + "label": "TextovĂ˝ editor", + }, + ), + 4: ( + "wagtail.blocks.StructBlock", + [[("align", 1), ("color", 2), ("text", 3)]], + {}, + ), + 5: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "h2", + "h3", + "h4", + "h5", + "bold", + "italic", + "ol", + "ul", + "hr", + "link", + "document-link", + "image", + "superscript", + "subscript", + "strikethrough", + "blockquote", + "embed", + ], + "label": "levĂ˝ sloupec", + }, + ), + 6: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "h2", + "h3", + "h4", + "h5", + "bold", + "italic", + "ol", + "ul", + "hr", + "link", + "document-link", + "image", + "superscript", + "subscript", + "strikethrough", + "blockquote", + "embed", + ], + "label": "pravĂ˝ sloupec", + }, + ), + 7: ( + "wagtail.blocks.StructBlock", + [[("left_text", 5), ("right_text", 6)]], + {}, + ), + 8: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Nadpis", "max_length": 300, "required": True}, + ), + 9: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("h1", "H1"), + ("h2", "H2"), + ("h3", "H3"), + ("h4", "H4"), + ("h5", "H5"), + ("h6", "H6"), + ], + "help_text": "ÄŚĂm nižšà čĂslo, tĂm vyššà úroveĹ.", + "label": "ĂšroveĹ nadpisu", + }, + ), + 10: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("head-alt-xl", "VelkĂ˝, Bebas Neue - 6XL"), + ("head-alt-lg", "StĹ™ednĂ, Bebas Neue - 4XL"), + ("head-alt-md", "ZákladnĂ velikost - Roboto - MD"), + ("head-alt-sm", "MalĂ˝ - Roboto - SM"), + ("head-alt-xs", "Extra malĂ˝ - Roboto - XS"), + ], + "help_text": "Náhled si prohlĂ©dnÄ›te na https://styleguide2.pirati.cz/pattern/patterns/atoms/text/headings.html.", + "label": "Velikost", + }, + ), + 11: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("auto", "Automaticky"), + ("center", "Na stĹ™ed"), + ], + "label": "ZarovnánĂ", + }, + ), + 12: ( + "wagtail.blocks.StructBlock", + [[("headline", 8), ("tag", 9), ("style", 10), ("align", 11)]], + {}, + ), + 13: ("wagtail.blocks.CharBlock", (), {"label": "nadpis"}), + 14: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + { + "help_text": "rozmÄ›r na výšku 75px nebo vĂce (obrázek bude zmenšen na výšku 75px)", + "label": "obrázek", + }, + ), + 15: ( + "wagtail.blocks.StructBlock", + [[("color", 2), ("title", 13), ("picture", 14)]], + {}, + ), + 16: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "h2", + "h3", + "h4", + "h5", + "bold", + "italic", + "ol", + "ul", + "hr", + "link", + "document-link", + "image", + "superscript", + "subscript", + "strikethrough", + "blockquote", + "embed", + ], + "label": "Odstavec", + }, + ), + 17: ("wagtail.blocks.ListBlock", (16,), {"label": "Odstavce"}), + 18: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + { + "help_text": "RozmÄ›r 30x30px nebo vĂce (obrázek bude zmenšen na 30x30px)", + "label": "Obrázek", + }, + ), + 19: ( + "wagtail.blocks.StructBlock", + [[("color", 2), ("items", 17), ("picture", 18)]], + {}, + ), + 20: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "FEC900", + "help_text": "KĂłd barvy lze vytvoĹ™it napĹ™. <a href='https://mdn.github.io/css-examples/tools/color-picker/' target='_blank'>zde</a>.", + "label": "Barva pozadĂ", + }, + ), + 21: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + { + "help_text": "Nahrazuje pozadĂ. Nelze vybrat obÄ› najednou.", + "label": "Obrázek", + "required": False, + }, + ), + 22: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + { + "help_text": "Nahrazuje obrázek. Nelze vybrat obÄ› najednou.", + "label": "PozadĂ", + "required": False, + }, + ), + 23: ( + "wagtail.blocks.TextBlock", + (), + {"help_text": "ĹádkovánĂ je manuálnĂ.", "label": "Nadpis"}, + ), + 24: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "000000", + "help_text": "KĂłd barvy lze vytvoĹ™it napĹ™. <a href='https://mdn.github.io/css-examples/tools/color-picker/' target='_blank'>zde</a>.", + "label": "Barva textu", + }, + ), + 25: ("wagtail.blocks.RichTextBlock", (), {"label": "Obsah"}), + 26: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "Pokud nenĂ vyplnÄ›n, tlaÄŤĂtko se neukáže.", + "label": "Nadpis tlaÄŤĂtka", + "required": False, + }, + ), + 27: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Odkaz tlaÄŤĂtka", "required": False}, + ), + 28: ( + "wagtail.blocks.StructBlock", + [ + [ + ("bg_color", 20), + ("image", 21), + ("background", 22), + ("title", 23), + ("title_color", 24), + ("content", 25), + ("button_text", 26), + ("button_url", 27), + ] + ], + {"label": "Karta"}, + ), + 29: ("wagtail.blocks.ListBlock", (28,), {"label": "Karty"}), + 30: ("wagtail.blocks.StructBlock", [[("cards", 29)]], {}), + 31: ( + "wagtail.contrib.table_block.blocks.TableBlock", + (), + { + "group": "3. OstatnĂ", + "label": "Tabulka", + "template": "styleguide2/includes/atoms/table/table.html", + }, + ), + 32: ( + "wagtail.contrib.table_block.blocks.TableBlock", + (), + { + "group": "3. OstatnĂ", + "label": "RozbalovacĂ tabulka", + "template": "styleguide2/includes/atoms/table/popout_table.html", + }, + ), + 33: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + {"label": "obrázek", "required": True}, + ), + 34: ( + "wagtail.blocks.ListBlock", + (33,), + {"group": "3. OstatnĂ", "icon": "image", "label": "Galerie"}, + ), + 35: ( + "wagtail.blocks.StructBlock", + [[("gallery_items", 34)]], + {"label": "Galerie"}, + ), + 36: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + {"label": "Obrázek", "required": True}, + ), + 37: ( + "wagtail.blocks.TextBlock", + (), + {"label": "Popisek", "required": False}, + ), + 38: ( + "wagtail.blocks.StructBlock", + [[("img", 36), ("caption", 37)]], + {}, + ), + 39: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + {"label": "Obrázek", "required": False}, + ), + 40: ( + "wagtail.blocks.TextBlock", + (), + {"label": "Titulek", "required": False}, + ), + 41: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + { + "help_text": "NenĂ tĹ™eba vyplĹovat, náhled bude dohledán automaticky.", + "label": "Náhled videa (automatickĂ© pole)", + "required": False, + }, + ), + 42: ( + "wagtail.blocks.URLBlock", + (), + { + "help_text": "Odkaz na YouTube video bude automaticky zkonvertován na ID videa a NEBUDE uloĹľen.", + "label": "Odkaz na video", + "required": False, + }, + ), + 43: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "NenĂ tĹ™eba vyplĹovat, bude automaticky naÄŤteno z odkazu.", + "label": "ID videa (automatickĂ© pole)", + "required": False, + }, + ), + 44: ( + "wagtail.blocks.BooleanBlock", + (), + { + "default": False, + "help_text": "Pokud toto pole nenĂ zaškrtlĂ©, video bude užšà neĹľ text okolo.", + "label": "ZabĂrá maximálnà šĂĹ™ku povolenou pro text?", + "required": False, + }, + ), + 45: ( + "wagtail.blocks.BooleanBlock", + (), + { + "default": False, + "help_text": "Automaticky spustĂ video bez zvuku. Pozor, nÄ›kterĂ© prohlĂĹľeÄŤe blokujĂ i automatickĂ© pĹ™ehrávánĂ videĂ bez zvuku.", + "label": "Spustit video automaticky?", + "required": False, + }, + ), + 46: ( + "wagtail.blocks.StructBlock", + [ + [ + ("poster_image", 41), + ("video_url", 42), + ("video_id", 43), + ("is_full_width", 44), + ("autoplay", 45), + ] + ], + {}, + ), + 47: ( + "wagtail.blocks.DecimalBlock", + (), + {"help_text": "NapĹ™. 50.04075", "label": "ZemÄ›pisná šĂĹ™ka"}, + ), + 48: ( + "wagtail.blocks.DecimalBlock", + (), + {"help_text": "NapĹ™. 15.77659", "label": "ZemÄ›pisná dĂ©lka"}, + ), + 49: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "000000", + "help_text": "Zadejte barvu pomocĂ HEX notace (bez # na začátku).", + "label": "Barva špendlĂku (HEX)", + }, + ), + 50: ( + "wagtail.blocks.IntegerBlock", + (), + { + "default": 15, + "label": "VĂ˝chozĂ zoom", + "max_value": 18, + "min_value": 1, + }, + ), + 51: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("osm-mapnik", "OSM Mapnik"), + ("stadia-osm-bright", "Stadia OSM Bright"), + ("stadia-outdoors", "Stadia Outdoors"), + ("mapbox-streets", "Mapbox Streets"), + ("mapbox-outdoors", "Mapbox Outdoors"), + ("mapbox-light", "Mapbox Light"), + ("mapbox-dark", "Mapbox Dark"), + ("mapbox-satellite", "Mapbox Satellite"), + ("mapbox-pirate", "Mapbox Pirate Theme"), + ], + "label": "Styl", + }, + ), + 52: ( + "wagtail.blocks.IntegerBlock", + (), + {"label": "Výška v px", "max_value": 1000, "min_value": 100}, + ), + 53: ( + "wagtail.blocks.StructBlock", + [ + [ + ("lat", 47), + ("lon", 48), + ("hex_color", 49), + ("zoom", 50), + ("style", 51), + ("height", 52), + ] + ], + {"label": "Ĺ pendlĂk na mapÄ›"}, + ), + 54: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Titulek", "required": True}, + ), + 55: ( + "wagtail.blocks.TextBlock", + (), + { + "help_text": "VloĹľte surovĂ˝ GeoJSON objekt typu 'Feature'. Vyrobit jej mĹŻĹľete napĹ™. pomocĂ online sluĹľby geojson.io. Pokud u objektu poskytnete properties 'title' a 'description', zobrazĂ se jak na mapÄ›, tak i v detailu.", + "label": "Geodata", + "required": True, + }, + ), + 56: ( + "wagtail.blocks.URLBlock", + (), + {"label": "Odkaz", "required": False}, + ), + 57: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "000000", + "help_text": "Zadejte barvu pomocĂ HEX notace (bez # na začátku).", + "label": "Barva (HEX)", + }, + ), + 58: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 54), + ("description", 37), + ("geojson", 55), + ("image", 39), + ("link", 56), + ("hex_color", 57), + ] + ], + {"required": True}, + ), + 59: ("wagtail.blocks.ListBlock", (58,), {"label": "Součásti"}), + 60: ( + "wagtail.blocks.StructBlock", + [ + [ + ("features", 59), + ("zoom", 50), + ("style", 51), + ("height", 52), + ] + ], + {"label": "Mapová kolekce"}, + ), + 61: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 3), + ("table", 31), + ("figure", 38), + ("youtube", 46), + ("map_point", 53), + ("map_collection", 60), + ] + ], + {"label": "Obsah", "required": False}, + ), + 62: ( + "wagtail.blocks.PageChooserBlock", + (), + {"label": "Stránka", "required": False}, + ), + 63: ( + "wagtail.blocks.StructBlock", + [ + [ + ("img", 39), + ("headline", 40), + ("content", 61), + ("page", 62), + ("link", 56), + ] + ], + {}, + ), + 64: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Titulek", "max_length": 128, "required": True}, + ), + 65: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("black", "ÄŚerná"), + ("white", "BĂlá"), + ("pirati-yellow", "Ĺ˝lutá"), + ("grey-125", "SvÄ›tle šedá"), + ("blue-300", "Modrá"), + ("cyan-200", "Tyrkysová"), + ("green-400", "Zelená"), + ("violet-400", "VĂnová"), + ("red-600", "ÄŚervená"), + ], + "label": "Barva", + }, + ), + 66: ( + "wagtail.blocks.BooleanBlock", + (), + { + "default": True, + "help_text": "Pokud je zapnuto, tlaÄŤĂtko pĹ™i najetĂ kurzorem ukáže Ĺľlutou šipku.", + "label": "Animovat na hover", + "required": False, + }, + ), + 67: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("normal", "NormálnĂ"), + ("large", "Velká"), + ("huge", "MasivnĂ"), + ], + "label": "Velikost tlaÄŤĂtka", + }, + ), + 68: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 64), + ("color", 65), + ("hoveractive", 66), + ("page", 62), + ("link", 56), + ("align", 11), + ("size", 67), + ] + ], + {}, + ), + 69: ("wagtail.blocks.ListBlock", (68,), {"label": "TlaÄŤĂtka"}), + 70: ("wagtail.blocks.StructBlock", [[("buttons", 69)]], {}), + 71: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 3), + ("table", 31), + ("card", 63), + ("figure", 38), + ("youtube", 46), + ("map_point", 53), + ("map_collection", 60), + ("button", 68), + ("button_group", 70), + ] + ], + {"label": "Obsah levĂ©ho sloupce", "required": True}, + ), + 72: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 3), + ("table", 31), + ("card", 63), + ("figure", 38), + ("youtube", 46), + ("map_point", 53), + ("map_collection", 60), + ("button", 68), + ("button_group", 70), + ] + ], + {"label": "Obsah pravĂ©ho sloupce", "required": True}, + ), + 73: ( + "wagtail.blocks.StructBlock", + [[("left_column_content", 71), ("right_column_content", 72)]], + {}, + ), + 74: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 3), + ("table", 31), + ("card", 63), + ("figure", 38), + ("youtube", 46), + ("map_point", 53), + ("map_collection", 60), + ("button", 68), + ("button_group", 70), + ] + ], + {"label": "Obsah prostĹ™ednĂho sloupce", "required": True}, + ), + 75: ( + "wagtail.blocks.StructBlock", + [ + [ + ("left_column_content", 71), + ("middle_column_content", 74), + ("right_column_content", 72), + ] + ], + {}, + ), + 76: ( + "wagtail.blocks.StructBlock", + [ + [ + ("poster_image", 41), + ("video_url", 42), + ("video_id", 43), + ("is_full_width", 44), + ("autoplay", 45), + ] + ], + {"label": "YouTube video"}, + ), + 77: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Název", "required": True}, + ), + 78: ( + "wagtail.blocks.StreamBlock", + [[("text", 0), ("headline", 12), ("table", 31)]], + {"label": "Obsah"}, + ), + 79: ( + "wagtail.blocks.StructBlock", + [[("name", 77), ("content", 78)]], + {}, + ), + 80: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Titulek", "required": False}, + ), + 81: ( + "wagtail.blocks.static_block.StaticBlock", + (), + { + "admin_text": "Adresa kalendáře se zadává v nastavenĂ hlavnĂ stránky webu", + "label": "Volba kalendáře", + }, + ), + 82: ( + "wagtail.blocks.StructBlock", + [[("title", 80), ("info", 81)]], + {}, + ), + 83: ( + "wagtail.blocks.PageChooserBlock", + (), + { + "label": "Formulářová stránka", + "page_type": ["uniweb.UniwebFormPage"], + }, + ), + 84: ("wagtail.blocks.StructBlock", [[("page", 83)]], {}), + }, + verbose_name="obsah stránky za formulářem", + ), ), migrations.AlterField( - model_name='uniwebformpage', - name='content_before', - field=wagtail.fields.StreamField([('text', 0), ('advanced_text', 4), ('two_columns_text', 7), ('headline', 12), ('headline_with_picture', 15), ('picture_list', 19), ('flip_cards', 30), ('table', 31), ('popout_table', 32), ('gallery', 35), ('figure', 38), ('card', 63), ('two_columns', 73), ('three_columns', 75), ('youtube', 76), ('map_point', 53), ('map_collection', 60), ('button', 68), ('button_group', 70), ('popout_point', 79), ('calendar', 82), ('subpage_form', 84)], blank=True, block_lookup={0: ('wagtail.blocks.RichTextBlock', (), {'features': ['h2', 'h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], 'group': '1. Text', 'label': 'TextovĂ˝ editor', 'template': 'styleguide2/includes/atoms/text/prose_richtext.html'}), 1: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('left', 'vlevo'), ('center', 'uprostĹ™ed'), ('right', 'vpravo')], 'label': 'zarovnánĂ'}), 2: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('black_on_white', 'ÄŤerná na bĂlĂ©'), ('black_on_yellow', 'ÄŤerná na ĹľlutĂ©'), ('white_on_black', 'bĂlá na ÄŤernĂ©'), ('white_on_blue', 'bĂlá na modrĂ©'), ('white_on_cyan', 'bĂlá na tyrkysovĂ©'), ('white_on_violet', 'bĂlá na fialovĂ©')], 'label': 'barva'}), 3: ('wagtail.blocks.RichTextBlock', (), {'features': ['h2', 'h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], 'group': '1. Text', 'label': 'TextovĂ˝ editor'}), 4: ('wagtail.blocks.StructBlock', [[('align', 1), ('color', 2), ('text', 3)]], {}), 5: ('wagtail.blocks.RichTextBlock', (), {'features': ['h2', 'h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], 'label': 'levĂ˝ sloupec'}), 6: ('wagtail.blocks.RichTextBlock', (), {'features': ['h2', 'h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], 'label': 'pravĂ˝ sloupec'}), 7: ('wagtail.blocks.StructBlock', [[('left_text', 5), ('right_text', 6)]], {}), 8: ('wagtail.blocks.CharBlock', (), {'label': 'Nadpis', 'max_length': 300, 'required': True}), 9: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('h1', 'H1'), ('h2', 'H2'), ('h3', 'H3'), ('h4', 'H4'), ('h5', 'H5'), ('h6', 'H6')], 'help_text': 'ÄŚĂm nižšà čĂslo, tĂm vyššà úroveĹ.', 'label': 'ĂšroveĹ nadpisu'}), 10: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('head-alt-xl', 'VelkĂ˝, Bebas Neue - 6XL'), ('head-alt-lg', 'StĹ™ednĂ, Bebas Neue - 4XL'), ('head-alt-md', 'ZákladnĂ velikost - Roboto - MD'), ('head-alt-sm', 'MalĂ˝ - Roboto - SM'), ('head-alt-xs', 'Extra malĂ˝ - Roboto - XS')], 'help_text': 'Náhled si prohlĂ©dnÄ›te na https://styleguide2.pirati.cz/pattern/patterns/atoms/text/headings.html.', 'label': 'Velikost'}), 11: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('auto', 'Automaticky'), ('center', 'Na stĹ™ed')], 'label': 'ZarovnánĂ'}), 12: ('wagtail.blocks.StructBlock', [[('headline', 8), ('tag', 9), ('style', 10), ('align', 11)]], {}), 13: ('wagtail.blocks.CharBlock', (), {'label': 'nadpis'}), 14: ('wagtail.images.blocks.ImageChooserBlock', (), {'help_text': 'rozmÄ›r na výšku 75px nebo vĂce (obrázek bude zmenšen na výšku 75px)', 'label': 'obrázek'}), 15: ('wagtail.blocks.StructBlock', [[('color', 2), ('title', 13), ('picture', 14)]], {}), 16: ('wagtail.blocks.RichTextBlock', (), {'features': ['h2', 'h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], 'label': 'Odstavec'}), 17: ('wagtail.blocks.ListBlock', (16,), {'label': 'Odstavce'}), 18: ('wagtail.images.blocks.ImageChooserBlock', (), {'help_text': 'RozmÄ›r 30x30px nebo vĂce (obrázek bude zmenšen na 30x30px)', 'label': 'Obrázek'}), 19: ('wagtail.blocks.StructBlock', [[('color', 2), ('items', 17), ('picture', 18)]], {}), 20: ('wagtail.blocks.CharBlock', (), {'default': 'FEC900', 'help_text': "KĂłd barvy lze vytvoĹ™it napĹ™. <a href='https://mdn.github.io/css-examples/tools/color-picker/' target='_blank'>zde</a>.", 'label': 'Barva pozadĂ'}), 21: ('wagtail.images.blocks.ImageChooserBlock', (), {'help_text': 'Nahrazuje pozadĂ. Nelze vybrat obÄ› najednou.', 'label': 'Obrázek', 'required': False}), 22: ('wagtail.images.blocks.ImageChooserBlock', (), {'help_text': 'Nahrazuje obrázek. Nelze vybrat obÄ› najednou.', 'label': 'PozadĂ', 'required': False}), 23: ('wagtail.blocks.TextBlock', (), {'help_text': 'ĹádkovánĂ je manuálnĂ.', 'label': 'Nadpis'}), 24: ('wagtail.blocks.CharBlock', (), {'default': '000000', 'help_text': "KĂłd barvy lze vytvoĹ™it napĹ™. <a href='https://mdn.github.io/css-examples/tools/color-picker/' target='_blank'>zde</a>.", 'label': 'Barva textu'}), 25: ('wagtail.blocks.RichTextBlock', (), {'label': 'Obsah'}), 26: ('wagtail.blocks.CharBlock', (), {'help_text': 'Pokud nenĂ vyplnÄ›n, tlaÄŤĂtko se neukáže.', 'label': 'Nadpis tlaÄŤĂtka', 'required': False}), 27: ('wagtail.blocks.CharBlock', (), {'label': 'Odkaz tlaÄŤĂtka', 'required': False}), 28: ('wagtail.blocks.StructBlock', [[('bg_color', 20), ('image', 21), ('background', 22), ('title', 23), ('title_color', 24), ('content', 25), ('button_text', 26), ('button_url', 27)]], {'label': 'Karta'}), 29: ('wagtail.blocks.ListBlock', (28,), {'label': 'Karty'}), 30: ('wagtail.blocks.StructBlock', [[('cards', 29)]], {}), 31: ('wagtail.contrib.table_block.blocks.TableBlock', (), {'group': '3. OstatnĂ', 'label': 'Tabulka', 'template': 'styleguide2/includes/atoms/table/table.html'}), 32: ('wagtail.contrib.table_block.blocks.TableBlock', (), {'group': '3. OstatnĂ', 'label': 'RozbalovacĂ tabulka', 'template': 'styleguide2/includes/atoms/table/popout_table.html'}), 33: ('wagtail.images.blocks.ImageChooserBlock', (), {'label': 'obrázek', 'required': True}), 34: ('wagtail.blocks.ListBlock', (33,), {'group': '3. OstatnĂ', 'icon': 'image', 'label': 'Galerie'}), 35: ('wagtail.blocks.StructBlock', [[('gallery_items', 34)]], {'label': 'Galerie'}), 36: ('wagtail.images.blocks.ImageChooserBlock', (), {'label': 'Obrázek', 'required': True}), 37: ('wagtail.blocks.TextBlock', (), {'label': 'Popisek', 'required': False}), 38: ('wagtail.blocks.StructBlock', [[('img', 36), ('caption', 37)]], {}), 39: ('wagtail.images.blocks.ImageChooserBlock', (), {'label': 'Obrázek', 'required': False}), 40: ('wagtail.blocks.TextBlock', (), {'label': 'Titulek', 'required': False}), 41: ('wagtail.images.blocks.ImageChooserBlock', (), {'help_text': 'NenĂ tĹ™eba vyplĹovat, náhled bude dohledán automaticky.', 'label': 'Náhled videa (automatickĂ© pole)', 'required': False}), 42: ('wagtail.blocks.URLBlock', (), {'help_text': 'Odkaz na YouTube video bude automaticky zkonvertován na ID videa a NEBUDE uloĹľen.', 'label': 'Odkaz na video', 'required': False}), 43: ('wagtail.blocks.CharBlock', (), {'help_text': 'NenĂ tĹ™eba vyplĹovat, bude automaticky naÄŤteno z odkazu.', 'label': 'ID videa (automatickĂ© pole)', 'required': False}), 44: ('wagtail.blocks.BooleanBlock', (), {'default': False, 'help_text': 'Pokud toto pole nenĂ zaškrtlĂ©, video bude užšà neĹľ text okolo.', 'label': 'ZabĂrá maximálnà šĂĹ™ku povolenou pro text?', 'required': False}), 45: ('wagtail.blocks.BooleanBlock', (), {'default': False, 'help_text': 'Automaticky spustĂ video bez zvuku. Pozor, nÄ›kterĂ© prohlĂĹľeÄŤe blokujĂ i automatickĂ© pĹ™ehrávánĂ videĂ bez zvuku.', 'label': 'Spustit video automaticky?', 'required': False}), 46: ('wagtail.blocks.StructBlock', [[('poster_image', 41), ('video_url', 42), ('video_id', 43), ('is_full_width', 44), ('autoplay', 45)]], {}), 47: ('wagtail.blocks.DecimalBlock', (), {'help_text': 'NapĹ™. 50.04075', 'label': 'ZemÄ›pisná šĂĹ™ka'}), 48: ('wagtail.blocks.DecimalBlock', (), {'help_text': 'NapĹ™. 15.77659', 'label': 'ZemÄ›pisná dĂ©lka'}), 49: ('wagtail.blocks.CharBlock', (), {'default': '000000', 'help_text': 'Zadejte barvu pomocĂ HEX notace (bez # na začátku).', 'label': 'Barva špendlĂku (HEX)'}), 50: ('wagtail.blocks.IntegerBlock', (), {'default': 15, 'label': 'VĂ˝chozĂ zoom', 'max_value': 18, 'min_value': 1}), 51: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('osm-mapnik', 'OSM Mapnik'), ('stadia-osm-bright', 'Stadia OSM Bright'), ('stadia-outdoors', 'Stadia Outdoors'), ('mapbox-streets', 'Mapbox Streets'), ('mapbox-outdoors', 'Mapbox Outdoors'), ('mapbox-light', 'Mapbox Light'), ('mapbox-dark', 'Mapbox Dark'), ('mapbox-satellite', 'Mapbox Satellite'), ('mapbox-pirate', 'Mapbox Pirate Theme')], 'label': 'Styl'}), 52: ('wagtail.blocks.IntegerBlock', (), {'label': 'Výška v px', 'max_value': 1000, 'min_value': 100}), 53: ('wagtail.blocks.StructBlock', [[('lat', 47), ('lon', 48), ('hex_color', 49), ('zoom', 50), ('style', 51), ('height', 52)]], {'label': 'Ĺ pendlĂk na mapÄ›'}), 54: ('wagtail.blocks.CharBlock', (), {'label': 'Titulek', 'required': True}), 55: ('wagtail.blocks.TextBlock', (), {'help_text': "VloĹľte surovĂ˝ GeoJSON objekt typu 'Feature'. Vyrobit jej mĹŻĹľete napĹ™. pomocĂ online sluĹľby geojson.io. Pokud u objektu poskytnete properties 'title' a 'description', zobrazĂ se jak na mapÄ›, tak i v detailu.", 'label': 'Geodata', 'required': True}), 56: ('wagtail.blocks.URLBlock', (), {'label': 'Odkaz', 'required': False}), 57: ('wagtail.blocks.CharBlock', (), {'default': '000000', 'help_text': 'Zadejte barvu pomocĂ HEX notace (bez # na začátku).', 'label': 'Barva (HEX)'}), 58: ('wagtail.blocks.StructBlock', [[('title', 54), ('description', 37), ('geojson', 55), ('image', 39), ('link', 56), ('hex_color', 57)]], {'required': True}), 59: ('wagtail.blocks.ListBlock', (58,), {'label': 'Součásti'}), 60: ('wagtail.blocks.StructBlock', [[('features', 59), ('zoom', 50), ('style', 51), ('height', 52)]], {'label': 'Mapová kolekce'}), 61: ('wagtail.blocks.StreamBlock', [[('text', 3), ('table', 31), ('figure', 38), ('youtube', 46), ('map_point', 53), ('map_collection', 60)]], {'label': 'Obsah', 'required': False}), 62: ('wagtail.blocks.PageChooserBlock', (), {'label': 'Stránka', 'required': False}), 63: ('wagtail.blocks.StructBlock', [[('img', 39), ('headline', 40), ('content', 61), ('page', 62), ('link', 56)]], {}), 64: ('wagtail.blocks.CharBlock', (), {'label': 'Titulek', 'max_length': 128, 'required': True}), 65: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('black', 'ÄŚerná'), ('white', 'BĂlá'), ('pirati-yellow', 'Ĺ˝lutá'), ('grey-125', 'SvÄ›tle šedá'), ('blue-300', 'Modrá'), ('cyan-200', 'Tyrkysová'), ('green-400', 'Zelená'), ('violet-400', 'VĂnová'), ('red-600', 'ÄŚervená')], 'label': 'Barva'}), 66: ('wagtail.blocks.BooleanBlock', (), {'default': True, 'help_text': 'Pokud je zapnuto, tlaÄŤĂtko pĹ™i najetĂ kurzorem ukáže Ĺľlutou šipku.', 'label': 'Animovat na hover', 'required': False}), 67: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('normal', 'NormálnĂ'), ('large', 'Velká'), ('huge', 'MasivnĂ')], 'label': 'Velikost tlaÄŤĂtka'}), 68: ('wagtail.blocks.StructBlock', [[('title', 64), ('color', 65), ('hoveractive', 66), ('page', 62), ('link', 56), ('align', 11), ('size', 67)]], {}), 69: ('wagtail.blocks.ListBlock', (68,), {'label': 'TlaÄŤĂtka'}), 70: ('wagtail.blocks.StructBlock', [[('buttons', 69)]], {}), 71: ('wagtail.blocks.StreamBlock', [[('text', 3), ('table', 31), ('card', 63), ('figure', 38), ('youtube', 46), ('map_point', 53), ('map_collection', 60), ('button', 68), ('button_group', 70)]], {'label': 'Obsah levĂ©ho sloupce', 'required': True}), 72: ('wagtail.blocks.StreamBlock', [[('text', 3), ('table', 31), ('card', 63), ('figure', 38), ('youtube', 46), ('map_point', 53), ('map_collection', 60), ('button', 68), ('button_group', 70)]], {'label': 'Obsah pravĂ©ho sloupce', 'required': True}), 73: ('wagtail.blocks.StructBlock', [[('left_column_content', 71), ('right_column_content', 72)]], {}), 74: ('wagtail.blocks.StreamBlock', [[('text', 3), ('table', 31), ('card', 63), ('figure', 38), ('youtube', 46), ('map_point', 53), ('map_collection', 60), ('button', 68), ('button_group', 70)]], {'label': 'Obsah prostĹ™ednĂho sloupce', 'required': True}), 75: ('wagtail.blocks.StructBlock', [[('left_column_content', 71), ('middle_column_content', 74), ('right_column_content', 72)]], {}), 76: ('wagtail.blocks.StructBlock', [[('poster_image', 41), ('video_url', 42), ('video_id', 43), ('is_full_width', 44), ('autoplay', 45)]], {'label': 'YouTube video'}), 77: ('wagtail.blocks.CharBlock', (), {'label': 'Název', 'required': True}), 78: ('wagtail.blocks.StreamBlock', [[('text', 0), ('headline', 12), ('table', 31)]], {'label': 'Obsah'}), 79: ('wagtail.blocks.StructBlock', [[('name', 77), ('content', 78)]], {}), 80: ('wagtail.blocks.CharBlock', (), {'label': 'Titulek', 'required': False}), 81: ('wagtail.blocks.static_block.StaticBlock', (), {'admin_text': 'Adresa kalendáře se zadává v nastavenĂ hlavnĂ stránky webu', 'label': 'Volba kalendáře'}), 82: ('wagtail.blocks.StructBlock', [[('title', 80), ('info', 81)]], {}), 83: ('wagtail.blocks.PageChooserBlock', (), {'label': 'Formulářová stránka', 'page_type': ['uniweb.UniwebFormPage']}), 84: ('wagtail.blocks.StructBlock', [[('page', 83)]], {})}, verbose_name='obsah stránky pĹ™ed formulářem'), + model_name="uniwebformpage", + name="content_before", + field=wagtail.fields.StreamField( + [ + ("text", 0), + ("advanced_text", 4), + ("two_columns_text", 7), + ("headline", 12), + ("headline_with_picture", 15), + ("picture_list", 19), + ("flip_cards", 30), + ("table", 31), + ("popout_table", 32), + ("gallery", 35), + ("figure", 38), + ("card", 63), + ("two_columns", 73), + ("three_columns", 75), + ("youtube", 76), + ("map_point", 53), + ("map_collection", 60), + ("button", 68), + ("button_group", 70), + ("popout_point", 79), + ("calendar", 82), + ("subpage_form", 84), + ], + blank=True, + block_lookup={ + 0: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "h2", + "h3", + "h4", + "h5", + "bold", + "italic", + "ol", + "ul", + "hr", + "link", + "document-link", + "image", + "superscript", + "subscript", + "strikethrough", + "blockquote", + "embed", + ], + "group": "1. Text", + "label": "TextovĂ˝ editor", + "template": "styleguide2/includes/atoms/text/prose_richtext.html", + }, + ), + 1: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("left", "vlevo"), + ("center", "uprostĹ™ed"), + ("right", "vpravo"), + ], + "label": "zarovnánĂ", + }, + ), + 2: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("black_on_white", "ÄŤerná na bĂlĂ©"), + ("black_on_yellow", "ÄŤerná na ĹľlutĂ©"), + ("white_on_black", "bĂlá na ÄŤernĂ©"), + ("white_on_blue", "bĂlá na modrĂ©"), + ("white_on_cyan", "bĂlá na tyrkysovĂ©"), + ("white_on_violet", "bĂlá na fialovĂ©"), + ], + "label": "barva", + }, + ), + 3: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "h2", + "h3", + "h4", + "h5", + "bold", + "italic", + "ol", + "ul", + "hr", + "link", + "document-link", + "image", + "superscript", + "subscript", + "strikethrough", + "blockquote", + "embed", + ], + "group": "1. Text", + "label": "TextovĂ˝ editor", + }, + ), + 4: ( + "wagtail.blocks.StructBlock", + [[("align", 1), ("color", 2), ("text", 3)]], + {}, + ), + 5: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "h2", + "h3", + "h4", + "h5", + "bold", + "italic", + "ol", + "ul", + "hr", + "link", + "document-link", + "image", + "superscript", + "subscript", + "strikethrough", + "blockquote", + "embed", + ], + "label": "levĂ˝ sloupec", + }, + ), + 6: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "h2", + "h3", + "h4", + "h5", + "bold", + "italic", + "ol", + "ul", + "hr", + "link", + "document-link", + "image", + "superscript", + "subscript", + "strikethrough", + "blockquote", + "embed", + ], + "label": "pravĂ˝ sloupec", + }, + ), + 7: ( + "wagtail.blocks.StructBlock", + [[("left_text", 5), ("right_text", 6)]], + {}, + ), + 8: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Nadpis", "max_length": 300, "required": True}, + ), + 9: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("h1", "H1"), + ("h2", "H2"), + ("h3", "H3"), + ("h4", "H4"), + ("h5", "H5"), + ("h6", "H6"), + ], + "help_text": "ÄŚĂm nižšà čĂslo, tĂm vyššà úroveĹ.", + "label": "ĂšroveĹ nadpisu", + }, + ), + 10: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("head-alt-xl", "VelkĂ˝, Bebas Neue - 6XL"), + ("head-alt-lg", "StĹ™ednĂ, Bebas Neue - 4XL"), + ("head-alt-md", "ZákladnĂ velikost - Roboto - MD"), + ("head-alt-sm", "MalĂ˝ - Roboto - SM"), + ("head-alt-xs", "Extra malĂ˝ - Roboto - XS"), + ], + "help_text": "Náhled si prohlĂ©dnÄ›te na https://styleguide2.pirati.cz/pattern/patterns/atoms/text/headings.html.", + "label": "Velikost", + }, + ), + 11: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("auto", "Automaticky"), + ("center", "Na stĹ™ed"), + ], + "label": "ZarovnánĂ", + }, + ), + 12: ( + "wagtail.blocks.StructBlock", + [[("headline", 8), ("tag", 9), ("style", 10), ("align", 11)]], + {}, + ), + 13: ("wagtail.blocks.CharBlock", (), {"label": "nadpis"}), + 14: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + { + "help_text": "rozmÄ›r na výšku 75px nebo vĂce (obrázek bude zmenšen na výšku 75px)", + "label": "obrázek", + }, + ), + 15: ( + "wagtail.blocks.StructBlock", + [[("color", 2), ("title", 13), ("picture", 14)]], + {}, + ), + 16: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "h2", + "h3", + "h4", + "h5", + "bold", + "italic", + "ol", + "ul", + "hr", + "link", + "document-link", + "image", + "superscript", + "subscript", + "strikethrough", + "blockquote", + "embed", + ], + "label": "Odstavec", + }, + ), + 17: ("wagtail.blocks.ListBlock", (16,), {"label": "Odstavce"}), + 18: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + { + "help_text": "RozmÄ›r 30x30px nebo vĂce (obrázek bude zmenšen na 30x30px)", + "label": "Obrázek", + }, + ), + 19: ( + "wagtail.blocks.StructBlock", + [[("color", 2), ("items", 17), ("picture", 18)]], + {}, + ), + 20: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "FEC900", + "help_text": "KĂłd barvy lze vytvoĹ™it napĹ™. <a href='https://mdn.github.io/css-examples/tools/color-picker/' target='_blank'>zde</a>.", + "label": "Barva pozadĂ", + }, + ), + 21: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + { + "help_text": "Nahrazuje pozadĂ. Nelze vybrat obÄ› najednou.", + "label": "Obrázek", + "required": False, + }, + ), + 22: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + { + "help_text": "Nahrazuje obrázek. Nelze vybrat obÄ› najednou.", + "label": "PozadĂ", + "required": False, + }, + ), + 23: ( + "wagtail.blocks.TextBlock", + (), + {"help_text": "ĹádkovánĂ je manuálnĂ.", "label": "Nadpis"}, + ), + 24: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "000000", + "help_text": "KĂłd barvy lze vytvoĹ™it napĹ™. <a href='https://mdn.github.io/css-examples/tools/color-picker/' target='_blank'>zde</a>.", + "label": "Barva textu", + }, + ), + 25: ("wagtail.blocks.RichTextBlock", (), {"label": "Obsah"}), + 26: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "Pokud nenĂ vyplnÄ›n, tlaÄŤĂtko se neukáže.", + "label": "Nadpis tlaÄŤĂtka", + "required": False, + }, + ), + 27: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Odkaz tlaÄŤĂtka", "required": False}, + ), + 28: ( + "wagtail.blocks.StructBlock", + [ + [ + ("bg_color", 20), + ("image", 21), + ("background", 22), + ("title", 23), + ("title_color", 24), + ("content", 25), + ("button_text", 26), + ("button_url", 27), + ] + ], + {"label": "Karta"}, + ), + 29: ("wagtail.blocks.ListBlock", (28,), {"label": "Karty"}), + 30: ("wagtail.blocks.StructBlock", [[("cards", 29)]], {}), + 31: ( + "wagtail.contrib.table_block.blocks.TableBlock", + (), + { + "group": "3. OstatnĂ", + "label": "Tabulka", + "template": "styleguide2/includes/atoms/table/table.html", + }, + ), + 32: ( + "wagtail.contrib.table_block.blocks.TableBlock", + (), + { + "group": "3. OstatnĂ", + "label": "RozbalovacĂ tabulka", + "template": "styleguide2/includes/atoms/table/popout_table.html", + }, + ), + 33: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + {"label": "obrázek", "required": True}, + ), + 34: ( + "wagtail.blocks.ListBlock", + (33,), + {"group": "3. OstatnĂ", "icon": "image", "label": "Galerie"}, + ), + 35: ( + "wagtail.blocks.StructBlock", + [[("gallery_items", 34)]], + {"label": "Galerie"}, + ), + 36: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + {"label": "Obrázek", "required": True}, + ), + 37: ( + "wagtail.blocks.TextBlock", + (), + {"label": "Popisek", "required": False}, + ), + 38: ( + "wagtail.blocks.StructBlock", + [[("img", 36), ("caption", 37)]], + {}, + ), + 39: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + {"label": "Obrázek", "required": False}, + ), + 40: ( + "wagtail.blocks.TextBlock", + (), + {"label": "Titulek", "required": False}, + ), + 41: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + { + "help_text": "NenĂ tĹ™eba vyplĹovat, náhled bude dohledán automaticky.", + "label": "Náhled videa (automatickĂ© pole)", + "required": False, + }, + ), + 42: ( + "wagtail.blocks.URLBlock", + (), + { + "help_text": "Odkaz na YouTube video bude automaticky zkonvertován na ID videa a NEBUDE uloĹľen.", + "label": "Odkaz na video", + "required": False, + }, + ), + 43: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "NenĂ tĹ™eba vyplĹovat, bude automaticky naÄŤteno z odkazu.", + "label": "ID videa (automatickĂ© pole)", + "required": False, + }, + ), + 44: ( + "wagtail.blocks.BooleanBlock", + (), + { + "default": False, + "help_text": "Pokud toto pole nenĂ zaškrtlĂ©, video bude užšà neĹľ text okolo.", + "label": "ZabĂrá maximálnà šĂĹ™ku povolenou pro text?", + "required": False, + }, + ), + 45: ( + "wagtail.blocks.BooleanBlock", + (), + { + "default": False, + "help_text": "Automaticky spustĂ video bez zvuku. Pozor, nÄ›kterĂ© prohlĂĹľeÄŤe blokujĂ i automatickĂ© pĹ™ehrávánĂ videĂ bez zvuku.", + "label": "Spustit video automaticky?", + "required": False, + }, + ), + 46: ( + "wagtail.blocks.StructBlock", + [ + [ + ("poster_image", 41), + ("video_url", 42), + ("video_id", 43), + ("is_full_width", 44), + ("autoplay", 45), + ] + ], + {}, + ), + 47: ( + "wagtail.blocks.DecimalBlock", + (), + {"help_text": "NapĹ™. 50.04075", "label": "ZemÄ›pisná šĂĹ™ka"}, + ), + 48: ( + "wagtail.blocks.DecimalBlock", + (), + {"help_text": "NapĹ™. 15.77659", "label": "ZemÄ›pisná dĂ©lka"}, + ), + 49: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "000000", + "help_text": "Zadejte barvu pomocĂ HEX notace (bez # na začátku).", + "label": "Barva špendlĂku (HEX)", + }, + ), + 50: ( + "wagtail.blocks.IntegerBlock", + (), + { + "default": 15, + "label": "VĂ˝chozĂ zoom", + "max_value": 18, + "min_value": 1, + }, + ), + 51: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("osm-mapnik", "OSM Mapnik"), + ("stadia-osm-bright", "Stadia OSM Bright"), + ("stadia-outdoors", "Stadia Outdoors"), + ("mapbox-streets", "Mapbox Streets"), + ("mapbox-outdoors", "Mapbox Outdoors"), + ("mapbox-light", "Mapbox Light"), + ("mapbox-dark", "Mapbox Dark"), + ("mapbox-satellite", "Mapbox Satellite"), + ("mapbox-pirate", "Mapbox Pirate Theme"), + ], + "label": "Styl", + }, + ), + 52: ( + "wagtail.blocks.IntegerBlock", + (), + {"label": "Výška v px", "max_value": 1000, "min_value": 100}, + ), + 53: ( + "wagtail.blocks.StructBlock", + [ + [ + ("lat", 47), + ("lon", 48), + ("hex_color", 49), + ("zoom", 50), + ("style", 51), + ("height", 52), + ] + ], + {"label": "Ĺ pendlĂk na mapÄ›"}, + ), + 54: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Titulek", "required": True}, + ), + 55: ( + "wagtail.blocks.TextBlock", + (), + { + "help_text": "VloĹľte surovĂ˝ GeoJSON objekt typu 'Feature'. Vyrobit jej mĹŻĹľete napĹ™. pomocĂ online sluĹľby geojson.io. Pokud u objektu poskytnete properties 'title' a 'description', zobrazĂ se jak na mapÄ›, tak i v detailu.", + "label": "Geodata", + "required": True, + }, + ), + 56: ( + "wagtail.blocks.URLBlock", + (), + {"label": "Odkaz", "required": False}, + ), + 57: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "000000", + "help_text": "Zadejte barvu pomocĂ HEX notace (bez # na začátku).", + "label": "Barva (HEX)", + }, + ), + 58: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 54), + ("description", 37), + ("geojson", 55), + ("image", 39), + ("link", 56), + ("hex_color", 57), + ] + ], + {"required": True}, + ), + 59: ("wagtail.blocks.ListBlock", (58,), {"label": "Součásti"}), + 60: ( + "wagtail.blocks.StructBlock", + [ + [ + ("features", 59), + ("zoom", 50), + ("style", 51), + ("height", 52), + ] + ], + {"label": "Mapová kolekce"}, + ), + 61: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 3), + ("table", 31), + ("figure", 38), + ("youtube", 46), + ("map_point", 53), + ("map_collection", 60), + ] + ], + {"label": "Obsah", "required": False}, + ), + 62: ( + "wagtail.blocks.PageChooserBlock", + (), + {"label": "Stránka", "required": False}, + ), + 63: ( + "wagtail.blocks.StructBlock", + [ + [ + ("img", 39), + ("headline", 40), + ("content", 61), + ("page", 62), + ("link", 56), + ] + ], + {}, + ), + 64: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Titulek", "max_length": 128, "required": True}, + ), + 65: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("black", "ÄŚerná"), + ("white", "BĂlá"), + ("pirati-yellow", "Ĺ˝lutá"), + ("grey-125", "SvÄ›tle šedá"), + ("blue-300", "Modrá"), + ("cyan-200", "Tyrkysová"), + ("green-400", "Zelená"), + ("violet-400", "VĂnová"), + ("red-600", "ÄŚervená"), + ], + "label": "Barva", + }, + ), + 66: ( + "wagtail.blocks.BooleanBlock", + (), + { + "default": True, + "help_text": "Pokud je zapnuto, tlaÄŤĂtko pĹ™i najetĂ kurzorem ukáže Ĺľlutou šipku.", + "label": "Animovat na hover", + "required": False, + }, + ), + 67: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("normal", "NormálnĂ"), + ("large", "Velká"), + ("huge", "MasivnĂ"), + ], + "label": "Velikost tlaÄŤĂtka", + }, + ), + 68: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 64), + ("color", 65), + ("hoveractive", 66), + ("page", 62), + ("link", 56), + ("align", 11), + ("size", 67), + ] + ], + {}, + ), + 69: ("wagtail.blocks.ListBlock", (68,), {"label": "TlaÄŤĂtka"}), + 70: ("wagtail.blocks.StructBlock", [[("buttons", 69)]], {}), + 71: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 3), + ("table", 31), + ("card", 63), + ("figure", 38), + ("youtube", 46), + ("map_point", 53), + ("map_collection", 60), + ("button", 68), + ("button_group", 70), + ] + ], + {"label": "Obsah levĂ©ho sloupce", "required": True}, + ), + 72: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 3), + ("table", 31), + ("card", 63), + ("figure", 38), + ("youtube", 46), + ("map_point", 53), + ("map_collection", 60), + ("button", 68), + ("button_group", 70), + ] + ], + {"label": "Obsah pravĂ©ho sloupce", "required": True}, + ), + 73: ( + "wagtail.blocks.StructBlock", + [[("left_column_content", 71), ("right_column_content", 72)]], + {}, + ), + 74: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 3), + ("table", 31), + ("card", 63), + ("figure", 38), + ("youtube", 46), + ("map_point", 53), + ("map_collection", 60), + ("button", 68), + ("button_group", 70), + ] + ], + {"label": "Obsah prostĹ™ednĂho sloupce", "required": True}, + ), + 75: ( + "wagtail.blocks.StructBlock", + [ + [ + ("left_column_content", 71), + ("middle_column_content", 74), + ("right_column_content", 72), + ] + ], + {}, + ), + 76: ( + "wagtail.blocks.StructBlock", + [ + [ + ("poster_image", 41), + ("video_url", 42), + ("video_id", 43), + ("is_full_width", 44), + ("autoplay", 45), + ] + ], + {"label": "YouTube video"}, + ), + 77: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Název", "required": True}, + ), + 78: ( + "wagtail.blocks.StreamBlock", + [[("text", 0), ("headline", 12), ("table", 31)]], + {"label": "Obsah"}, + ), + 79: ( + "wagtail.blocks.StructBlock", + [[("name", 77), ("content", 78)]], + {}, + ), + 80: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Titulek", "required": False}, + ), + 81: ( + "wagtail.blocks.static_block.StaticBlock", + (), + { + "admin_text": "Adresa kalendáře se zadává v nastavenĂ hlavnĂ stránky webu", + "label": "Volba kalendáře", + }, + ), + 82: ( + "wagtail.blocks.StructBlock", + [[("title", 80), ("info", 81)]], + {}, + ), + 83: ( + "wagtail.blocks.PageChooserBlock", + (), + { + "label": "Formulářová stránka", + "page_type": ["uniweb.UniwebFormPage"], + }, + ), + 84: ("wagtail.blocks.StructBlock", [[("page", 83)]], {}), + }, + verbose_name="obsah stránky pĹ™ed formulářem", + ), ), migrations.AlterField( - model_name='uniwebformpage', - name='content_landing', - field=wagtail.fields.StreamField([('text', 0), ('advanced_text', 4), ('two_columns_text', 7), ('headline', 12), ('headline_with_picture', 15), ('picture_list', 19), ('flip_cards', 30), ('table', 31), ('popout_table', 32), ('gallery', 35), ('figure', 38), ('card', 63), ('two_columns', 73), ('three_columns', 75), ('youtube', 76), ('map_point', 53), ('map_collection', 60), ('button', 68), ('button_group', 70), ('popout_point', 79), ('calendar', 82), ('subpage_form', 84)], blank=True, block_lookup={0: ('wagtail.blocks.RichTextBlock', (), {'features': ['h2', 'h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], 'group': '1. Text', 'label': 'TextovĂ˝ editor', 'template': 'styleguide2/includes/atoms/text/prose_richtext.html'}), 1: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('left', 'vlevo'), ('center', 'uprostĹ™ed'), ('right', 'vpravo')], 'label': 'zarovnánĂ'}), 2: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('black_on_white', 'ÄŤerná na bĂlĂ©'), ('black_on_yellow', 'ÄŤerná na ĹľlutĂ©'), ('white_on_black', 'bĂlá na ÄŤernĂ©'), ('white_on_blue', 'bĂlá na modrĂ©'), ('white_on_cyan', 'bĂlá na tyrkysovĂ©'), ('white_on_violet', 'bĂlá na fialovĂ©')], 'label': 'barva'}), 3: ('wagtail.blocks.RichTextBlock', (), {'features': ['h2', 'h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], 'group': '1. Text', 'label': 'TextovĂ˝ editor'}), 4: ('wagtail.blocks.StructBlock', [[('align', 1), ('color', 2), ('text', 3)]], {}), 5: ('wagtail.blocks.RichTextBlock', (), {'features': ['h2', 'h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], 'label': 'levĂ˝ sloupec'}), 6: ('wagtail.blocks.RichTextBlock', (), {'features': ['h2', 'h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], 'label': 'pravĂ˝ sloupec'}), 7: ('wagtail.blocks.StructBlock', [[('left_text', 5), ('right_text', 6)]], {}), 8: ('wagtail.blocks.CharBlock', (), {'label': 'Nadpis', 'max_length': 300, 'required': True}), 9: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('h1', 'H1'), ('h2', 'H2'), ('h3', 'H3'), ('h4', 'H4'), ('h5', 'H5'), ('h6', 'H6')], 'help_text': 'ÄŚĂm nižšà čĂslo, tĂm vyššà úroveĹ.', 'label': 'ĂšroveĹ nadpisu'}), 10: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('head-alt-xl', 'VelkĂ˝, Bebas Neue - 6XL'), ('head-alt-lg', 'StĹ™ednĂ, Bebas Neue - 4XL'), ('head-alt-md', 'ZákladnĂ velikost - Roboto - MD'), ('head-alt-sm', 'MalĂ˝ - Roboto - SM'), ('head-alt-xs', 'Extra malĂ˝ - Roboto - XS')], 'help_text': 'Náhled si prohlĂ©dnÄ›te na https://styleguide2.pirati.cz/pattern/patterns/atoms/text/headings.html.', 'label': 'Velikost'}), 11: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('auto', 'Automaticky'), ('center', 'Na stĹ™ed')], 'label': 'ZarovnánĂ'}), 12: ('wagtail.blocks.StructBlock', [[('headline', 8), ('tag', 9), ('style', 10), ('align', 11)]], {}), 13: ('wagtail.blocks.CharBlock', (), {'label': 'nadpis'}), 14: ('wagtail.images.blocks.ImageChooserBlock', (), {'help_text': 'rozmÄ›r na výšku 75px nebo vĂce (obrázek bude zmenšen na výšku 75px)', 'label': 'obrázek'}), 15: ('wagtail.blocks.StructBlock', [[('color', 2), ('title', 13), ('picture', 14)]], {}), 16: ('wagtail.blocks.RichTextBlock', (), {'features': ['h2', 'h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], 'label': 'Odstavec'}), 17: ('wagtail.blocks.ListBlock', (16,), {'label': 'Odstavce'}), 18: ('wagtail.images.blocks.ImageChooserBlock', (), {'help_text': 'RozmÄ›r 30x30px nebo vĂce (obrázek bude zmenšen na 30x30px)', 'label': 'Obrázek'}), 19: ('wagtail.blocks.StructBlock', [[('color', 2), ('items', 17), ('picture', 18)]], {}), 20: ('wagtail.blocks.CharBlock', (), {'default': 'FEC900', 'help_text': "KĂłd barvy lze vytvoĹ™it napĹ™. <a href='https://mdn.github.io/css-examples/tools/color-picker/' target='_blank'>zde</a>.", 'label': 'Barva pozadĂ'}), 21: ('wagtail.images.blocks.ImageChooserBlock', (), {'help_text': 'Nahrazuje pozadĂ. Nelze vybrat obÄ› najednou.', 'label': 'Obrázek', 'required': False}), 22: ('wagtail.images.blocks.ImageChooserBlock', (), {'help_text': 'Nahrazuje obrázek. Nelze vybrat obÄ› najednou.', 'label': 'PozadĂ', 'required': False}), 23: ('wagtail.blocks.TextBlock', (), {'help_text': 'ĹádkovánĂ je manuálnĂ.', 'label': 'Nadpis'}), 24: ('wagtail.blocks.CharBlock', (), {'default': '000000', 'help_text': "KĂłd barvy lze vytvoĹ™it napĹ™. <a href='https://mdn.github.io/css-examples/tools/color-picker/' target='_blank'>zde</a>.", 'label': 'Barva textu'}), 25: ('wagtail.blocks.RichTextBlock', (), {'label': 'Obsah'}), 26: ('wagtail.blocks.CharBlock', (), {'help_text': 'Pokud nenĂ vyplnÄ›n, tlaÄŤĂtko se neukáže.', 'label': 'Nadpis tlaÄŤĂtka', 'required': False}), 27: ('wagtail.blocks.CharBlock', (), {'label': 'Odkaz tlaÄŤĂtka', 'required': False}), 28: ('wagtail.blocks.StructBlock', [[('bg_color', 20), ('image', 21), ('background', 22), ('title', 23), ('title_color', 24), ('content', 25), ('button_text', 26), ('button_url', 27)]], {'label': 'Karta'}), 29: ('wagtail.blocks.ListBlock', (28,), {'label': 'Karty'}), 30: ('wagtail.blocks.StructBlock', [[('cards', 29)]], {}), 31: ('wagtail.contrib.table_block.blocks.TableBlock', (), {'group': '3. OstatnĂ', 'label': 'Tabulka', 'template': 'styleguide2/includes/atoms/table/table.html'}), 32: ('wagtail.contrib.table_block.blocks.TableBlock', (), {'group': '3. OstatnĂ', 'label': 'RozbalovacĂ tabulka', 'template': 'styleguide2/includes/atoms/table/popout_table.html'}), 33: ('wagtail.images.blocks.ImageChooserBlock', (), {'label': 'obrázek', 'required': True}), 34: ('wagtail.blocks.ListBlock', (33,), {'group': '3. OstatnĂ', 'icon': 'image', 'label': 'Galerie'}), 35: ('wagtail.blocks.StructBlock', [[('gallery_items', 34)]], {'label': 'Galerie'}), 36: ('wagtail.images.blocks.ImageChooserBlock', (), {'label': 'Obrázek', 'required': True}), 37: ('wagtail.blocks.TextBlock', (), {'label': 'Popisek', 'required': False}), 38: ('wagtail.blocks.StructBlock', [[('img', 36), ('caption', 37)]], {}), 39: ('wagtail.images.blocks.ImageChooserBlock', (), {'label': 'Obrázek', 'required': False}), 40: ('wagtail.blocks.TextBlock', (), {'label': 'Titulek', 'required': False}), 41: ('wagtail.images.blocks.ImageChooserBlock', (), {'help_text': 'NenĂ tĹ™eba vyplĹovat, náhled bude dohledán automaticky.', 'label': 'Náhled videa (automatickĂ© pole)', 'required': False}), 42: ('wagtail.blocks.URLBlock', (), {'help_text': 'Odkaz na YouTube video bude automaticky zkonvertován na ID videa a NEBUDE uloĹľen.', 'label': 'Odkaz na video', 'required': False}), 43: ('wagtail.blocks.CharBlock', (), {'help_text': 'NenĂ tĹ™eba vyplĹovat, bude automaticky naÄŤteno z odkazu.', 'label': 'ID videa (automatickĂ© pole)', 'required': False}), 44: ('wagtail.blocks.BooleanBlock', (), {'default': False, 'help_text': 'Pokud toto pole nenĂ zaškrtlĂ©, video bude užšà neĹľ text okolo.', 'label': 'ZabĂrá maximálnà šĂĹ™ku povolenou pro text?', 'required': False}), 45: ('wagtail.blocks.BooleanBlock', (), {'default': False, 'help_text': 'Automaticky spustĂ video bez zvuku. Pozor, nÄ›kterĂ© prohlĂĹľeÄŤe blokujĂ i automatickĂ© pĹ™ehrávánĂ videĂ bez zvuku.', 'label': 'Spustit video automaticky?', 'required': False}), 46: ('wagtail.blocks.StructBlock', [[('poster_image', 41), ('video_url', 42), ('video_id', 43), ('is_full_width', 44), ('autoplay', 45)]], {}), 47: ('wagtail.blocks.DecimalBlock', (), {'help_text': 'NapĹ™. 50.04075', 'label': 'ZemÄ›pisná šĂĹ™ka'}), 48: ('wagtail.blocks.DecimalBlock', (), {'help_text': 'NapĹ™. 15.77659', 'label': 'ZemÄ›pisná dĂ©lka'}), 49: ('wagtail.blocks.CharBlock', (), {'default': '000000', 'help_text': 'Zadejte barvu pomocĂ HEX notace (bez # na začátku).', 'label': 'Barva špendlĂku (HEX)'}), 50: ('wagtail.blocks.IntegerBlock', (), {'default': 15, 'label': 'VĂ˝chozĂ zoom', 'max_value': 18, 'min_value': 1}), 51: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('osm-mapnik', 'OSM Mapnik'), ('stadia-osm-bright', 'Stadia OSM Bright'), ('stadia-outdoors', 'Stadia Outdoors'), ('mapbox-streets', 'Mapbox Streets'), ('mapbox-outdoors', 'Mapbox Outdoors'), ('mapbox-light', 'Mapbox Light'), ('mapbox-dark', 'Mapbox Dark'), ('mapbox-satellite', 'Mapbox Satellite'), ('mapbox-pirate', 'Mapbox Pirate Theme')], 'label': 'Styl'}), 52: ('wagtail.blocks.IntegerBlock', (), {'label': 'Výška v px', 'max_value': 1000, 'min_value': 100}), 53: ('wagtail.blocks.StructBlock', [[('lat', 47), ('lon', 48), ('hex_color', 49), ('zoom', 50), ('style', 51), ('height', 52)]], {'label': 'Ĺ pendlĂk na mapÄ›'}), 54: ('wagtail.blocks.CharBlock', (), {'label': 'Titulek', 'required': True}), 55: ('wagtail.blocks.TextBlock', (), {'help_text': "VloĹľte surovĂ˝ GeoJSON objekt typu 'Feature'. Vyrobit jej mĹŻĹľete napĹ™. pomocĂ online sluĹľby geojson.io. Pokud u objektu poskytnete properties 'title' a 'description', zobrazĂ se jak na mapÄ›, tak i v detailu.", 'label': 'Geodata', 'required': True}), 56: ('wagtail.blocks.URLBlock', (), {'label': 'Odkaz', 'required': False}), 57: ('wagtail.blocks.CharBlock', (), {'default': '000000', 'help_text': 'Zadejte barvu pomocĂ HEX notace (bez # na začátku).', 'label': 'Barva (HEX)'}), 58: ('wagtail.blocks.StructBlock', [[('title', 54), ('description', 37), ('geojson', 55), ('image', 39), ('link', 56), ('hex_color', 57)]], {'required': True}), 59: ('wagtail.blocks.ListBlock', (58,), {'label': 'Součásti'}), 60: ('wagtail.blocks.StructBlock', [[('features', 59), ('zoom', 50), ('style', 51), ('height', 52)]], {'label': 'Mapová kolekce'}), 61: ('wagtail.blocks.StreamBlock', [[('text', 3), ('table', 31), ('figure', 38), ('youtube', 46), ('map_point', 53), ('map_collection', 60)]], {'label': 'Obsah', 'required': False}), 62: ('wagtail.blocks.PageChooserBlock', (), {'label': 'Stránka', 'required': False}), 63: ('wagtail.blocks.StructBlock', [[('img', 39), ('headline', 40), ('content', 61), ('page', 62), ('link', 56)]], {}), 64: ('wagtail.blocks.CharBlock', (), {'label': 'Titulek', 'max_length': 128, 'required': True}), 65: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('black', 'ÄŚerná'), ('white', 'BĂlá'), ('pirati-yellow', 'Ĺ˝lutá'), ('grey-125', 'SvÄ›tle šedá'), ('blue-300', 'Modrá'), ('cyan-200', 'Tyrkysová'), ('green-400', 'Zelená'), ('violet-400', 'VĂnová'), ('red-600', 'ÄŚervená')], 'label': 'Barva'}), 66: ('wagtail.blocks.BooleanBlock', (), {'default': True, 'help_text': 'Pokud je zapnuto, tlaÄŤĂtko pĹ™i najetĂ kurzorem ukáže Ĺľlutou šipku.', 'label': 'Animovat na hover', 'required': False}), 67: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('normal', 'NormálnĂ'), ('large', 'Velká'), ('huge', 'MasivnĂ')], 'label': 'Velikost tlaÄŤĂtka'}), 68: ('wagtail.blocks.StructBlock', [[('title', 64), ('color', 65), ('hoveractive', 66), ('page', 62), ('link', 56), ('align', 11), ('size', 67)]], {}), 69: ('wagtail.blocks.ListBlock', (68,), {'label': 'TlaÄŤĂtka'}), 70: ('wagtail.blocks.StructBlock', [[('buttons', 69)]], {}), 71: ('wagtail.blocks.StreamBlock', [[('text', 3), ('table', 31), ('card', 63), ('figure', 38), ('youtube', 46), ('map_point', 53), ('map_collection', 60), ('button', 68), ('button_group', 70)]], {'label': 'Obsah levĂ©ho sloupce', 'required': True}), 72: ('wagtail.blocks.StreamBlock', [[('text', 3), ('table', 31), ('card', 63), ('figure', 38), ('youtube', 46), ('map_point', 53), ('map_collection', 60), ('button', 68), ('button_group', 70)]], {'label': 'Obsah pravĂ©ho sloupce', 'required': True}), 73: ('wagtail.blocks.StructBlock', [[('left_column_content', 71), ('right_column_content', 72)]], {}), 74: ('wagtail.blocks.StreamBlock', [[('text', 3), ('table', 31), ('card', 63), ('figure', 38), ('youtube', 46), ('map_point', 53), ('map_collection', 60), ('button', 68), ('button_group', 70)]], {'label': 'Obsah prostĹ™ednĂho sloupce', 'required': True}), 75: ('wagtail.blocks.StructBlock', [[('left_column_content', 71), ('middle_column_content', 74), ('right_column_content', 72)]], {}), 76: ('wagtail.blocks.StructBlock', [[('poster_image', 41), ('video_url', 42), ('video_id', 43), ('is_full_width', 44), ('autoplay', 45)]], {'label': 'YouTube video'}), 77: ('wagtail.blocks.CharBlock', (), {'label': 'Název', 'required': True}), 78: ('wagtail.blocks.StreamBlock', [[('text', 0), ('headline', 12), ('table', 31)]], {'label': 'Obsah'}), 79: ('wagtail.blocks.StructBlock', [[('name', 77), ('content', 78)]], {}), 80: ('wagtail.blocks.CharBlock', (), {'label': 'Titulek', 'required': False}), 81: ('wagtail.blocks.static_block.StaticBlock', (), {'admin_text': 'Adresa kalendáře se zadává v nastavenĂ hlavnĂ stránky webu', 'label': 'Volba kalendáře'}), 82: ('wagtail.blocks.StructBlock', [[('title', 80), ('info', 81)]], {}), 83: ('wagtail.blocks.PageChooserBlock', (), {'label': 'Formulářová stránka', 'page_type': ['uniweb.UniwebFormPage']}), 84: ('wagtail.blocks.StructBlock', [[('page', 83)]], {})}, verbose_name='Obsah stránky zobrazenĂ© po odeslánĂ formuláře'), + model_name="uniwebformpage", + name="content_landing", + field=wagtail.fields.StreamField( + [ + ("text", 0), + ("advanced_text", 4), + ("two_columns_text", 7), + ("headline", 12), + ("headline_with_picture", 15), + ("picture_list", 19), + ("flip_cards", 30), + ("table", 31), + ("popout_table", 32), + ("gallery", 35), + ("figure", 38), + ("card", 63), + ("two_columns", 73), + ("three_columns", 75), + ("youtube", 76), + ("map_point", 53), + ("map_collection", 60), + ("button", 68), + ("button_group", 70), + ("popout_point", 79), + ("calendar", 82), + ("subpage_form", 84), + ], + blank=True, + block_lookup={ + 0: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "h2", + "h3", + "h4", + "h5", + "bold", + "italic", + "ol", + "ul", + "hr", + "link", + "document-link", + "image", + "superscript", + "subscript", + "strikethrough", + "blockquote", + "embed", + ], + "group": "1. Text", + "label": "TextovĂ˝ editor", + "template": "styleguide2/includes/atoms/text/prose_richtext.html", + }, + ), + 1: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("left", "vlevo"), + ("center", "uprostĹ™ed"), + ("right", "vpravo"), + ], + "label": "zarovnánĂ", + }, + ), + 2: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("black_on_white", "ÄŤerná na bĂlĂ©"), + ("black_on_yellow", "ÄŤerná na ĹľlutĂ©"), + ("white_on_black", "bĂlá na ÄŤernĂ©"), + ("white_on_blue", "bĂlá na modrĂ©"), + ("white_on_cyan", "bĂlá na tyrkysovĂ©"), + ("white_on_violet", "bĂlá na fialovĂ©"), + ], + "label": "barva", + }, + ), + 3: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "h2", + "h3", + "h4", + "h5", + "bold", + "italic", + "ol", + "ul", + "hr", + "link", + "document-link", + "image", + "superscript", + "subscript", + "strikethrough", + "blockquote", + "embed", + ], + "group": "1. Text", + "label": "TextovĂ˝ editor", + }, + ), + 4: ( + "wagtail.blocks.StructBlock", + [[("align", 1), ("color", 2), ("text", 3)]], + {}, + ), + 5: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "h2", + "h3", + "h4", + "h5", + "bold", + "italic", + "ol", + "ul", + "hr", + "link", + "document-link", + "image", + "superscript", + "subscript", + "strikethrough", + "blockquote", + "embed", + ], + "label": "levĂ˝ sloupec", + }, + ), + 6: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "h2", + "h3", + "h4", + "h5", + "bold", + "italic", + "ol", + "ul", + "hr", + "link", + "document-link", + "image", + "superscript", + "subscript", + "strikethrough", + "blockquote", + "embed", + ], + "label": "pravĂ˝ sloupec", + }, + ), + 7: ( + "wagtail.blocks.StructBlock", + [[("left_text", 5), ("right_text", 6)]], + {}, + ), + 8: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Nadpis", "max_length": 300, "required": True}, + ), + 9: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("h1", "H1"), + ("h2", "H2"), + ("h3", "H3"), + ("h4", "H4"), + ("h5", "H5"), + ("h6", "H6"), + ], + "help_text": "ÄŚĂm nižšà čĂslo, tĂm vyššà úroveĹ.", + "label": "ĂšroveĹ nadpisu", + }, + ), + 10: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("head-alt-xl", "VelkĂ˝, Bebas Neue - 6XL"), + ("head-alt-lg", "StĹ™ednĂ, Bebas Neue - 4XL"), + ("head-alt-md", "ZákladnĂ velikost - Roboto - MD"), + ("head-alt-sm", "MalĂ˝ - Roboto - SM"), + ("head-alt-xs", "Extra malĂ˝ - Roboto - XS"), + ], + "help_text": "Náhled si prohlĂ©dnÄ›te na https://styleguide2.pirati.cz/pattern/patterns/atoms/text/headings.html.", + "label": "Velikost", + }, + ), + 11: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("auto", "Automaticky"), + ("center", "Na stĹ™ed"), + ], + "label": "ZarovnánĂ", + }, + ), + 12: ( + "wagtail.blocks.StructBlock", + [[("headline", 8), ("tag", 9), ("style", 10), ("align", 11)]], + {}, + ), + 13: ("wagtail.blocks.CharBlock", (), {"label": "nadpis"}), + 14: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + { + "help_text": "rozmÄ›r na výšku 75px nebo vĂce (obrázek bude zmenšen na výšku 75px)", + "label": "obrázek", + }, + ), + 15: ( + "wagtail.blocks.StructBlock", + [[("color", 2), ("title", 13), ("picture", 14)]], + {}, + ), + 16: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "h2", + "h3", + "h4", + "h5", + "bold", + "italic", + "ol", + "ul", + "hr", + "link", + "document-link", + "image", + "superscript", + "subscript", + "strikethrough", + "blockquote", + "embed", + ], + "label": "Odstavec", + }, + ), + 17: ("wagtail.blocks.ListBlock", (16,), {"label": "Odstavce"}), + 18: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + { + "help_text": "RozmÄ›r 30x30px nebo vĂce (obrázek bude zmenšen na 30x30px)", + "label": "Obrázek", + }, + ), + 19: ( + "wagtail.blocks.StructBlock", + [[("color", 2), ("items", 17), ("picture", 18)]], + {}, + ), + 20: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "FEC900", + "help_text": "KĂłd barvy lze vytvoĹ™it napĹ™. <a href='https://mdn.github.io/css-examples/tools/color-picker/' target='_blank'>zde</a>.", + "label": "Barva pozadĂ", + }, + ), + 21: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + { + "help_text": "Nahrazuje pozadĂ. Nelze vybrat obÄ› najednou.", + "label": "Obrázek", + "required": False, + }, + ), + 22: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + { + "help_text": "Nahrazuje obrázek. Nelze vybrat obÄ› najednou.", + "label": "PozadĂ", + "required": False, + }, + ), + 23: ( + "wagtail.blocks.TextBlock", + (), + {"help_text": "ĹádkovánĂ je manuálnĂ.", "label": "Nadpis"}, + ), + 24: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "000000", + "help_text": "KĂłd barvy lze vytvoĹ™it napĹ™. <a href='https://mdn.github.io/css-examples/tools/color-picker/' target='_blank'>zde</a>.", + "label": "Barva textu", + }, + ), + 25: ("wagtail.blocks.RichTextBlock", (), {"label": "Obsah"}), + 26: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "Pokud nenĂ vyplnÄ›n, tlaÄŤĂtko se neukáže.", + "label": "Nadpis tlaÄŤĂtka", + "required": False, + }, + ), + 27: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Odkaz tlaÄŤĂtka", "required": False}, + ), + 28: ( + "wagtail.blocks.StructBlock", + [ + [ + ("bg_color", 20), + ("image", 21), + ("background", 22), + ("title", 23), + ("title_color", 24), + ("content", 25), + ("button_text", 26), + ("button_url", 27), + ] + ], + {"label": "Karta"}, + ), + 29: ("wagtail.blocks.ListBlock", (28,), {"label": "Karty"}), + 30: ("wagtail.blocks.StructBlock", [[("cards", 29)]], {}), + 31: ( + "wagtail.contrib.table_block.blocks.TableBlock", + (), + { + "group": "3. OstatnĂ", + "label": "Tabulka", + "template": "styleguide2/includes/atoms/table/table.html", + }, + ), + 32: ( + "wagtail.contrib.table_block.blocks.TableBlock", + (), + { + "group": "3. OstatnĂ", + "label": "RozbalovacĂ tabulka", + "template": "styleguide2/includes/atoms/table/popout_table.html", + }, + ), + 33: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + {"label": "obrázek", "required": True}, + ), + 34: ( + "wagtail.blocks.ListBlock", + (33,), + {"group": "3. OstatnĂ", "icon": "image", "label": "Galerie"}, + ), + 35: ( + "wagtail.blocks.StructBlock", + [[("gallery_items", 34)]], + {"label": "Galerie"}, + ), + 36: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + {"label": "Obrázek", "required": True}, + ), + 37: ( + "wagtail.blocks.TextBlock", + (), + {"label": "Popisek", "required": False}, + ), + 38: ( + "wagtail.blocks.StructBlock", + [[("img", 36), ("caption", 37)]], + {}, + ), + 39: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + {"label": "Obrázek", "required": False}, + ), + 40: ( + "wagtail.blocks.TextBlock", + (), + {"label": "Titulek", "required": False}, + ), + 41: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + { + "help_text": "NenĂ tĹ™eba vyplĹovat, náhled bude dohledán automaticky.", + "label": "Náhled videa (automatickĂ© pole)", + "required": False, + }, + ), + 42: ( + "wagtail.blocks.URLBlock", + (), + { + "help_text": "Odkaz na YouTube video bude automaticky zkonvertován na ID videa a NEBUDE uloĹľen.", + "label": "Odkaz na video", + "required": False, + }, + ), + 43: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "NenĂ tĹ™eba vyplĹovat, bude automaticky naÄŤteno z odkazu.", + "label": "ID videa (automatickĂ© pole)", + "required": False, + }, + ), + 44: ( + "wagtail.blocks.BooleanBlock", + (), + { + "default": False, + "help_text": "Pokud toto pole nenĂ zaškrtlĂ©, video bude užšà neĹľ text okolo.", + "label": "ZabĂrá maximálnà šĂĹ™ku povolenou pro text?", + "required": False, + }, + ), + 45: ( + "wagtail.blocks.BooleanBlock", + (), + { + "default": False, + "help_text": "Automaticky spustĂ video bez zvuku. Pozor, nÄ›kterĂ© prohlĂĹľeÄŤe blokujĂ i automatickĂ© pĹ™ehrávánĂ videĂ bez zvuku.", + "label": "Spustit video automaticky?", + "required": False, + }, + ), + 46: ( + "wagtail.blocks.StructBlock", + [ + [ + ("poster_image", 41), + ("video_url", 42), + ("video_id", 43), + ("is_full_width", 44), + ("autoplay", 45), + ] + ], + {}, + ), + 47: ( + "wagtail.blocks.DecimalBlock", + (), + {"help_text": "NapĹ™. 50.04075", "label": "ZemÄ›pisná šĂĹ™ka"}, + ), + 48: ( + "wagtail.blocks.DecimalBlock", + (), + {"help_text": "NapĹ™. 15.77659", "label": "ZemÄ›pisná dĂ©lka"}, + ), + 49: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "000000", + "help_text": "Zadejte barvu pomocĂ HEX notace (bez # na začátku).", + "label": "Barva špendlĂku (HEX)", + }, + ), + 50: ( + "wagtail.blocks.IntegerBlock", + (), + { + "default": 15, + "label": "VĂ˝chozĂ zoom", + "max_value": 18, + "min_value": 1, + }, + ), + 51: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("osm-mapnik", "OSM Mapnik"), + ("stadia-osm-bright", "Stadia OSM Bright"), + ("stadia-outdoors", "Stadia Outdoors"), + ("mapbox-streets", "Mapbox Streets"), + ("mapbox-outdoors", "Mapbox Outdoors"), + ("mapbox-light", "Mapbox Light"), + ("mapbox-dark", "Mapbox Dark"), + ("mapbox-satellite", "Mapbox Satellite"), + ("mapbox-pirate", "Mapbox Pirate Theme"), + ], + "label": "Styl", + }, + ), + 52: ( + "wagtail.blocks.IntegerBlock", + (), + {"label": "Výška v px", "max_value": 1000, "min_value": 100}, + ), + 53: ( + "wagtail.blocks.StructBlock", + [ + [ + ("lat", 47), + ("lon", 48), + ("hex_color", 49), + ("zoom", 50), + ("style", 51), + ("height", 52), + ] + ], + {"label": "Ĺ pendlĂk na mapÄ›"}, + ), + 54: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Titulek", "required": True}, + ), + 55: ( + "wagtail.blocks.TextBlock", + (), + { + "help_text": "VloĹľte surovĂ˝ GeoJSON objekt typu 'Feature'. Vyrobit jej mĹŻĹľete napĹ™. pomocĂ online sluĹľby geojson.io. Pokud u objektu poskytnete properties 'title' a 'description', zobrazĂ se jak na mapÄ›, tak i v detailu.", + "label": "Geodata", + "required": True, + }, + ), + 56: ( + "wagtail.blocks.URLBlock", + (), + {"label": "Odkaz", "required": False}, + ), + 57: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "000000", + "help_text": "Zadejte barvu pomocĂ HEX notace (bez # na začátku).", + "label": "Barva (HEX)", + }, + ), + 58: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 54), + ("description", 37), + ("geojson", 55), + ("image", 39), + ("link", 56), + ("hex_color", 57), + ] + ], + {"required": True}, + ), + 59: ("wagtail.blocks.ListBlock", (58,), {"label": "Součásti"}), + 60: ( + "wagtail.blocks.StructBlock", + [ + [ + ("features", 59), + ("zoom", 50), + ("style", 51), + ("height", 52), + ] + ], + {"label": "Mapová kolekce"}, + ), + 61: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 3), + ("table", 31), + ("figure", 38), + ("youtube", 46), + ("map_point", 53), + ("map_collection", 60), + ] + ], + {"label": "Obsah", "required": False}, + ), + 62: ( + "wagtail.blocks.PageChooserBlock", + (), + {"label": "Stránka", "required": False}, + ), + 63: ( + "wagtail.blocks.StructBlock", + [ + [ + ("img", 39), + ("headline", 40), + ("content", 61), + ("page", 62), + ("link", 56), + ] + ], + {}, + ), + 64: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Titulek", "max_length": 128, "required": True}, + ), + 65: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("black", "ÄŚerná"), + ("white", "BĂlá"), + ("pirati-yellow", "Ĺ˝lutá"), + ("grey-125", "SvÄ›tle šedá"), + ("blue-300", "Modrá"), + ("cyan-200", "Tyrkysová"), + ("green-400", "Zelená"), + ("violet-400", "VĂnová"), + ("red-600", "ÄŚervená"), + ], + "label": "Barva", + }, + ), + 66: ( + "wagtail.blocks.BooleanBlock", + (), + { + "default": True, + "help_text": "Pokud je zapnuto, tlaÄŤĂtko pĹ™i najetĂ kurzorem ukáže Ĺľlutou šipku.", + "label": "Animovat na hover", + "required": False, + }, + ), + 67: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("normal", "NormálnĂ"), + ("large", "Velká"), + ("huge", "MasivnĂ"), + ], + "label": "Velikost tlaÄŤĂtka", + }, + ), + 68: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 64), + ("color", 65), + ("hoveractive", 66), + ("page", 62), + ("link", 56), + ("align", 11), + ("size", 67), + ] + ], + {}, + ), + 69: ("wagtail.blocks.ListBlock", (68,), {"label": "TlaÄŤĂtka"}), + 70: ("wagtail.blocks.StructBlock", [[("buttons", 69)]], {}), + 71: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 3), + ("table", 31), + ("card", 63), + ("figure", 38), + ("youtube", 46), + ("map_point", 53), + ("map_collection", 60), + ("button", 68), + ("button_group", 70), + ] + ], + {"label": "Obsah levĂ©ho sloupce", "required": True}, + ), + 72: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 3), + ("table", 31), + ("card", 63), + ("figure", 38), + ("youtube", 46), + ("map_point", 53), + ("map_collection", 60), + ("button", 68), + ("button_group", 70), + ] + ], + {"label": "Obsah pravĂ©ho sloupce", "required": True}, + ), + 73: ( + "wagtail.blocks.StructBlock", + [[("left_column_content", 71), ("right_column_content", 72)]], + {}, + ), + 74: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 3), + ("table", 31), + ("card", 63), + ("figure", 38), + ("youtube", 46), + ("map_point", 53), + ("map_collection", 60), + ("button", 68), + ("button_group", 70), + ] + ], + {"label": "Obsah prostĹ™ednĂho sloupce", "required": True}, + ), + 75: ( + "wagtail.blocks.StructBlock", + [ + [ + ("left_column_content", 71), + ("middle_column_content", 74), + ("right_column_content", 72), + ] + ], + {}, + ), + 76: ( + "wagtail.blocks.StructBlock", + [ + [ + ("poster_image", 41), + ("video_url", 42), + ("video_id", 43), + ("is_full_width", 44), + ("autoplay", 45), + ] + ], + {"label": "YouTube video"}, + ), + 77: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Název", "required": True}, + ), + 78: ( + "wagtail.blocks.StreamBlock", + [[("text", 0), ("headline", 12), ("table", 31)]], + {"label": "Obsah"}, + ), + 79: ( + "wagtail.blocks.StructBlock", + [[("name", 77), ("content", 78)]], + {}, + ), + 80: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Titulek", "required": False}, + ), + 81: ( + "wagtail.blocks.static_block.StaticBlock", + (), + { + "admin_text": "Adresa kalendáře se zadává v nastavenĂ hlavnĂ stránky webu", + "label": "Volba kalendáře", + }, + ), + 82: ( + "wagtail.blocks.StructBlock", + [[("title", 80), ("info", 81)]], + {}, + ), + 83: ( + "wagtail.blocks.PageChooserBlock", + (), + { + "label": "Formulářová stránka", + "page_type": ["uniweb.UniwebFormPage"], + }, + ), + 84: ("wagtail.blocks.StructBlock", [[("page", 83)]], {}), + }, + verbose_name="Obsah stránky zobrazenĂ© po odeslánĂ formuláře", + ), ), migrations.AlterField( - model_name='uniwebhomepage', - name='content', - field=wagtail.fields.StreamField([('text', 0), ('advanced_text', 4), ('two_columns_text', 7), ('headline', 12), ('headline_with_picture', 15), ('picture_list', 19), ('flip_cards', 30), ('table', 31), ('popout_table', 32), ('gallery', 35), ('figure', 38), ('card', 63), ('two_columns', 73), ('three_columns', 75), ('youtube', 76), ('map_point', 53), ('map_collection', 60), ('button', 68), ('button_group', 70), ('popout_point', 79), ('calendar', 82), ('subpage_form', 84), ('newsletter', 89), ('news_block', 92)], blank=True, block_lookup={0: ('wagtail.blocks.RichTextBlock', (), {'features': ['h2', 'h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], 'group': '1. Text', 'label': 'TextovĂ˝ editor', 'template': 'styleguide2/includes/atoms/text/prose_richtext.html'}), 1: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('left', 'vlevo'), ('center', 'uprostĹ™ed'), ('right', 'vpravo')], 'label': 'zarovnánĂ'}), 2: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('black_on_white', 'ÄŤerná na bĂlĂ©'), ('black_on_yellow', 'ÄŤerná na ĹľlutĂ©'), ('white_on_black', 'bĂlá na ÄŤernĂ©'), ('white_on_blue', 'bĂlá na modrĂ©'), ('white_on_cyan', 'bĂlá na tyrkysovĂ©'), ('white_on_violet', 'bĂlá na fialovĂ©')], 'label': 'barva'}), 3: ('wagtail.blocks.RichTextBlock', (), {'features': ['h2', 'h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], 'group': '1. Text', 'label': 'TextovĂ˝ editor'}), 4: ('wagtail.blocks.StructBlock', [[('align', 1), ('color', 2), ('text', 3)]], {}), 5: ('wagtail.blocks.RichTextBlock', (), {'features': ['h2', 'h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], 'label': 'levĂ˝ sloupec'}), 6: ('wagtail.blocks.RichTextBlock', (), {'features': ['h2', 'h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], 'label': 'pravĂ˝ sloupec'}), 7: ('wagtail.blocks.StructBlock', [[('left_text', 5), ('right_text', 6)]], {}), 8: ('wagtail.blocks.CharBlock', (), {'label': 'Nadpis', 'max_length': 300, 'required': True}), 9: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('h1', 'H1'), ('h2', 'H2'), ('h3', 'H3'), ('h4', 'H4'), ('h5', 'H5'), ('h6', 'H6')], 'help_text': 'ÄŚĂm nižšà čĂslo, tĂm vyššà úroveĹ.', 'label': 'ĂšroveĹ nadpisu'}), 10: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('head-alt-xl', 'VelkĂ˝, Bebas Neue - 6XL'), ('head-alt-lg', 'StĹ™ednĂ, Bebas Neue - 4XL'), ('head-alt-md', 'ZákladnĂ velikost - Roboto - MD'), ('head-alt-sm', 'MalĂ˝ - Roboto - SM'), ('head-alt-xs', 'Extra malĂ˝ - Roboto - XS')], 'help_text': 'Náhled si prohlĂ©dnÄ›te na https://styleguide2.pirati.cz/pattern/patterns/atoms/text/headings.html.', 'label': 'Velikost'}), 11: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('auto', 'Automaticky'), ('center', 'Na stĹ™ed')], 'label': 'ZarovnánĂ'}), 12: ('wagtail.blocks.StructBlock', [[('headline', 8), ('tag', 9), ('style', 10), ('align', 11)]], {}), 13: ('wagtail.blocks.CharBlock', (), {'label': 'nadpis'}), 14: ('wagtail.images.blocks.ImageChooserBlock', (), {'help_text': 'rozmÄ›r na výšku 75px nebo vĂce (obrázek bude zmenšen na výšku 75px)', 'label': 'obrázek'}), 15: ('wagtail.blocks.StructBlock', [[('color', 2), ('title', 13), ('picture', 14)]], {}), 16: ('wagtail.blocks.RichTextBlock', (), {'features': ['h2', 'h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], 'label': 'Odstavec'}), 17: ('wagtail.blocks.ListBlock', (16,), {'label': 'Odstavce'}), 18: ('wagtail.images.blocks.ImageChooserBlock', (), {'help_text': 'RozmÄ›r 30x30px nebo vĂce (obrázek bude zmenšen na 30x30px)', 'label': 'Obrázek'}), 19: ('wagtail.blocks.StructBlock', [[('color', 2), ('items', 17), ('picture', 18)]], {}), 20: ('wagtail.blocks.CharBlock', (), {'default': 'FEC900', 'help_text': "KĂłd barvy lze vytvoĹ™it napĹ™. <a href='https://mdn.github.io/css-examples/tools/color-picker/' target='_blank'>zde</a>.", 'label': 'Barva pozadĂ'}), 21: ('wagtail.images.blocks.ImageChooserBlock', (), {'help_text': 'Nahrazuje pozadĂ. Nelze vybrat obÄ› najednou.', 'label': 'Obrázek', 'required': False}), 22: ('wagtail.images.blocks.ImageChooserBlock', (), {'help_text': 'Nahrazuje obrázek. Nelze vybrat obÄ› najednou.', 'label': 'PozadĂ', 'required': False}), 23: ('wagtail.blocks.TextBlock', (), {'help_text': 'ĹádkovánĂ je manuálnĂ.', 'label': 'Nadpis'}), 24: ('wagtail.blocks.CharBlock', (), {'default': '000000', 'help_text': "KĂłd barvy lze vytvoĹ™it napĹ™. <a href='https://mdn.github.io/css-examples/tools/color-picker/' target='_blank'>zde</a>.", 'label': 'Barva textu'}), 25: ('wagtail.blocks.RichTextBlock', (), {'label': 'Obsah'}), 26: ('wagtail.blocks.CharBlock', (), {'help_text': 'Pokud nenĂ vyplnÄ›n, tlaÄŤĂtko se neukáže.', 'label': 'Nadpis tlaÄŤĂtka', 'required': False}), 27: ('wagtail.blocks.CharBlock', (), {'label': 'Odkaz tlaÄŤĂtka', 'required': False}), 28: ('wagtail.blocks.StructBlock', [[('bg_color', 20), ('image', 21), ('background', 22), ('title', 23), ('title_color', 24), ('content', 25), ('button_text', 26), ('button_url', 27)]], {'label': 'Karta'}), 29: ('wagtail.blocks.ListBlock', (28,), {'label': 'Karty'}), 30: ('wagtail.blocks.StructBlock', [[('cards', 29)]], {}), 31: ('wagtail.contrib.table_block.blocks.TableBlock', (), {'group': '3. OstatnĂ', 'label': 'Tabulka', 'template': 'styleguide2/includes/atoms/table/table.html'}), 32: ('wagtail.contrib.table_block.blocks.TableBlock', (), {'group': '3. OstatnĂ', 'label': 'RozbalovacĂ tabulka', 'template': 'styleguide2/includes/atoms/table/popout_table.html'}), 33: ('wagtail.images.blocks.ImageChooserBlock', (), {'label': 'obrázek', 'required': True}), 34: ('wagtail.blocks.ListBlock', (33,), {'group': '3. OstatnĂ', 'icon': 'image', 'label': 'Galerie'}), 35: ('wagtail.blocks.StructBlock', [[('gallery_items', 34)]], {'label': 'Galerie'}), 36: ('wagtail.images.blocks.ImageChooserBlock', (), {'label': 'Obrázek', 'required': True}), 37: ('wagtail.blocks.TextBlock', (), {'label': 'Popisek', 'required': False}), 38: ('wagtail.blocks.StructBlock', [[('img', 36), ('caption', 37)]], {}), 39: ('wagtail.images.blocks.ImageChooserBlock', (), {'label': 'Obrázek', 'required': False}), 40: ('wagtail.blocks.TextBlock', (), {'label': 'Titulek', 'required': False}), 41: ('wagtail.images.blocks.ImageChooserBlock', (), {'help_text': 'NenĂ tĹ™eba vyplĹovat, náhled bude dohledán automaticky.', 'label': 'Náhled videa (automatickĂ© pole)', 'required': False}), 42: ('wagtail.blocks.URLBlock', (), {'help_text': 'Odkaz na YouTube video bude automaticky zkonvertován na ID videa a NEBUDE uloĹľen.', 'label': 'Odkaz na video', 'required': False}), 43: ('wagtail.blocks.CharBlock', (), {'help_text': 'NenĂ tĹ™eba vyplĹovat, bude automaticky naÄŤteno z odkazu.', 'label': 'ID videa (automatickĂ© pole)', 'required': False}), 44: ('wagtail.blocks.BooleanBlock', (), {'default': False, 'help_text': 'Pokud toto pole nenĂ zaškrtlĂ©, video bude užšà neĹľ text okolo.', 'label': 'ZabĂrá maximálnà šĂĹ™ku povolenou pro text?', 'required': False}), 45: ('wagtail.blocks.BooleanBlock', (), {'default': False, 'help_text': 'Automaticky spustĂ video bez zvuku. Pozor, nÄ›kterĂ© prohlĂĹľeÄŤe blokujĂ i automatickĂ© pĹ™ehrávánĂ videĂ bez zvuku.', 'label': 'Spustit video automaticky?', 'required': False}), 46: ('wagtail.blocks.StructBlock', [[('poster_image', 41), ('video_url', 42), ('video_id', 43), ('is_full_width', 44), ('autoplay', 45)]], {}), 47: ('wagtail.blocks.DecimalBlock', (), {'help_text': 'NapĹ™. 50.04075', 'label': 'ZemÄ›pisná šĂĹ™ka'}), 48: ('wagtail.blocks.DecimalBlock', (), {'help_text': 'NapĹ™. 15.77659', 'label': 'ZemÄ›pisná dĂ©lka'}), 49: ('wagtail.blocks.CharBlock', (), {'default': '000000', 'help_text': 'Zadejte barvu pomocĂ HEX notace (bez # na začátku).', 'label': 'Barva špendlĂku (HEX)'}), 50: ('wagtail.blocks.IntegerBlock', (), {'default': 15, 'label': 'VĂ˝chozĂ zoom', 'max_value': 18, 'min_value': 1}), 51: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('osm-mapnik', 'OSM Mapnik'), ('stadia-osm-bright', 'Stadia OSM Bright'), ('stadia-outdoors', 'Stadia Outdoors'), ('mapbox-streets', 'Mapbox Streets'), ('mapbox-outdoors', 'Mapbox Outdoors'), ('mapbox-light', 'Mapbox Light'), ('mapbox-dark', 'Mapbox Dark'), ('mapbox-satellite', 'Mapbox Satellite'), ('mapbox-pirate', 'Mapbox Pirate Theme')], 'label': 'Styl'}), 52: ('wagtail.blocks.IntegerBlock', (), {'label': 'Výška v px', 'max_value': 1000, 'min_value': 100}), 53: ('wagtail.blocks.StructBlock', [[('lat', 47), ('lon', 48), ('hex_color', 49), ('zoom', 50), ('style', 51), ('height', 52)]], {'label': 'Ĺ pendlĂk na mapÄ›'}), 54: ('wagtail.blocks.CharBlock', (), {'label': 'Titulek', 'required': True}), 55: ('wagtail.blocks.TextBlock', (), {'help_text': "VloĹľte surovĂ˝ GeoJSON objekt typu 'Feature'. Vyrobit jej mĹŻĹľete napĹ™. pomocĂ online sluĹľby geojson.io. Pokud u objektu poskytnete properties 'title' a 'description', zobrazĂ se jak na mapÄ›, tak i v detailu.", 'label': 'Geodata', 'required': True}), 56: ('wagtail.blocks.URLBlock', (), {'label': 'Odkaz', 'required': False}), 57: ('wagtail.blocks.CharBlock', (), {'default': '000000', 'help_text': 'Zadejte barvu pomocĂ HEX notace (bez # na začátku).', 'label': 'Barva (HEX)'}), 58: ('wagtail.blocks.StructBlock', [[('title', 54), ('description', 37), ('geojson', 55), ('image', 39), ('link', 56), ('hex_color', 57)]], {'required': True}), 59: ('wagtail.blocks.ListBlock', (58,), {'label': 'Součásti'}), 60: ('wagtail.blocks.StructBlock', [[('features', 59), ('zoom', 50), ('style', 51), ('height', 52)]], {'label': 'Mapová kolekce'}), 61: ('wagtail.blocks.StreamBlock', [[('text', 3), ('table', 31), ('figure', 38), ('youtube', 46), ('map_point', 53), ('map_collection', 60)]], {'label': 'Obsah', 'required': False}), 62: ('wagtail.blocks.PageChooserBlock', (), {'label': 'Stránka', 'required': False}), 63: ('wagtail.blocks.StructBlock', [[('img', 39), ('headline', 40), ('content', 61), ('page', 62), ('link', 56)]], {}), 64: ('wagtail.blocks.CharBlock', (), {'label': 'Titulek', 'max_length': 128, 'required': True}), 65: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('black', 'ÄŚerná'), ('white', 'BĂlá'), ('pirati-yellow', 'Ĺ˝lutá'), ('grey-125', 'SvÄ›tle šedá'), ('blue-300', 'Modrá'), ('cyan-200', 'Tyrkysová'), ('green-400', 'Zelená'), ('violet-400', 'VĂnová'), ('red-600', 'ÄŚervená')], 'label': 'Barva'}), 66: ('wagtail.blocks.BooleanBlock', (), {'default': True, 'help_text': 'Pokud je zapnuto, tlaÄŤĂtko pĹ™i najetĂ kurzorem ukáže Ĺľlutou šipku.', 'label': 'Animovat na hover', 'required': False}), 67: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('normal', 'NormálnĂ'), ('large', 'Velká'), ('huge', 'MasivnĂ')], 'label': 'Velikost tlaÄŤĂtka'}), 68: ('wagtail.blocks.StructBlock', [[('title', 64), ('color', 65), ('hoveractive', 66), ('page', 62), ('link', 56), ('align', 11), ('size', 67)]], {}), 69: ('wagtail.blocks.ListBlock', (68,), {'label': 'TlaÄŤĂtka'}), 70: ('wagtail.blocks.StructBlock', [[('buttons', 69)]], {}), 71: ('wagtail.blocks.StreamBlock', [[('text', 3), ('table', 31), ('card', 63), ('figure', 38), ('youtube', 46), ('map_point', 53), ('map_collection', 60), ('button', 68), ('button_group', 70)]], {'label': 'Obsah levĂ©ho sloupce', 'required': True}), 72: ('wagtail.blocks.StreamBlock', [[('text', 3), ('table', 31), ('card', 63), ('figure', 38), ('youtube', 46), ('map_point', 53), ('map_collection', 60), ('button', 68), ('button_group', 70)]], {'label': 'Obsah pravĂ©ho sloupce', 'required': True}), 73: ('wagtail.blocks.StructBlock', [[('left_column_content', 71), ('right_column_content', 72)]], {}), 74: ('wagtail.blocks.StreamBlock', [[('text', 3), ('table', 31), ('card', 63), ('figure', 38), ('youtube', 46), ('map_point', 53), ('map_collection', 60), ('button', 68), ('button_group', 70)]], {'label': 'Obsah prostĹ™ednĂho sloupce', 'required': True}), 75: ('wagtail.blocks.StructBlock', [[('left_column_content', 71), ('middle_column_content', 74), ('right_column_content', 72)]], {}), 76: ('wagtail.blocks.StructBlock', [[('poster_image', 41), ('video_url', 42), ('video_id', 43), ('is_full_width', 44), ('autoplay', 45)]], {'label': 'YouTube video'}), 77: ('wagtail.blocks.CharBlock', (), {'label': 'Název', 'required': True}), 78: ('wagtail.blocks.StreamBlock', [[('text', 0), ('headline', 12), ('table', 31)]], {'label': 'Obsah'}), 79: ('wagtail.blocks.StructBlock', [[('name', 77), ('content', 78)]], {}), 80: ('wagtail.blocks.CharBlock', (), {'label': 'Titulek', 'required': False}), 81: ('wagtail.blocks.static_block.StaticBlock', (), {'admin_text': 'Adresa kalendáře se zadává v nastavenĂ hlavnĂ stránky webu', 'label': 'Volba kalendáře'}), 82: ('wagtail.blocks.StructBlock', [[('title', 80), ('info', 81)]], {}), 83: ('wagtail.blocks.PageChooserBlock', (), {'label': 'Formulářová stránka', 'page_type': ['uniweb.UniwebFormPage']}), 84: ('wagtail.blocks.StructBlock', [[('page', 83)]], {}), 85: ('wagtail.blocks.CharBlock', (), {'help_text': 'Pokud toto pole zĹŻstane nevyplnÄ›nĂ©, pouĹľije se nastavenĂ tohoto webu. V takovĂ©m pĹ™ĂpadÄ› se mĹŻĹľe pĹ™idat i odbÄ›ratel do Ecomailu.', 'label': 'ID newsletteru v Mailtrainu', 'required': False}), 86: ('wagtail.blocks.CharBlock', (), {'default': 'OdebĂrej náš', 'label': 'Nadpis bloku (1. řádek)', 'required': True}), 87: ('wagtail.blocks.CharBlock', (), {'default': 'newsletter', 'label': 'Nadpis bloku (2. řádek)', 'required': True}), 88: ('wagtail.blocks.CharBlock', (), {'default': 'Fake news tam nenajdeš, ale dozvĂš se, co chystáme doopravdy!', 'label': 'Popis newsletteru', 'required': True}), 89: ('wagtail.blocks.StructBlock', [[('list_id', 85), ('title_line_1', 86), ('title_line_2', 87), ('description', 88)]], {}), 90: ('wagtail.blocks.CharBlock', (), {'help_text': 'NejnovÄ›jšà články se naÄŤtou automaticky', 'label': 'Titulek'}), 91: ('wagtail.blocks.TextBlock', (), {'label': 'Popis', 'required': False}), 92: ('wagtail.blocks.StructBlock', [[('title', 90), ('description', 91)]], {'group': '3. OstatnĂ', 'template': 'styleguide2/includes/organisms/articles/district/articles_section.html'})}, verbose_name='obsah stránky'), + model_name="uniwebhomepage", + name="content", + field=wagtail.fields.StreamField( + [ + ("text", 0), + ("advanced_text", 4), + ("two_columns_text", 7), + ("headline", 12), + ("headline_with_picture", 15), + ("picture_list", 19), + ("flip_cards", 30), + ("table", 31), + ("popout_table", 32), + ("gallery", 35), + ("figure", 38), + ("card", 63), + ("two_columns", 73), + ("three_columns", 75), + ("youtube", 76), + ("map_point", 53), + ("map_collection", 60), + ("button", 68), + ("button_group", 70), + ("popout_point", 79), + ("calendar", 82), + ("subpage_form", 84), + ("newsletter", 89), + ("news_block", 92), + ], + blank=True, + block_lookup={ + 0: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "h2", + "h3", + "h4", + "h5", + "bold", + "italic", + "ol", + "ul", + "hr", + "link", + "document-link", + "image", + "superscript", + "subscript", + "strikethrough", + "blockquote", + "embed", + ], + "group": "1. Text", + "label": "TextovĂ˝ editor", + "template": "styleguide2/includes/atoms/text/prose_richtext.html", + }, + ), + 1: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("left", "vlevo"), + ("center", "uprostĹ™ed"), + ("right", "vpravo"), + ], + "label": "zarovnánĂ", + }, + ), + 2: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("black_on_white", "ÄŤerná na bĂlĂ©"), + ("black_on_yellow", "ÄŤerná na ĹľlutĂ©"), + ("white_on_black", "bĂlá na ÄŤernĂ©"), + ("white_on_blue", "bĂlá na modrĂ©"), + ("white_on_cyan", "bĂlá na tyrkysovĂ©"), + ("white_on_violet", "bĂlá na fialovĂ©"), + ], + "label": "barva", + }, + ), + 3: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "h2", + "h3", + "h4", + "h5", + "bold", + "italic", + "ol", + "ul", + "hr", + "link", + "document-link", + "image", + "superscript", + "subscript", + "strikethrough", + "blockquote", + "embed", + ], + "group": "1. Text", + "label": "TextovĂ˝ editor", + }, + ), + 4: ( + "wagtail.blocks.StructBlock", + [[("align", 1), ("color", 2), ("text", 3)]], + {}, + ), + 5: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "h2", + "h3", + "h4", + "h5", + "bold", + "italic", + "ol", + "ul", + "hr", + "link", + "document-link", + "image", + "superscript", + "subscript", + "strikethrough", + "blockquote", + "embed", + ], + "label": "levĂ˝ sloupec", + }, + ), + 6: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "h2", + "h3", + "h4", + "h5", + "bold", + "italic", + "ol", + "ul", + "hr", + "link", + "document-link", + "image", + "superscript", + "subscript", + "strikethrough", + "blockquote", + "embed", + ], + "label": "pravĂ˝ sloupec", + }, + ), + 7: ( + "wagtail.blocks.StructBlock", + [[("left_text", 5), ("right_text", 6)]], + {}, + ), + 8: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Nadpis", "max_length": 300, "required": True}, + ), + 9: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("h1", "H1"), + ("h2", "H2"), + ("h3", "H3"), + ("h4", "H4"), + ("h5", "H5"), + ("h6", "H6"), + ], + "help_text": "ÄŚĂm nižšà čĂslo, tĂm vyššà úroveĹ.", + "label": "ĂšroveĹ nadpisu", + }, + ), + 10: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("head-alt-xl", "VelkĂ˝, Bebas Neue - 6XL"), + ("head-alt-lg", "StĹ™ednĂ, Bebas Neue - 4XL"), + ("head-alt-md", "ZákladnĂ velikost - Roboto - MD"), + ("head-alt-sm", "MalĂ˝ - Roboto - SM"), + ("head-alt-xs", "Extra malĂ˝ - Roboto - XS"), + ], + "help_text": "Náhled si prohlĂ©dnÄ›te na https://styleguide2.pirati.cz/pattern/patterns/atoms/text/headings.html.", + "label": "Velikost", + }, + ), + 11: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("auto", "Automaticky"), + ("center", "Na stĹ™ed"), + ], + "label": "ZarovnánĂ", + }, + ), + 12: ( + "wagtail.blocks.StructBlock", + [[("headline", 8), ("tag", 9), ("style", 10), ("align", 11)]], + {}, + ), + 13: ("wagtail.blocks.CharBlock", (), {"label": "nadpis"}), + 14: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + { + "help_text": "rozmÄ›r na výšku 75px nebo vĂce (obrázek bude zmenšen na výšku 75px)", + "label": "obrázek", + }, + ), + 15: ( + "wagtail.blocks.StructBlock", + [[("color", 2), ("title", 13), ("picture", 14)]], + {}, + ), + 16: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "h2", + "h3", + "h4", + "h5", + "bold", + "italic", + "ol", + "ul", + "hr", + "link", + "document-link", + "image", + "superscript", + "subscript", + "strikethrough", + "blockquote", + "embed", + ], + "label": "Odstavec", + }, + ), + 17: ("wagtail.blocks.ListBlock", (16,), {"label": "Odstavce"}), + 18: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + { + "help_text": "RozmÄ›r 30x30px nebo vĂce (obrázek bude zmenšen na 30x30px)", + "label": "Obrázek", + }, + ), + 19: ( + "wagtail.blocks.StructBlock", + [[("color", 2), ("items", 17), ("picture", 18)]], + {}, + ), + 20: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "FEC900", + "help_text": "KĂłd barvy lze vytvoĹ™it napĹ™. <a href='https://mdn.github.io/css-examples/tools/color-picker/' target='_blank'>zde</a>.", + "label": "Barva pozadĂ", + }, + ), + 21: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + { + "help_text": "Nahrazuje pozadĂ. Nelze vybrat obÄ› najednou.", + "label": "Obrázek", + "required": False, + }, + ), + 22: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + { + "help_text": "Nahrazuje obrázek. Nelze vybrat obÄ› najednou.", + "label": "PozadĂ", + "required": False, + }, + ), + 23: ( + "wagtail.blocks.TextBlock", + (), + {"help_text": "ĹádkovánĂ je manuálnĂ.", "label": "Nadpis"}, + ), + 24: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "000000", + "help_text": "KĂłd barvy lze vytvoĹ™it napĹ™. <a href='https://mdn.github.io/css-examples/tools/color-picker/' target='_blank'>zde</a>.", + "label": "Barva textu", + }, + ), + 25: ("wagtail.blocks.RichTextBlock", (), {"label": "Obsah"}), + 26: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "Pokud nenĂ vyplnÄ›n, tlaÄŤĂtko se neukáže.", + "label": "Nadpis tlaÄŤĂtka", + "required": False, + }, + ), + 27: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Odkaz tlaÄŤĂtka", "required": False}, + ), + 28: ( + "wagtail.blocks.StructBlock", + [ + [ + ("bg_color", 20), + ("image", 21), + ("background", 22), + ("title", 23), + ("title_color", 24), + ("content", 25), + ("button_text", 26), + ("button_url", 27), + ] + ], + {"label": "Karta"}, + ), + 29: ("wagtail.blocks.ListBlock", (28,), {"label": "Karty"}), + 30: ("wagtail.blocks.StructBlock", [[("cards", 29)]], {}), + 31: ( + "wagtail.contrib.table_block.blocks.TableBlock", + (), + { + "group": "3. OstatnĂ", + "label": "Tabulka", + "template": "styleguide2/includes/atoms/table/table.html", + }, + ), + 32: ( + "wagtail.contrib.table_block.blocks.TableBlock", + (), + { + "group": "3. OstatnĂ", + "label": "RozbalovacĂ tabulka", + "template": "styleguide2/includes/atoms/table/popout_table.html", + }, + ), + 33: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + {"label": "obrázek", "required": True}, + ), + 34: ( + "wagtail.blocks.ListBlock", + (33,), + {"group": "3. OstatnĂ", "icon": "image", "label": "Galerie"}, + ), + 35: ( + "wagtail.blocks.StructBlock", + [[("gallery_items", 34)]], + {"label": "Galerie"}, + ), + 36: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + {"label": "Obrázek", "required": True}, + ), + 37: ( + "wagtail.blocks.TextBlock", + (), + {"label": "Popisek", "required": False}, + ), + 38: ( + "wagtail.blocks.StructBlock", + [[("img", 36), ("caption", 37)]], + {}, + ), + 39: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + {"label": "Obrázek", "required": False}, + ), + 40: ( + "wagtail.blocks.TextBlock", + (), + {"label": "Titulek", "required": False}, + ), + 41: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + { + "help_text": "NenĂ tĹ™eba vyplĹovat, náhled bude dohledán automaticky.", + "label": "Náhled videa (automatickĂ© pole)", + "required": False, + }, + ), + 42: ( + "wagtail.blocks.URLBlock", + (), + { + "help_text": "Odkaz na YouTube video bude automaticky zkonvertován na ID videa a NEBUDE uloĹľen.", + "label": "Odkaz na video", + "required": False, + }, + ), + 43: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "NenĂ tĹ™eba vyplĹovat, bude automaticky naÄŤteno z odkazu.", + "label": "ID videa (automatickĂ© pole)", + "required": False, + }, + ), + 44: ( + "wagtail.blocks.BooleanBlock", + (), + { + "default": False, + "help_text": "Pokud toto pole nenĂ zaškrtlĂ©, video bude užšà neĹľ text okolo.", + "label": "ZabĂrá maximálnà šĂĹ™ku povolenou pro text?", + "required": False, + }, + ), + 45: ( + "wagtail.blocks.BooleanBlock", + (), + { + "default": False, + "help_text": "Automaticky spustĂ video bez zvuku. Pozor, nÄ›kterĂ© prohlĂĹľeÄŤe blokujĂ i automatickĂ© pĹ™ehrávánĂ videĂ bez zvuku.", + "label": "Spustit video automaticky?", + "required": False, + }, + ), + 46: ( + "wagtail.blocks.StructBlock", + [ + [ + ("poster_image", 41), + ("video_url", 42), + ("video_id", 43), + ("is_full_width", 44), + ("autoplay", 45), + ] + ], + {}, + ), + 47: ( + "wagtail.blocks.DecimalBlock", + (), + {"help_text": "NapĹ™. 50.04075", "label": "ZemÄ›pisná šĂĹ™ka"}, + ), + 48: ( + "wagtail.blocks.DecimalBlock", + (), + {"help_text": "NapĹ™. 15.77659", "label": "ZemÄ›pisná dĂ©lka"}, + ), + 49: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "000000", + "help_text": "Zadejte barvu pomocĂ HEX notace (bez # na začátku).", + "label": "Barva špendlĂku (HEX)", + }, + ), + 50: ( + "wagtail.blocks.IntegerBlock", + (), + { + "default": 15, + "label": "VĂ˝chozĂ zoom", + "max_value": 18, + "min_value": 1, + }, + ), + 51: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("osm-mapnik", "OSM Mapnik"), + ("stadia-osm-bright", "Stadia OSM Bright"), + ("stadia-outdoors", "Stadia Outdoors"), + ("mapbox-streets", "Mapbox Streets"), + ("mapbox-outdoors", "Mapbox Outdoors"), + ("mapbox-light", "Mapbox Light"), + ("mapbox-dark", "Mapbox Dark"), + ("mapbox-satellite", "Mapbox Satellite"), + ("mapbox-pirate", "Mapbox Pirate Theme"), + ], + "label": "Styl", + }, + ), + 52: ( + "wagtail.blocks.IntegerBlock", + (), + {"label": "Výška v px", "max_value": 1000, "min_value": 100}, + ), + 53: ( + "wagtail.blocks.StructBlock", + [ + [ + ("lat", 47), + ("lon", 48), + ("hex_color", 49), + ("zoom", 50), + ("style", 51), + ("height", 52), + ] + ], + {"label": "Ĺ pendlĂk na mapÄ›"}, + ), + 54: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Titulek", "required": True}, + ), + 55: ( + "wagtail.blocks.TextBlock", + (), + { + "help_text": "VloĹľte surovĂ˝ GeoJSON objekt typu 'Feature'. Vyrobit jej mĹŻĹľete napĹ™. pomocĂ online sluĹľby geojson.io. Pokud u objektu poskytnete properties 'title' a 'description', zobrazĂ se jak na mapÄ›, tak i v detailu.", + "label": "Geodata", + "required": True, + }, + ), + 56: ( + "wagtail.blocks.URLBlock", + (), + {"label": "Odkaz", "required": False}, + ), + 57: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "000000", + "help_text": "Zadejte barvu pomocĂ HEX notace (bez # na začátku).", + "label": "Barva (HEX)", + }, + ), + 58: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 54), + ("description", 37), + ("geojson", 55), + ("image", 39), + ("link", 56), + ("hex_color", 57), + ] + ], + {"required": True}, + ), + 59: ("wagtail.blocks.ListBlock", (58,), {"label": "Součásti"}), + 60: ( + "wagtail.blocks.StructBlock", + [ + [ + ("features", 59), + ("zoom", 50), + ("style", 51), + ("height", 52), + ] + ], + {"label": "Mapová kolekce"}, + ), + 61: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 3), + ("table", 31), + ("figure", 38), + ("youtube", 46), + ("map_point", 53), + ("map_collection", 60), + ] + ], + {"label": "Obsah", "required": False}, + ), + 62: ( + "wagtail.blocks.PageChooserBlock", + (), + {"label": "Stránka", "required": False}, + ), + 63: ( + "wagtail.blocks.StructBlock", + [ + [ + ("img", 39), + ("headline", 40), + ("content", 61), + ("page", 62), + ("link", 56), + ] + ], + {}, + ), + 64: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Titulek", "max_length": 128, "required": True}, + ), + 65: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("black", "ÄŚerná"), + ("white", "BĂlá"), + ("pirati-yellow", "Ĺ˝lutá"), + ("grey-125", "SvÄ›tle šedá"), + ("blue-300", "Modrá"), + ("cyan-200", "Tyrkysová"), + ("green-400", "Zelená"), + ("violet-400", "VĂnová"), + ("red-600", "ÄŚervená"), + ], + "label": "Barva", + }, + ), + 66: ( + "wagtail.blocks.BooleanBlock", + (), + { + "default": True, + "help_text": "Pokud je zapnuto, tlaÄŤĂtko pĹ™i najetĂ kurzorem ukáže Ĺľlutou šipku.", + "label": "Animovat na hover", + "required": False, + }, + ), + 67: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("normal", "NormálnĂ"), + ("large", "Velká"), + ("huge", "MasivnĂ"), + ], + "label": "Velikost tlaÄŤĂtka", + }, + ), + 68: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 64), + ("color", 65), + ("hoveractive", 66), + ("page", 62), + ("link", 56), + ("align", 11), + ("size", 67), + ] + ], + {}, + ), + 69: ("wagtail.blocks.ListBlock", (68,), {"label": "TlaÄŤĂtka"}), + 70: ("wagtail.blocks.StructBlock", [[("buttons", 69)]], {}), + 71: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 3), + ("table", 31), + ("card", 63), + ("figure", 38), + ("youtube", 46), + ("map_point", 53), + ("map_collection", 60), + ("button", 68), + ("button_group", 70), + ] + ], + {"label": "Obsah levĂ©ho sloupce", "required": True}, + ), + 72: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 3), + ("table", 31), + ("card", 63), + ("figure", 38), + ("youtube", 46), + ("map_point", 53), + ("map_collection", 60), + ("button", 68), + ("button_group", 70), + ] + ], + {"label": "Obsah pravĂ©ho sloupce", "required": True}, + ), + 73: ( + "wagtail.blocks.StructBlock", + [[("left_column_content", 71), ("right_column_content", 72)]], + {}, + ), + 74: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 3), + ("table", 31), + ("card", 63), + ("figure", 38), + ("youtube", 46), + ("map_point", 53), + ("map_collection", 60), + ("button", 68), + ("button_group", 70), + ] + ], + {"label": "Obsah prostĹ™ednĂho sloupce", "required": True}, + ), + 75: ( + "wagtail.blocks.StructBlock", + [ + [ + ("left_column_content", 71), + ("middle_column_content", 74), + ("right_column_content", 72), + ] + ], + {}, + ), + 76: ( + "wagtail.blocks.StructBlock", + [ + [ + ("poster_image", 41), + ("video_url", 42), + ("video_id", 43), + ("is_full_width", 44), + ("autoplay", 45), + ] + ], + {"label": "YouTube video"}, + ), + 77: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Název", "required": True}, + ), + 78: ( + "wagtail.blocks.StreamBlock", + [[("text", 0), ("headline", 12), ("table", 31)]], + {"label": "Obsah"}, + ), + 79: ( + "wagtail.blocks.StructBlock", + [[("name", 77), ("content", 78)]], + {}, + ), + 80: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Titulek", "required": False}, + ), + 81: ( + "wagtail.blocks.static_block.StaticBlock", + (), + { + "admin_text": "Adresa kalendáře se zadává v nastavenĂ hlavnĂ stránky webu", + "label": "Volba kalendáře", + }, + ), + 82: ( + "wagtail.blocks.StructBlock", + [[("title", 80), ("info", 81)]], + {}, + ), + 83: ( + "wagtail.blocks.PageChooserBlock", + (), + { + "label": "Formulářová stránka", + "page_type": ["uniweb.UniwebFormPage"], + }, + ), + 84: ("wagtail.blocks.StructBlock", [[("page", 83)]], {}), + 85: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "Pokud toto pole zĹŻstane nevyplnÄ›nĂ©, pouĹľije se nastavenĂ tohoto webu. V takovĂ©m pĹ™ĂpadÄ› se mĹŻĹľe pĹ™idat i odbÄ›ratel do Ecomailu.", + "label": "ID newsletteru v Mailtrainu", + "required": False, + }, + ), + 86: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "OdebĂrej náš", + "label": "Nadpis bloku (1. řádek)", + "required": True, + }, + ), + 87: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "newsletter", + "label": "Nadpis bloku (2. řádek)", + "required": True, + }, + ), + 88: ( + "wagtail.blocks.CharBlock", + (), + { + "default": "Fake news tam nenajdeš, ale dozvĂš se, co chystáme doopravdy!", + "label": "Popis newsletteru", + "required": True, + }, + ), + 89: ( + "wagtail.blocks.StructBlock", + [ + [ + ("list_id", 85), + ("title_line_1", 86), + ("title_line_2", 87), + ("description", 88), + ] + ], + {}, + ), + 90: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "NejnovÄ›jšà články se naÄŤtou automaticky", + "label": "Titulek", + }, + ), + 91: ( + "wagtail.blocks.TextBlock", + (), + {"label": "Popis", "required": False}, + ), + 92: ( + "wagtail.blocks.StructBlock", + [[("title", 90), ("description", 91)]], + { + "group": "3. OstatnĂ", + "template": "styleguide2/includes/organisms/articles/district/articles_section.html", + }, + ), + }, + verbose_name="obsah stránky", + ), ), ] diff --git a/uniweb/migrations/0134_uniwebhomepage_fbevents_id.py b/uniweb/migrations/0134_uniwebhomepage_fbevents_id.py index 42dc282f..ff9e1af3 100644 --- a/uniweb/migrations/0134_uniwebhomepage_fbevents_id.py +++ b/uniweb/migrations/0134_uniwebhomepage_fbevents_id.py @@ -4,15 +4,16 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ - ('uniweb', '0133_alter_uniwebflexiblepage_content_and_more'), + ("uniweb", "0133_alter_uniwebflexiblepage_content_and_more"), ] operations = [ migrations.AddField( - model_name='uniwebhomepage', - name='fbevents_id', - field=models.CharField(blank=True, max_length=64, null=True, verbose_name='InternĂ ID 1'), + model_name="uniwebhomepage", + name="fbevents_id", + field=models.CharField( + blank=True, max_length=64, null=True, verbose_name="InternĂ ID 1" + ), ), ] diff --git a/uniweb/templates/uniweb/blocks/embedded_subpage_form.html b/uniweb/templates/uniweb/blocks/embedded_subpage_form.html index 52fef519..df216d08 100644 --- a/uniweb/templates/uniweb/blocks/embedded_subpage_form.html +++ b/uniweb/templates/uniweb/blocks/embedded_subpage_form.html @@ -76,4 +76,4 @@ {% include "styleguide2/includes/atoms/buttons/round_button_form.html" with show_arrow_on_hover=True text="Odeslat" %} </form> -{% endif %} \ No newline at end of file +{% endif %} -- GitLab