From 80eb1f7e411adb5f9779ba637faa968f335f5087 Mon Sep 17 00:00:00 2001
From: Martin Zumr <martin@codero.cz>
Date: Fri, 26 Aug 2022 12:13:15 +0200
Subject: [PATCH] [ADD] help_text on social_icon and twitter_username

---
 main/blocks.py | 3 ++-
 main/models.py | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/main/blocks.py b/main/blocks.py
index 1eb15471..bbd25225 100644
--- a/main/blocks.py
+++ b/main/blocks.py
@@ -200,7 +200,8 @@ class OtherLinksBlock(StructBlock):
 
 
 class SocialLinkBlock(LinkBlock):
-    icon = CharBlock(label="Ikona", help_text="Seznam ikon - https://styleguide.pirati.cz/latest/?p=viewall-atoms-icons")  # TODO CSS class name or somthing better?
+    icon = CharBlock(label="Ikona", help_text="Seznam ikon - https://styleguide.pirati.cz/latest/?p=viewall-atoms-icons <br/>"
+                                              "Název ikony zadejte bez tečky na začátku")  # TODO CSS class name or somthing better?
 
     class Meta:
         icon = "link"
diff --git a/main/models.py b/main/models.py
index a11db72b..9a1b5d81 100644
--- a/main/models.py
+++ b/main/models.py
@@ -456,6 +456,7 @@ class MainPersonPage(ExtendedMetadataPageMixin, SubpageMixin, MetadataPageMixin,
         blank=True,
         null=True,
         max_length=32,
+        help_text="Uživatelské jméno zadejte bez @ na začátku"
     )
 
     social_links = StreamField(
-- 
GitLab