diff --git a/main/blocks.py b/main/blocks.py index 8eb96ff3a0d4d4fa688cde0d4720fdc7bb10c2ea..d3ec6128b73435b46694cd3faed5c3e9fc63f598 100644 --- a/main/blocks.py +++ b/main/blocks.py @@ -323,7 +323,7 @@ class TeamBlock(StructBlock): class FlipCardBlock(StructBlock): image = ImageChooserBlock(label="Obrázek") - title = CharBlock(label="Nadpis") + title = TextBlock(label="Nadpis", help_text="Řádkování je manuální.") content = RichTextBlock(label="Obsah") diff --git a/main/migrations/0076_alter_mainresultspage_content.py b/main/migrations/0076_alter_mainresultspage_content.py new file mode 100644 index 0000000000000000000000000000000000000000..f21f4925a79934b56a792cfd5bb84af13771ae1c --- /dev/null +++ b/main/migrations/0076_alter_mainresultspage_content.py @@ -0,0 +1,21 @@ +# Generated by Django 4.1.10 on 2024-02-20 11:01 + +from django.db import migrations +import wagtail.blocks +import wagtail.fields +import wagtail.images.blocks + + +class Migration(migrations.Migration): + + dependencies = [ + ('main', '0075_alter_mainresultspage_content'), + ] + + operations = [ + migrations.AlterField( + model_name='mainresultspage', + name='content', + field=wagtail.fields.StreamField([('flip_cards', wagtail.blocks.StructBlock([('cards', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Obrázek')), ('title', wagtail.blocks.TextBlock(help_text='Řádkování je manuální.', label='Nadpis')), ('content', wagtail.blocks.RichTextBlock(label='Obsah')), ('button_text', wagtail.blocks.CharBlock(help_text='Pokud není vyplněn, tlačítko se neukáže.', label='Nadpis tlačítka', required=False)), ('button_url', wagtail.blocks.CharBlock(label='Odkaz tlačítka', required=False))], label='Karta'), label='Karty'))])), ('text', wagtail.blocks.RichTextBlock(template='styleguide2/includes/atoms/text/prose_richtext.html'))], blank=True, use_json_field=True, verbose_name='Obsah'), + ), + ] diff --git a/shared/templates/styleguide2/includes/molecules/boxes/flip_card_box.html b/shared/templates/styleguide2/includes/molecules/boxes/flip_card_box.html index d64b2dc77c55162d5f34f68e68bfbb9bcc991b31..d8955ad96dd5d6350ea895f900805dc542f4ef0d 100644 --- a/shared/templates/styleguide2/includes/molecules/boxes/flip_card_box.html +++ b/shared/templates/styleguide2/includes/molecules/boxes/flip_card_box.html @@ -19,9 +19,7 @@ ></div> <h1 - class=" - font-alt text-5xl whitespace-pre-line absolute top-10 left-10 max-w-[60%] - " + class="font-alt text-5xl whitespace-pre-line absolute top-10 left-10" >{{ self.title }}</h1> </div> </div>