Skip to content
Snippets Groups Projects
Commit 11cca3d5 authored by Alexa Valentová's avatar Alexa Valentová
Browse files

make line breaks manual

parent 3b6cbdf5
No related branches found
No related tags found
2 merge requests!936Release,!935Make line breaks manual
......@@ -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")
......
# 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'),
),
]
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment