Skip to content

Commit

Permalink
Amélioration du message d'aide pour les groupes de boutons (#229)
Browse files Browse the repository at this point in the history
* Update warning message

* Update warning message
  • Loading branch information
Ash-Crow authored Oct 24, 2024
1 parent 5b6bf6e commit df946f9
Show file tree
Hide file tree
Showing 8 changed files with 8,415 additions and 195 deletions.
3,896 changes: 3,896 additions & 0 deletions blog/migrations/0037_alter_blogentrypage_body_and_more.py

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion content_manager/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ class SitesFacilesBasePage(Page):
(
"buttons",
ButtonsHorizontalListBlock(
help_text=_("Please use only one primary button. If you use icons, align them on the same side.")
help_text=_(
"""Please use only one primary button.
If you use icons, use them on all buttons and align them on the same side."""
),
label=_("Buttons"),
),
),
],
Expand Down
12 changes: 10 additions & 2 deletions content_manager/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,11 @@ class CardBlock(blocks.StructBlock):
(
"buttons",
ButtonsHorizontalListBlock(
help_text=_("Please use only one primary button. If you use icons, align them on the same side.")
help_text=_(
"""Please use only one primary button.
If you use icons, use them on all buttons and align them on the same side."""
),
label=_("Buttons"),
),
),
],
Expand Down Expand Up @@ -641,7 +645,11 @@ class TextAndCTA(blocks.StructBlock):
(
"buttons",
ButtonsHorizontalListBlock(
help_text=_("Please use only one primary button. If you use icons, align them on the same side.")
help_text=_(
"""Please use only one primary button.
If you use icons, use them on all buttons and align them on the same side."""
),
label=_("Buttons"),
),
),
],
Expand Down
Binary file modified content_manager/locale/fr/LC_MESSAGES/django.mo
Binary file not shown.
Loading

0 comments on commit df946f9

Please sign in to comment.