diff --git a/main/blocks.py b/main/blocks.py index 4a567c12f07ecb3ac6049e5330925dc4aa268c33..acf8ff94f4a58b0ba628f1d23dd386ee954d8ca8 100644 --- a/main/blocks.py +++ b/main/blocks.py @@ -44,8 +44,8 @@ class BoxesBlock(StructBlock): class HomePageCarouseSlideBlock(CTAMixin, StructBlock): image = ImageChooserBlock(label="Hlavní obrázek jednoho slidu carouselu") - line_1 = CharBlock(label="První řádek") - line_2 = CharBlock(label="Druhý řádek") + line_1 = TextBlock(label="První řádek") + line_2 = TextBlock(label="Druhý řádek") class Meta: icon = "form" diff --git a/main/templates/main/blocks/homepage_carousel_block.html b/main/templates/main/blocks/homepage_carousel_block.html index 892e042cb2507d43aa5dc1bb0b67fc6bdc0c64d7..f7e827aeefef36b4ff31922f3c7b74d24be32f00 100644 --- a/main/templates/main/blocks/homepage_carousel_block.html +++ b/main/templates/main/blocks/homepage_carousel_block.html @@ -8,8 +8,8 @@ <img src="{{ slide_img.url }}" draggable="false"> <div class="header-carousel--text grid-container"> <div class="h-fit"> - <h1 class="text-white">{{ slide.line_1 }}</h1>{# TODO SEO <h1><span><span> #} - <h1 class="text-yellow-500 mb-2">{{ slide.line_2 }}</h1> + <h1 class="text-white">{{ slide.line_1|linebreaksbr }}</h1>{# TODO SEO <h1><span><span> #} + <h1 class="text-yellow-500 mb-2">{{ slide.line_2|linebreaksbr }}</h1> {% include 'main/includes/href_button.html' with btn_link=slide.button_link btn_text=slide.button_text extra_classes="btn-carousel" %} </div> </div>