From cad2aa33a3a9a1db9ed35ba0299eb7bfbd3fd571 Mon Sep 17 00:00:00 2001 From: Sylvain Boissel Date: Mon, 26 Aug 2024 15:22:01 +0200 Subject: [PATCH] Add page tree --- ...entrypage_body_alter_blogindexpage_body.py | 2515 +++++++++++++++++ content_manager/blocks.py | 6 +- .../locale/fr/LC_MESSAGES/django.mo | Bin 18587 -> 19020 bytes .../locale/fr/LC_MESSAGES/django.po | 122 +- .../migrations/0041_alter_contentpage_body.py | 1264 +++++++++ .../content_manager/blocks/blocks_stream.html | 28 +- .../full_width_background_with_sidemenu.html | 8 +- .../content_manager/blocks/pagetree.html | 33 + dashboard/locale/fr/LC_MESSAGES/django.mo | Bin 2428 -> 2428 bytes dashboard/locale/fr/LC_MESSAGES/django.po | 12 +- ...trypage_body_alter_eventsindexpage_body.py | 2515 +++++++++++++++++ forms/locale/fr/LC_MESSAGES/django.mo | Bin 1581 -> 1581 bytes forms/locale/fr/LC_MESSAGES/django.po | 20 +- 13 files changed, 6443 insertions(+), 80 deletions(-) create mode 100644 blog/migrations/0031_alter_blogentrypage_body_alter_blogindexpage_body.py create mode 100644 content_manager/migrations/0041_alter_contentpage_body.py create mode 100644 content_manager/templates/content_manager/blocks/pagetree.html create mode 100644 events/migrations/0005_alter_evententrypage_body_alter_eventsindexpage_body.py diff --git a/blog/migrations/0031_alter_blogentrypage_body_alter_blogindexpage_body.py b/blog/migrations/0031_alter_blogentrypage_body_alter_blogindexpage_body.py new file mode 100644 index 00000000..f6777f36 --- /dev/null +++ b/blog/migrations/0031_alter_blogentrypage_body_alter_blogindexpage_body.py @@ -0,0 +1,2515 @@ +# Generated by Django 5.0.8 on 2024-08-26 13:21 + +import wagtail.fields +from django.db import migrations + + +class Migration(migrations.Migration): + dependencies = [ + ("blog", "0030_alter_category_locale"), + ] + + operations = [ + migrations.AlterField( + model_name="blogentrypage", + name="body", + field=wagtail.fields.StreamField( + [ + ("paragraph", 0), + ("image", 9), + ("imageandtext", 22), + ("alert", 27), + ("callout", 34), + ("highlight", 37), + ("quote", 42), + ("video", 49), + ("transcription", 50), + ("badges_list", 55), + ("tags_list", 61), + ("link", 62), + ("card", 84), + ("tile", 94), + ("accordions", 97), + ("stepper", 103), + ("markdown", 104), + ("iframe", 109), + ("separator", 112), + ("multicolumns", 141), + ("fullwidthbackground", 143), + ("fullwidthbackgroundwithsidemenu", 150), + ("subpageslist", 151), + ("blog_recent_entries", 132), + ("events_recent_entries", 134), + ("html", 152), + ], + blank=True, + block_lookup={ + 0: ("wagtail.blocks.RichTextBlock", (), {"label": "Rich text"}), + 1: ("wagtail.blocks.CharBlock", (), {"label": "Title", "required": False}), + 2: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("h2", "Heading 2"), + ("h3", "Heading 3"), + ("h4", "Heading 4"), + ("h5", "Heading 5"), + ("h6", "Heading 6"), + ("p", "Paragraph"), + ], + "help_text": "Adapt to the page layout. Defaults to heading 3.", + "label": "Heading level", + "required": False, + }, + ), + 3: ("wagtail.images.blocks.ImageChooserBlock", (), {"label": "Image"}), + 4: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Alternative text (textual description of the image)", "required": False}, + ), + 5: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("fr-content-media--sm", "Small"), + ("", "Medium"), + ("fr-content-media--lg", "Large"), + ], + "label": "Witdh", + "required": False, + }, + ), + 6: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("fr-ratio-32x9", "32x9"), + ("fr-ratio-16x9", "16x9"), + ("fr-ratio-3x2", "3x2"), + ("fr-ratio-4x3", "4x3"), + ("fr-ratio-1x1", "1x1"), + ("fr-ratio-3x4", "3x4"), + ("fr-ratio-2x3", "2x3"), + ], + "label": "Image ratio", + "required": False, + }, + ), + 7: ("wagtail.blocks.CharBlock", (), {"label": "Caption", "required": False}), + 8: ("wagtail.blocks.URLBlock", (), {"label": "Link", "required": False}), + 9: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 1), + ("heading_tag", 2), + ("image", 3), + ("alt", 4), + ("width", 5), + ("image_ratio", 6), + ("caption", 7), + ("url", 8), + ] + ], + {}, + ), + 10: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [("left", "Left"), ("right", "Right")], + "label": "Side where the image is displayed", + }, + ), + 11: ( + "wagtail.blocks.ChoiceBlock", + [], + {"choices": [("3", "3/12"), ("5", "5/12"), ("6", "6/12")], "label": "Image width"}, + ), + 12: ( + "wagtail.blocks.PageChooserBlock", + (), + { + "help_text": "Link to a page of this site. Use either this, the document, or the external URL parameter.", + "label": "Page", + "required": False, + }, + ), + 13: ( + "wagtail.documents.blocks.DocumentChooserBlock", + (), + { + "help_text": "Use either this, the external URL or the page parameter.", + "label": "Document", + "required": False, + }, + ), + 14: ( + "wagtail.blocks.URLBlock", + (), + { + "help_text": "Use either this, the document or the page parameter.", + "label": "External URL", + "required": False, + }, + ), + 15: ("wagtail.blocks.CharBlock", (), {"label": "Link label", "required": False}), + 16: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("", "No icon"), + ("fr-icon-arrow-right-line fr-link--icon-right", "Icon on the right side"), + ("fr-icon-arrow-right-line fr-link--icon-left", "Icon on the left side"), + ], + "help_text": "Only used for internal links.", + "label": "Icon", + "required": False, + }, + ), + 17: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [("fr-link--sm", "Small"), ("", "Medium"), ("fr-link--lg", "Large")], + "label": "Size", + "required": False, + }, + ), + 18: ( + "wagtail.blocks.StructBlock", + [ + [ + ("page", 12), + ("document", 13), + ("external_url", 14), + ("text", 15), + ("icon", 16), + ("size", 17), + ] + ], + { + "help_text": "The link is shown at the bottom of the text block, with an arrow", + "label": "Link", + "required": False, + }, + ), + 19: ( + "wagtail.blocks.CharBlock", + (), + { + "group": "obsolete", + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the Link field above.", + "label": "Link label (obsolete)", + "required": False, + }, + ), + 20: ( + "wagtail.blocks.PageChooserBlock", + (), + { + "group": "obsolete", + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the Link field above.", + "label": "Internal link (obsolete)", + "required": False, + }, + ), + 21: ( + "wagtail.blocks.URLBlock", + (), + { + "group": "obsolete", + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the Link field above.", + "label": "Link URL (obsolete)", + "required": False, + }, + ), + 22: ( + "wagtail.blocks.StructBlock", + [ + [ + ("image", 3), + ("image_side", 10), + ("image_ratio", 11), + ("text", 0), + ("link", 18), + ("link_label", 19), + ("page", 20), + ("link_url", 21), + ] + ], + {"label": "Image and text"}, + ), + 23: ("wagtail.blocks.CharBlock", (), {"label": "Message title", "required": False}), + 24: ("wagtail.blocks.TextBlock", (), {"label": "Message text", "required": False}), + 25: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("error", "Error"), + ("success", "Success"), + ("info", "Information"), + ("warning", "Warning"), + ], + "label": "Message type", + }, + ), + 26: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("h2", "Heading 2"), + ("h3", "Heading 3"), + ("h4", "Heading 4"), + ("h5", "Heading 5"), + ("h6", "Heading 6"), + ("p", "Paragraph"), + ], + "help_text": "Adapt to the page layout. Defaults to heading 3.", + "label": "Heading level", + }, + ), + 27: ( + "wagtail.blocks.StructBlock", + [[("title", 23), ("description", 24), ("level", 25), ("heading_tag", 26)]], + {"label": "Alert message"}, + ), + 28: ("content_manager.blocks.IconPickerBlock", (), {"label": "Icon", "required": False}), + 29: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "bold", + "italic", + "link", + "document-link", + "superscript", + "subscript", + "strikethrough", + ], + "label": "Content", + "required": False, + }, + ), + 30: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("fr-btn", "Primary"), + ("fr-btn fr-btn--secondary", "Secundary"), + ("fr-btn fr-btn--tertiary", "Tertiary"), + ("fr-btn fr-btn--tertiary-no-outline", "Tertiary without border"), + ], + "label": "Button type", + "required": False, + }, + ), + 31: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [("fr-btn--icon-left", "Left"), ("fr-btn--icon-right", "Right")], + "label": "Icon side", + "required": False, + }, + ), + 32: ( + "wagtail.blocks.StructBlock", + [ + [ + ("page", 12), + ("document", 13), + ("external_url", 14), + ("text", 15), + ("button_type", 30), + ("icon_class", 28), + ("icon_side", 31), + ] + ], + {"label": "Button", "required": False}, + ), + 33: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("green-tilleul-verveine", "Tilleul verveine"), + ("green-bourgeon", "Bourgeon"), + ("green-emeraude", "Émeraude"), + ("green-menthe", "Menthe"), + ("green-archipel", "Archipel"), + ("blue-ecume", "Écume"), + ("blue-cumulus", "Cumulus"), + ("purple-glycine", "Glycine"), + ("pink-macaron", "Macaron"), + ("pink-tuile", "Tuile"), + ("yellow-tournesol", "Tournesol"), + ("yellow-moutarde", "Moutarde"), + ("orange-terre-battue", "Terre battue"), + ("brown-cafe-creme", "Café crème"), + ("brown-caramel", "Caramel"), + ("brown-opera", "Opéra"), + ("beige-gris-galet", "Gris galet"), + ], + "label": "Color", + "required": False, + }, + ), + 34: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 1), + ("heading_tag", 26), + ("icon_class", 28), + ("text", 29), + ("button", 32), + ("color", 33), + ] + ], + {"group": "DSFR components", "label": "Callout"}, + ), + 35: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "bold", + "italic", + "link", + "document-link", + "superscript", + "subscript", + "strikethrough", + ], + "label": "Content", + }, + ), + 36: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [("fr-text--sm", "Small"), ("", "Medium"), ("fr-text--lg", "Large")], + "label": "Size", + "required": False, + }, + ), + 37: ( + "wagtail.blocks.StructBlock", + [[("text", 35), ("color", 33), ("size", 36)]], + {"group": "DSFR components", "label": "Highlight"}, + ), + 38: ("wagtail.images.blocks.ImageChooserBlock", (), {"label": "Image", "required": False}), + 39: ("wagtail.blocks.CharBlock", (), {"label": "Quote"}), + 40: ("wagtail.blocks.CharBlock", (), {"label": "Author name", "required": False}), + 41: ("wagtail.blocks.CharBlock", (), {"label": "Author title", "required": False}), + 42: ( + "wagtail.blocks.StructBlock", + [[("image", 38), ("quote", 39), ("author_name", 40), ("author_title", 41), ("color", 33)]], + {"group": "DSFR components", "label": "Quote"}, + ), + 43: ("wagtail.blocks.CharBlock", (), {"label": "Video title", "required": False}), + 44: ( + "wagtail.blocks.URLBlock", + (), + { + "help_text": "Use embed format, with a version that doesn't require a consent banner if available. (e.g. : https://www.youtube-nocookie.com/embed/gLzXOViPX-0) For Youtube, use Embed video and check Enable privacy-enhanced mode.", + "label": "Video URL", + }, + ), + 45: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [("fr-ratio-16x9", "16x9"), ("fr-ratio-4x3", "4x3"), ("fr-ratio-1x1", "1x1")], + "label": "Video ratio", + "required": False, + }, + ), + 46: ( + "wagtail.blocks.CharBlock", + (), + {"default": "Transcription", "label": "Title", "required": False}, + ), + 47: ("wagtail.blocks.RichTextBlock", (), {"label": "Transcription content", "required": False}), + 48: ( + "wagtail.blocks.StructBlock", + [[("title", 46), ("content", 47)]], + {"label": "Transcription", "required": False}, + ), + 49: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 43), + ("caption", 7), + ("url", 44), + ("width", 5), + ("video_ratio", 45), + ("transcription", 48), + ] + ], + {"label": "Video"}, + ), + 50: ("wagtail.blocks.StructBlock", [[("title", 46), ("content", 47)]], {"label": "Transcription"}), + 51: ("wagtail.blocks.CharBlock", (), {"label": "Badge label", "required": False}), + 52: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("", [("new", "New"), ("grey", "Grey")]), + ( + "System colors", + [ + ("info", "Info"), + ("success", "Success"), + ("warning", "Warning"), + ("error", "Error"), + ], + ), + ( + "Illustration colors", + [ + ("green-tilleul-verveine", "Tilleul verveine"), + ("green-bourgeon", "Bourgeon"), + ("green-emeraude", "Émeraude"), + ("green-menthe", "Menthe"), + ("green-archipel", "Archipel"), + ("blue-ecume", "Écume"), + ("blue-cumulus", "Cumulus"), + ("purple-glycine", "Glycine"), + ("pink-macaron", "Macaron"), + ("pink-tuile", "Tuile"), + ("yellow-tournesol", "Tournesol"), + ("yellow-moutarde", "Moutarde"), + ("orange-terre-battue", "Terre battue"), + ("brown-cafe-creme", "Café crème"), + ("brown-caramel", "Caramel"), + ("brown-opera", "Opéra"), + ("beige-gris-galet", "Gris galet"), + ], + ), + ], + "label": "Badge color", + "required": False, + }, + ), + 53: ("wagtail.blocks.BooleanBlock", (), {"label": "Hide badge icon", "required": False}), + 54: ( + "wagtail.blocks.StructBlock", + [[("text", 51), ("color", 52), ("hide_icon", 53)]], + {"label": "Badge"}, + ), + 55: ("wagtail.blocks.StreamBlock", [[("badge", 54)]], {"label": "Badge list"}), + 56: ("wagtail.blocks.CharBlock", (), {"label": "Title"}), + 57: ("wagtail.blocks.BooleanBlock", (), {"label": "Small tag", "required": False}), + 58: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("green-tilleul-verveine", "Tilleul verveine"), + ("green-bourgeon", "Bourgeon"), + ("green-emeraude", "Émeraude"), + ("green-menthe", "Menthe"), + ("green-archipel", "Archipel"), + ("blue-ecume", "Écume"), + ("blue-cumulus", "Cumulus"), + ("purple-glycine", "Glycine"), + ("pink-macaron", "Macaron"), + ("pink-tuile", "Tuile"), + ("yellow-tournesol", "Tournesol"), + ("yellow-moutarde", "Moutarde"), + ("orange-terre-battue", "Terre battue"), + ("brown-cafe-creme", "Café crème"), + ("brown-caramel", "Caramel"), + ("brown-opera", "Opéra"), + ("beige-gris-galet", "Gris galet"), + ], + "help_text": "Only for clickable tags", + "label": "Tag color", + "required": False, + }, + ), + 59: ( + "wagtail.blocks.StructBlock", + [[("page", 12), ("document", 13), ("external_url", 14)]], + {"required": False}, + ), + 60: ( + "wagtail.blocks.StructBlock", + [[("label", 56), ("is_small", 57), ("color", 58), ("icon_class", 28), ("link", 59)]], + {"label": "Tag"}, + ), + 61: ("wagtail.blocks.StreamBlock", [[("tag", 60)]], {"label": "Tag list"}), + 62: ( + "wagtail.blocks.StructBlock", + [ + [ + ("page", 12), + ("document", 13), + ("external_url", 14), + ("text", 15), + ("icon", 16), + ("size", 17), + ] + ], + {"label": "Single link"}, + ), + 63: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [("fr-card--horizontal-tier", "1/3"), ("fr-card--horizontal-half", "50/50")], + "label": "Image ratio", + "required": False, + }, + ), + 64: ( + "wagtail.blocks.StreamBlock", + [[("badge", 54)]], + { + "help_text": "Only used if the card has an image.", + "label": "Image area badge", + "max_num": 1, + "required": False, + }, + ), + 65: ( + "wagtail.blocks.StructBlock", + [[("page", 12), ("document", 13), ("external_url", 14)]], + {"label": "Link", "required": False}, + ), + 66: ( + "wagtail.blocks.URLBlock", + (), + { + "group": "target", + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the Link field above.", + "label": "Link (obsolete)", + "required": False, + }, + ), + 67: ( + "wagtail.documents.blocks.DocumentChooserBlock", + (), + { + "group": "target", + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the Link field above.", + "label": "or Document (obsolete)", + "required": False, + }, + ), + 68: ("wagtail.blocks.CharBlock", (), {"label": "Top detail: text", "required": False}), + 69: ( + "content_manager.blocks.IconPickerBlock", + (), + {"label": "Top detail: icon", "required": False}, + ), + 70: ("wagtail.blocks.StreamBlock", [[("badge", 54)]], {}), + 71: ("wagtail.blocks.StreamBlock", [[("tag", 60)]], {}), + 72: ( + "wagtail.blocks.StreamBlock", + [[("badges", 70), ("tags", 71)]], + {"label": "Top detail: badges or tags", "max_num": 1, "required": False}, + ), + 73: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "Incompatible with the bottom call-to-action. If the card links to a downloadable document, the values are pre-filled.", + "label": "Bottom detail: text", + "required": False, + }, + ), + 74: ( + "content_manager.blocks.IconPickerBlock", + (), + {"label": "Bottom detail: icon", "required": False}, + ), + 75: ( + "wagtail.blocks.StructBlock", + [[("page", 12), ("document", 13), ("external_url", 14), ("text", 15)]], + {"label": "Link"}, + ), + 76: ("wagtail.blocks.StreamBlock", [[("link", 75)]], {}), + 77: ( + "wagtail.blocks.StructBlock", + [ + [ + ("page", 12), + ("document", 13), + ("external_url", 14), + ("text", 15), + ("button_type", 30), + ("icon_class", 28), + ("icon_side", 31), + ] + ], + {"label": "Button"}, + ), + 78: ( + "wagtail.blocks.StreamBlock", + [[("button", 77)]], + { + "help_text": "Please use only one primary button. If you use icons, align them on the same side." + }, + ), + 79: ( + "wagtail.blocks.StreamBlock", + [[("links", 76), ("buttons", 78)]], + { + "help_text": "Incompatible with the bottom detail text.", + "label": "Bottom call-to-action: links or buttons", + "max_num": 1, + "required": False, + }, + ), + 80: ("wagtail.blocks.BooleanBlock", (), {"label": "Card with grey background", "required": False}), + 81: ("wagtail.blocks.BooleanBlock", (), {"label": "Card without background", "required": False}), + 82: ("wagtail.blocks.BooleanBlock", (), {"label": "Card without border", "required": False}), + 83: ("wagtail.blocks.BooleanBlock", (), {"label": "Card with a shadow", "required": False}), + 84: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 56), + ("heading_tag", 26), + ("description", 29), + ("image", 38), + ("image_ratio", 63), + ("image_badge", 64), + ("link", 65), + ("url", 66), + ("document", 67), + ("top_detail_text", 68), + ("top_detail_icon", 69), + ("top_detail_badges_tags", 72), + ("bottom_detail_text", 73), + ("bottom_detail_icon", 74), + ("call_to_action", 79), + ("grey_background", 80), + ("no_background", 81), + ("no_border", 82), + ("shadow", 83), + ] + ], + {"group": "DSFR components", "label": "Horizontal card"}, + ), + 85: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": ["bold", "italic", "superscript", "subscript", "strikethrough"], + "label": "Content", + "required": False, + }, + ), + 86: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + {"help_text": "Prefer SVG files.", "label": "Image", "required": False}, + ), + 87: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "If the tile links to a downloadable document, the values are pre-filled.", + "label": "Detail text", + "required": False, + }, + ), + 88: ("wagtail.blocks.BooleanBlock", (), {"label": "Small tile", "required": False}), + 89: ("wagtail.blocks.BooleanBlock", (), {"label": "Tile with grey background", "required": False}), + 90: ("wagtail.blocks.BooleanBlock", (), {"label": "Tile without background", "required": False}), + 91: ("wagtail.blocks.BooleanBlock", (), {"label": "Tile without border", "required": False}), + 92: ("wagtail.blocks.BooleanBlock", (), {"label": "Tile with a shadow", "required": False}), + 93: ("wagtail.blocks.BooleanBlock", (), {"label": "Horizontal tile", "required": False}), + 94: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 56), + ("heading_tag", 26), + ("description", 85), + ("image", 86), + ("link", 65), + ("top_detail_badges_tags", 72), + ("detail_text", 87), + ("is_small", 88), + ("grey_background", 89), + ("no_background", 90), + ("no_border", 91), + ("shadow", 92), + ("is_horizontal", 93), + ] + ], + {"group": "DSFR components", "label": "Tile"}, + ), + 95: ("wagtail.blocks.RichTextBlock", (), {"label": "Content"}), + 96: ( + "wagtail.blocks.StructBlock", + [[("title", 56), ("content", 95)]], + {"label": "Accordion", "max_num": 15, "min_num": 1}, + ), + 97: ( + "wagtail.blocks.StreamBlock", + [[("title", 56), ("accordion", 96)]], + {"group": "DSFR components", "label": "Accordions"}, + ), + 98: ("wagtail.blocks.IntegerBlock", (), {"label": "Number of steps"}), + 99: ("wagtail.blocks.IntegerBlock", (), {"label": "Current step"}), + 100: ("wagtail.blocks.TextBlock", (), {"label": "Detail"}), + 101: ("wagtail.blocks.StructBlock", [[("title", 56), ("detail", 100)]], {"label": "Step"}), + 102: ("wagtail.blocks.StreamBlock", [[("step", 101)]], {"label": "Steps"}), + 103: ( + "wagtail.blocks.StructBlock", + [[("title", 56), ("total", 98), ("current", 99), ("steps", 102)]], + {"group": "DSFR components", "label": "Stepper"}, + ), + 104: ("wagtailmarkdown.blocks.MarkdownBlock", (), {"group": "Expert syntax", "label": "Markdown"}), + 105: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "Accessibility: The title should describe, in a clear and concise manner, the embedded content.", + "label": "Title", + }, + ), + 106: ( + "wagtail.blocks.URLBlock", + (), + { + "help_text": "Example for Tally: https://tally.so/embed/w2jMRa", + "label": "URL of the iframe", + }, + ), + 107: ("wagtail.blocks.IntegerBlock", (), {"label": "Height (in pixels)"}), + 108: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "For example: \"allow='geolocation'\".", + "label": "Parameters", + "required": False, + }, + ), + 109: ( + "wagtail.blocks.StructBlock", + [[("title", 105), ("url", 106), ("height", 107), ("parameters", 108)]], + {"group": "Expert syntax", "label": "Iframe"}, + ), + 110: ( + "wagtail.blocks.IntegerBlock", + (), + {"default": 3, "label": "Top margin", "max_value": 15, "min_value": 0}, + ), + 111: ( + "wagtail.blocks.IntegerBlock", + (), + {"default": 3, "label": "Bottom margin", "max_value": 15, "min_value": 0}, + ), + 112: ( + "wagtail.blocks.StructBlock", + [[("top_margin", 110), ("bottom_margin", 111)]], + {"group": "Page structure", "label": "Separator"}, + ), + 113: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + {"label": "Background image", "required": False}, + ), + 114: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("Primary colors", [("blue-france", "Blue France"), ("red-marianne", "Red Marianne")]), + ("Neutral colors", [("grey", "Grey")]), + ( + "Illustration colors", + [ + ("green-tilleul-verveine", "Tilleul verveine"), + ("green-bourgeon", "Bourgeon"), + ("green-emeraude", "Émeraude"), + ("green-menthe", "Menthe"), + ("green-archipel", "Archipel"), + ("blue-ecume", "Écume"), + ("blue-cumulus", "Cumulus"), + ("purple-glycine", "Glycine"), + ("pink-macaron", "Macaron"), + ("pink-tuile", "Tuile"), + ("yellow-tournesol", "Tournesol"), + ("yellow-moutarde", "Moutarde"), + ("orange-terre-battue", "Terre battue"), + ("brown-cafe-creme", "Café crème"), + ("brown-caramel", "Caramel"), + ("brown-opera", "Opéra"), + ("beige-gris-galet", "Gris galet"), + ], + ), + ], + "help_text": "Uses the French Design System colors", + "label": "Background color", + "required": False, + }, + ), + 115: ( + "wagtail.blocks.RegexBlock", + (), + { + "error_messages": {"invalid": "Incorrect color format, must be #fff or #f5f5f5"}, + "help_text": "This field is obsolete and will be removed in the near future. Replace it with the background color.", + "label": "Background color, hexadecimal format (obsolete)", + "regex": "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$", + "required": False, + }, + ), + 116: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("h2", "Heading 2"), + ("h3", "Heading 3"), + ("h4", "Heading 4"), + ("h5", "Heading 5"), + ("h6", "Heading 6"), + ("p", "Paragraph"), + ], + "help_text": "Adapt to the page layout. Defaults to heading 2.", + "label": "Heading level", + "required": False, + }, + ), + 117: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 1), + ("heading_tag", 2), + ("image", 3), + ("alt", 4), + ("width", 5), + ("image_ratio", 6), + ("caption", 7), + ("url", 8), + ] + ], + {"label": "Image"}, + ), + 118: ("wagtail.blocks.RichTextBlock", (), {"label": "Rich text", "required": False}), + 119: ( + "wagtail.blocks.StreamBlock", + [[("buttons", 78)]], + {"label": "Call-to-action buttons", "max_num": 1, "required": False}, + ), + 120: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the CTA buttons above.", + "label": "Call to action label (obsolete)", + "required": False, + }, + ), + 121: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the CTA buttons above.", + "label": "Link (obsolete)", + "required": False, + }, + ), + 122: ( + "wagtail.blocks.StructBlock", + [[("text", 118), ("cta_buttons", 119), ("cta_label", 120), ("cta_url", 121)]], + {"label": "Text and call to action"}, + ), + 123: ( + "wagtail.blocks.StructBlock", + [[("title", 105), ("url", 106), ("height", 107), ("parameters", 108)]], + {"group": "DSFR components", "label": "Iframe"}, + ), + 124: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("h2", "Heading 2"), + ("h3", "Heading 3"), + ("h4", "Heading 4"), + ("h5", "Heading 5"), + ], + "help_text": "Adapt to the page layout. Defaults to heading 2.", + "label": "Heading level", + "required": False, + }, + ), + 125: ( + "wagtail.blocks.PageChooserBlock", + (), + {"label": "Blog", "page_type": ["blog.BlogIndexPage"]}, + ), + 126: ( + "wagtail.blocks.IntegerBlock", + (), + { + "default": 3, + "label": "Number of entries", + "max_value": 8, + "min_value": 1, + "required": False, + }, + ), + 127: ( + "wagtail.snippets.blocks.SnippetChooserBlock", + ("blog.Category",), + {"label": "Filter by category", "required": False}, + ), + 128: ( + "wagtail.snippets.blocks.SnippetChooserBlock", + ("content_manager.Tag",), + {"label": "Filter by tag", "required": False}, + ), + 129: ( + "wagtail.snippets.blocks.SnippetChooserBlock", + ("blog.Person",), + {"label": "Filter by author", "required": False}, + ), + 130: ( + "wagtail.snippets.blocks.SnippetChooserBlock", + ("blog.Organization",), + { + "help_text": "The source is the organization of the post author", + "label": "Filter by source", + "required": False, + }, + ), + 131: ( + "wagtail.blocks.BooleanBlock", + (), + {"default": False, "label": "Show filters", "required": False}, + ), + 132: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 1), + ("heading_tag", 124), + ("blog", 125), + ("entries_count", 126), + ("category_filter", 127), + ("tag_filter", 128), + ("author_filter", 129), + ("source_filter", 130), + ("show_filters", 131), + ] + ], + {"group": "Website structure", "label": "Blog recent entries"}, + ), + 133: ( + "wagtail.blocks.PageChooserBlock", + (), + {"label": "Event calendar", "page_type": ["events.EventsIndexPage"]}, + ), + 134: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 1), + ("heading_tag", 124), + ("index_page", 133), + ("entries_count", 126), + ("category_filter", 127), + ("tag_filter", 128), + ("author_filter", 129), + ("source_filter", 130), + ("show_filters", 131), + ] + ], + {"group": "Website structure", "label": "Event calendar recent entries"}, + ), + 135: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "Incompatible with the bottom call-to-action.", + "label": "Bottom detail: text", + "required": False, + }, + ), + 136: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 56), + ("heading_tag", 26), + ("description", 29), + ("image", 38), + ("image_ratio", 6), + ("image_badge", 64), + ("link", 65), + ("url", 66), + ("document", 67), + ("top_detail_text", 68), + ("top_detail_icon", 69), + ("top_detail_badges_tags", 72), + ("bottom_detail_text", 135), + ("bottom_detail_icon", 74), + ("call_to_action", 79), + ("grey_background", 80), + ("no_background", 81), + ("no_border", 82), + ("shadow", 83), + ] + ], + {"group": "DSFR components", "label": "Vertical card"}, + ), + 137: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("3", "3/12"), + ("4", "4/12"), + ("5", "5/12"), + ("6", "6/12"), + ("7", "7/12"), + ("8", "8/12"), + ("9", "9/12"), + ], + "help_text": "The total width of all columns should be 12.", + "label": "Column width", + "required": False, + }, + ), + 138: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 0), + ("image", 117), + ("video", 49), + ("transcription", 50), + ("callout", 34), + ("highlight", 37), + ("quote", 42), + ("text_cta", 122), + ("link", 62), + ("iframe", 123), + ("tile", 94), + ("blog_recent_entries", 132), + ("events_recent_entries", 134), + ("card", 136), + ] + ], + {"label": "Column content"}, + ), + 139: ( + "wagtail.blocks.StructBlock", + [[("width", 137), ("content", 138)]], + {"group": "Page structure", "label": "Adjustable column"}, + ), + 140: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 0), + ("image", 117), + ("video", 49), + ("transcription", 50), + ("callout", 34), + ("highlight", 37), + ("quote", 42), + ("text_cta", 122), + ("link", 62), + ("iframe", 123), + ("tile", 94), + ("blog_recent_entries", 132), + ("events_recent_entries", 134), + ("card", 136), + ("column", 139), + ] + ], + {"label": "Columns"}, + ), + 141: ( + "wagtail.blocks.StructBlock", + [ + [ + ("bg_image", 113), + ("bg_color_class", 114), + ("bg_color", 115), + ("title", 1), + ("heading_tag", 116), + ("columns", 140), + ] + ], + {"group": "Page structure", "label": "Multiple columns"}, + ), + 142: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 0), + ("image", 117), + ("video", 49), + ("transcription", 50), + ("callout", 34), + ("highlight", 37), + ("quote", 42), + ("text_cta", 122), + ("link", 62), + ("iframe", 123), + ("tile", 94), + ("blog_recent_entries", 132), + ("events_recent_entries", 134), + ("image_and_text", 22), + ("card", 84), + ] + ], + {"label": "Content"}, + ), + 143: ( + "wagtail.blocks.StructBlock", + [[("bg_image", 113), ("bg_color_class", 114), ("content", 142)]], + {"group": "Page structure", "label": "Full width background"}, + ), + 144: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 0), + ("image", 117), + ("video", 49), + ("transcription", 50), + ("callout", 34), + ("highlight", 37), + ("quote", 42), + ("text_cta", 122), + ("link", 62), + ("iframe", 123), + ("tile", 94), + ("blog_recent_entries", 132), + ("events_recent_entries", 134), + ("image_and_text", 22), + ("card", 84), + ] + ], + {"label": "Main content"}, + ), + 145: ("wagtail.blocks.CharBlock", (), {"label": "Side menu title", "required": False}), + 146: ( + "wagtail.blocks.RawHTMLBlock", + (), + { + "help_text": "Warning: Use HTML block with caution. Malicious code can compromise the security of the site.", + "label": "HTML", + }, + ), + 147: ("wagtail.blocks.PageChooserBlock", (), {"label": "Parent page"}), + 148: ("wagtail.blocks.StructBlock", [[("page", 147)]], {"label": "Page tree"}), + 149: ( + "wagtail.blocks.StreamBlock", + [[("html", 146), ("pagetree", 148)]], + {"label": "Side menu content"}, + ), + 150: ( + "wagtail.blocks.StructBlock", + [ + [ + ("bg_image", 113), + ("bg_color_class", 114), + ("main_content", 144), + ("sidemenu_title", 145), + ("sidemenu_content", 149), + ] + ], + {"group": "Page structure", "label": "Full width background with side menu"}, + ), + 151: ( + "wagtail.blocks.static_block.StaticBlock", + (), + { + "admin_text": "A simple, alphabetical list of the subpages of the current page.", + "group": "Website structure", + "label": "Subpages list", + "template": "content_manager/blocks/subpages_list.html", + }, + ), + 152: ( + "wagtail.blocks.RawHTMLBlock", + (), + { + "group": "Expert syntax", + "help_text": "Warning: Use HTML block with caution. Malicious code can compromise the security of the site.", + "readonly": True, + }, + ), + }, + ), + ), + migrations.AlterField( + model_name="blogindexpage", + name="body", + field=wagtail.fields.StreamField( + [ + ("paragraph", 0), + ("image", 9), + ("imageandtext", 22), + ("alert", 27), + ("callout", 34), + ("highlight", 37), + ("quote", 42), + ("video", 49), + ("transcription", 50), + ("badges_list", 55), + ("tags_list", 61), + ("link", 62), + ("card", 84), + ("tile", 94), + ("accordions", 97), + ("stepper", 103), + ("markdown", 104), + ("iframe", 109), + ("separator", 112), + ("multicolumns", 141), + ("fullwidthbackground", 143), + ("fullwidthbackgroundwithsidemenu", 150), + ("subpageslist", 151), + ("blog_recent_entries", 132), + ("events_recent_entries", 134), + ("html", 152), + ], + blank=True, + block_lookup={ + 0: ("wagtail.blocks.RichTextBlock", (), {"label": "Rich text"}), + 1: ("wagtail.blocks.CharBlock", (), {"label": "Title", "required": False}), + 2: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("h2", "Heading 2"), + ("h3", "Heading 3"), + ("h4", "Heading 4"), + ("h5", "Heading 5"), + ("h6", "Heading 6"), + ("p", "Paragraph"), + ], + "help_text": "Adapt to the page layout. Defaults to heading 3.", + "label": "Heading level", + "required": False, + }, + ), + 3: ("wagtail.images.blocks.ImageChooserBlock", (), {"label": "Image"}), + 4: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Alternative text (textual description of the image)", "required": False}, + ), + 5: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("fr-content-media--sm", "Small"), + ("", "Medium"), + ("fr-content-media--lg", "Large"), + ], + "label": "Witdh", + "required": False, + }, + ), + 6: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("fr-ratio-32x9", "32x9"), + ("fr-ratio-16x9", "16x9"), + ("fr-ratio-3x2", "3x2"), + ("fr-ratio-4x3", "4x3"), + ("fr-ratio-1x1", "1x1"), + ("fr-ratio-3x4", "3x4"), + ("fr-ratio-2x3", "2x3"), + ], + "label": "Image ratio", + "required": False, + }, + ), + 7: ("wagtail.blocks.CharBlock", (), {"label": "Caption", "required": False}), + 8: ("wagtail.blocks.URLBlock", (), {"label": "Link", "required": False}), + 9: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 1), + ("heading_tag", 2), + ("image", 3), + ("alt", 4), + ("width", 5), + ("image_ratio", 6), + ("caption", 7), + ("url", 8), + ] + ], + {}, + ), + 10: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [("left", "Left"), ("right", "Right")], + "label": "Side where the image is displayed", + }, + ), + 11: ( + "wagtail.blocks.ChoiceBlock", + [], + {"choices": [("3", "3/12"), ("5", "5/12"), ("6", "6/12")], "label": "Image width"}, + ), + 12: ( + "wagtail.blocks.PageChooserBlock", + (), + { + "help_text": "Link to a page of this site. Use either this, the document, or the external URL parameter.", + "label": "Page", + "required": False, + }, + ), + 13: ( + "wagtail.documents.blocks.DocumentChooserBlock", + (), + { + "help_text": "Use either this, the external URL or the page parameter.", + "label": "Document", + "required": False, + }, + ), + 14: ( + "wagtail.blocks.URLBlock", + (), + { + "help_text": "Use either this, the document or the page parameter.", + "label": "External URL", + "required": False, + }, + ), + 15: ("wagtail.blocks.CharBlock", (), {"label": "Link label", "required": False}), + 16: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("", "No icon"), + ("fr-icon-arrow-right-line fr-link--icon-right", "Icon on the right side"), + ("fr-icon-arrow-right-line fr-link--icon-left", "Icon on the left side"), + ], + "help_text": "Only used for internal links.", + "label": "Icon", + "required": False, + }, + ), + 17: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [("fr-link--sm", "Small"), ("", "Medium"), ("fr-link--lg", "Large")], + "label": "Size", + "required": False, + }, + ), + 18: ( + "wagtail.blocks.StructBlock", + [ + [ + ("page", 12), + ("document", 13), + ("external_url", 14), + ("text", 15), + ("icon", 16), + ("size", 17), + ] + ], + { + "help_text": "The link is shown at the bottom of the text block, with an arrow", + "label": "Link", + "required": False, + }, + ), + 19: ( + "wagtail.blocks.CharBlock", + (), + { + "group": "obsolete", + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the Link field above.", + "label": "Link label (obsolete)", + "required": False, + }, + ), + 20: ( + "wagtail.blocks.PageChooserBlock", + (), + { + "group": "obsolete", + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the Link field above.", + "label": "Internal link (obsolete)", + "required": False, + }, + ), + 21: ( + "wagtail.blocks.URLBlock", + (), + { + "group": "obsolete", + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the Link field above.", + "label": "Link URL (obsolete)", + "required": False, + }, + ), + 22: ( + "wagtail.blocks.StructBlock", + [ + [ + ("image", 3), + ("image_side", 10), + ("image_ratio", 11), + ("text", 0), + ("link", 18), + ("link_label", 19), + ("page", 20), + ("link_url", 21), + ] + ], + {"label": "Image and text"}, + ), + 23: ("wagtail.blocks.CharBlock", (), {"label": "Message title", "required": False}), + 24: ("wagtail.blocks.TextBlock", (), {"label": "Message text", "required": False}), + 25: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("error", "Error"), + ("success", "Success"), + ("info", "Information"), + ("warning", "Warning"), + ], + "label": "Message type", + }, + ), + 26: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("h2", "Heading 2"), + ("h3", "Heading 3"), + ("h4", "Heading 4"), + ("h5", "Heading 5"), + ("h6", "Heading 6"), + ("p", "Paragraph"), + ], + "help_text": "Adapt to the page layout. Defaults to heading 3.", + "label": "Heading level", + }, + ), + 27: ( + "wagtail.blocks.StructBlock", + [[("title", 23), ("description", 24), ("level", 25), ("heading_tag", 26)]], + {"label": "Alert message"}, + ), + 28: ("content_manager.blocks.IconPickerBlock", (), {"label": "Icon", "required": False}), + 29: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "bold", + "italic", + "link", + "document-link", + "superscript", + "subscript", + "strikethrough", + ], + "label": "Content", + "required": False, + }, + ), + 30: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("fr-btn", "Primary"), + ("fr-btn fr-btn--secondary", "Secundary"), + ("fr-btn fr-btn--tertiary", "Tertiary"), + ("fr-btn fr-btn--tertiary-no-outline", "Tertiary without border"), + ], + "label": "Button type", + "required": False, + }, + ), + 31: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [("fr-btn--icon-left", "Left"), ("fr-btn--icon-right", "Right")], + "label": "Icon side", + "required": False, + }, + ), + 32: ( + "wagtail.blocks.StructBlock", + [ + [ + ("page", 12), + ("document", 13), + ("external_url", 14), + ("text", 15), + ("button_type", 30), + ("icon_class", 28), + ("icon_side", 31), + ] + ], + {"label": "Button", "required": False}, + ), + 33: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("green-tilleul-verveine", "Tilleul verveine"), + ("green-bourgeon", "Bourgeon"), + ("green-emeraude", "Émeraude"), + ("green-menthe", "Menthe"), + ("green-archipel", "Archipel"), + ("blue-ecume", "Écume"), + ("blue-cumulus", "Cumulus"), + ("purple-glycine", "Glycine"), + ("pink-macaron", "Macaron"), + ("pink-tuile", "Tuile"), + ("yellow-tournesol", "Tournesol"), + ("yellow-moutarde", "Moutarde"), + ("orange-terre-battue", "Terre battue"), + ("brown-cafe-creme", "Café crème"), + ("brown-caramel", "Caramel"), + ("brown-opera", "Opéra"), + ("beige-gris-galet", "Gris galet"), + ], + "label": "Color", + "required": False, + }, + ), + 34: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 1), + ("heading_tag", 26), + ("icon_class", 28), + ("text", 29), + ("button", 32), + ("color", 33), + ] + ], + {"group": "DSFR components", "label": "Callout"}, + ), + 35: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "bold", + "italic", + "link", + "document-link", + "superscript", + "subscript", + "strikethrough", + ], + "label": "Content", + }, + ), + 36: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [("fr-text--sm", "Small"), ("", "Medium"), ("fr-text--lg", "Large")], + "label": "Size", + "required": False, + }, + ), + 37: ( + "wagtail.blocks.StructBlock", + [[("text", 35), ("color", 33), ("size", 36)]], + {"group": "DSFR components", "label": "Highlight"}, + ), + 38: ("wagtail.images.blocks.ImageChooserBlock", (), {"label": "Image", "required": False}), + 39: ("wagtail.blocks.CharBlock", (), {"label": "Quote"}), + 40: ("wagtail.blocks.CharBlock", (), {"label": "Author name", "required": False}), + 41: ("wagtail.blocks.CharBlock", (), {"label": "Author title", "required": False}), + 42: ( + "wagtail.blocks.StructBlock", + [[("image", 38), ("quote", 39), ("author_name", 40), ("author_title", 41), ("color", 33)]], + {"group": "DSFR components", "label": "Quote"}, + ), + 43: ("wagtail.blocks.CharBlock", (), {"label": "Video title", "required": False}), + 44: ( + "wagtail.blocks.URLBlock", + (), + { + "help_text": "Use embed format, with a version that doesn't require a consent banner if available. (e.g. : https://www.youtube-nocookie.com/embed/gLzXOViPX-0) For Youtube, use Embed video and check Enable privacy-enhanced mode.", + "label": "Video URL", + }, + ), + 45: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [("fr-ratio-16x9", "16x9"), ("fr-ratio-4x3", "4x3"), ("fr-ratio-1x1", "1x1")], + "label": "Video ratio", + "required": False, + }, + ), + 46: ( + "wagtail.blocks.CharBlock", + (), + {"default": "Transcription", "label": "Title", "required": False}, + ), + 47: ("wagtail.blocks.RichTextBlock", (), {"label": "Transcription content", "required": False}), + 48: ( + "wagtail.blocks.StructBlock", + [[("title", 46), ("content", 47)]], + {"label": "Transcription", "required": False}, + ), + 49: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 43), + ("caption", 7), + ("url", 44), + ("width", 5), + ("video_ratio", 45), + ("transcription", 48), + ] + ], + {"label": "Video"}, + ), + 50: ("wagtail.blocks.StructBlock", [[("title", 46), ("content", 47)]], {"label": "Transcription"}), + 51: ("wagtail.blocks.CharBlock", (), {"label": "Badge label", "required": False}), + 52: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("", [("new", "New"), ("grey", "Grey")]), + ( + "System colors", + [ + ("info", "Info"), + ("success", "Success"), + ("warning", "Warning"), + ("error", "Error"), + ], + ), + ( + "Illustration colors", + [ + ("green-tilleul-verveine", "Tilleul verveine"), + ("green-bourgeon", "Bourgeon"), + ("green-emeraude", "Émeraude"), + ("green-menthe", "Menthe"), + ("green-archipel", "Archipel"), + ("blue-ecume", "Écume"), + ("blue-cumulus", "Cumulus"), + ("purple-glycine", "Glycine"), + ("pink-macaron", "Macaron"), + ("pink-tuile", "Tuile"), + ("yellow-tournesol", "Tournesol"), + ("yellow-moutarde", "Moutarde"), + ("orange-terre-battue", "Terre battue"), + ("brown-cafe-creme", "Café crème"), + ("brown-caramel", "Caramel"), + ("brown-opera", "Opéra"), + ("beige-gris-galet", "Gris galet"), + ], + ), + ], + "label": "Badge color", + "required": False, + }, + ), + 53: ("wagtail.blocks.BooleanBlock", (), {"label": "Hide badge icon", "required": False}), + 54: ( + "wagtail.blocks.StructBlock", + [[("text", 51), ("color", 52), ("hide_icon", 53)]], + {"label": "Badge"}, + ), + 55: ("wagtail.blocks.StreamBlock", [[("badge", 54)]], {"label": "Badge list"}), + 56: ("wagtail.blocks.CharBlock", (), {"label": "Title"}), + 57: ("wagtail.blocks.BooleanBlock", (), {"label": "Small tag", "required": False}), + 58: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("green-tilleul-verveine", "Tilleul verveine"), + ("green-bourgeon", "Bourgeon"), + ("green-emeraude", "Émeraude"), + ("green-menthe", "Menthe"), + ("green-archipel", "Archipel"), + ("blue-ecume", "Écume"), + ("blue-cumulus", "Cumulus"), + ("purple-glycine", "Glycine"), + ("pink-macaron", "Macaron"), + ("pink-tuile", "Tuile"), + ("yellow-tournesol", "Tournesol"), + ("yellow-moutarde", "Moutarde"), + ("orange-terre-battue", "Terre battue"), + ("brown-cafe-creme", "Café crème"), + ("brown-caramel", "Caramel"), + ("brown-opera", "Opéra"), + ("beige-gris-galet", "Gris galet"), + ], + "help_text": "Only for clickable tags", + "label": "Tag color", + "required": False, + }, + ), + 59: ( + "wagtail.blocks.StructBlock", + [[("page", 12), ("document", 13), ("external_url", 14)]], + {"required": False}, + ), + 60: ( + "wagtail.blocks.StructBlock", + [[("label", 56), ("is_small", 57), ("color", 58), ("icon_class", 28), ("link", 59)]], + {"label": "Tag"}, + ), + 61: ("wagtail.blocks.StreamBlock", [[("tag", 60)]], {"label": "Tag list"}), + 62: ( + "wagtail.blocks.StructBlock", + [ + [ + ("page", 12), + ("document", 13), + ("external_url", 14), + ("text", 15), + ("icon", 16), + ("size", 17), + ] + ], + {"label": "Single link"}, + ), + 63: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [("fr-card--horizontal-tier", "1/3"), ("fr-card--horizontal-half", "50/50")], + "label": "Image ratio", + "required": False, + }, + ), + 64: ( + "wagtail.blocks.StreamBlock", + [[("badge", 54)]], + { + "help_text": "Only used if the card has an image.", + "label": "Image area badge", + "max_num": 1, + "required": False, + }, + ), + 65: ( + "wagtail.blocks.StructBlock", + [[("page", 12), ("document", 13), ("external_url", 14)]], + {"label": "Link", "required": False}, + ), + 66: ( + "wagtail.blocks.URLBlock", + (), + { + "group": "target", + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the Link field above.", + "label": "Link (obsolete)", + "required": False, + }, + ), + 67: ( + "wagtail.documents.blocks.DocumentChooserBlock", + (), + { + "group": "target", + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the Link field above.", + "label": "or Document (obsolete)", + "required": False, + }, + ), + 68: ("wagtail.blocks.CharBlock", (), {"label": "Top detail: text", "required": False}), + 69: ( + "content_manager.blocks.IconPickerBlock", + (), + {"label": "Top detail: icon", "required": False}, + ), + 70: ("wagtail.blocks.StreamBlock", [[("badge", 54)]], {}), + 71: ("wagtail.blocks.StreamBlock", [[("tag", 60)]], {}), + 72: ( + "wagtail.blocks.StreamBlock", + [[("badges", 70), ("tags", 71)]], + {"label": "Top detail: badges or tags", "max_num": 1, "required": False}, + ), + 73: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "Incompatible with the bottom call-to-action. If the card links to a downloadable document, the values are pre-filled.", + "label": "Bottom detail: text", + "required": False, + }, + ), + 74: ( + "content_manager.blocks.IconPickerBlock", + (), + {"label": "Bottom detail: icon", "required": False}, + ), + 75: ( + "wagtail.blocks.StructBlock", + [[("page", 12), ("document", 13), ("external_url", 14), ("text", 15)]], + {"label": "Link"}, + ), + 76: ("wagtail.blocks.StreamBlock", [[("link", 75)]], {}), + 77: ( + "wagtail.blocks.StructBlock", + [ + [ + ("page", 12), + ("document", 13), + ("external_url", 14), + ("text", 15), + ("button_type", 30), + ("icon_class", 28), + ("icon_side", 31), + ] + ], + {"label": "Button"}, + ), + 78: ( + "wagtail.blocks.StreamBlock", + [[("button", 77)]], + { + "help_text": "Please use only one primary button. If you use icons, align them on the same side." + }, + ), + 79: ( + "wagtail.blocks.StreamBlock", + [[("links", 76), ("buttons", 78)]], + { + "help_text": "Incompatible with the bottom detail text.", + "label": "Bottom call-to-action: links or buttons", + "max_num": 1, + "required": False, + }, + ), + 80: ("wagtail.blocks.BooleanBlock", (), {"label": "Card with grey background", "required": False}), + 81: ("wagtail.blocks.BooleanBlock", (), {"label": "Card without background", "required": False}), + 82: ("wagtail.blocks.BooleanBlock", (), {"label": "Card without border", "required": False}), + 83: ("wagtail.blocks.BooleanBlock", (), {"label": "Card with a shadow", "required": False}), + 84: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 56), + ("heading_tag", 26), + ("description", 29), + ("image", 38), + ("image_ratio", 63), + ("image_badge", 64), + ("link", 65), + ("url", 66), + ("document", 67), + ("top_detail_text", 68), + ("top_detail_icon", 69), + ("top_detail_badges_tags", 72), + ("bottom_detail_text", 73), + ("bottom_detail_icon", 74), + ("call_to_action", 79), + ("grey_background", 80), + ("no_background", 81), + ("no_border", 82), + ("shadow", 83), + ] + ], + {"group": "DSFR components", "label": "Horizontal card"}, + ), + 85: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": ["bold", "italic", "superscript", "subscript", "strikethrough"], + "label": "Content", + "required": False, + }, + ), + 86: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + {"help_text": "Prefer SVG files.", "label": "Image", "required": False}, + ), + 87: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "If the tile links to a downloadable document, the values are pre-filled.", + "label": "Detail text", + "required": False, + }, + ), + 88: ("wagtail.blocks.BooleanBlock", (), {"label": "Small tile", "required": False}), + 89: ("wagtail.blocks.BooleanBlock", (), {"label": "Tile with grey background", "required": False}), + 90: ("wagtail.blocks.BooleanBlock", (), {"label": "Tile without background", "required": False}), + 91: ("wagtail.blocks.BooleanBlock", (), {"label": "Tile without border", "required": False}), + 92: ("wagtail.blocks.BooleanBlock", (), {"label": "Tile with a shadow", "required": False}), + 93: ("wagtail.blocks.BooleanBlock", (), {"label": "Horizontal tile", "required": False}), + 94: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 56), + ("heading_tag", 26), + ("description", 85), + ("image", 86), + ("link", 65), + ("top_detail_badges_tags", 72), + ("detail_text", 87), + ("is_small", 88), + ("grey_background", 89), + ("no_background", 90), + ("no_border", 91), + ("shadow", 92), + ("is_horizontal", 93), + ] + ], + {"group": "DSFR components", "label": "Tile"}, + ), + 95: ("wagtail.blocks.RichTextBlock", (), {"label": "Content"}), + 96: ( + "wagtail.blocks.StructBlock", + [[("title", 56), ("content", 95)]], + {"label": "Accordion", "max_num": 15, "min_num": 1}, + ), + 97: ( + "wagtail.blocks.StreamBlock", + [[("title", 56), ("accordion", 96)]], + {"group": "DSFR components", "label": "Accordions"}, + ), + 98: ("wagtail.blocks.IntegerBlock", (), {"label": "Number of steps"}), + 99: ("wagtail.blocks.IntegerBlock", (), {"label": "Current step"}), + 100: ("wagtail.blocks.TextBlock", (), {"label": "Detail"}), + 101: ("wagtail.blocks.StructBlock", [[("title", 56), ("detail", 100)]], {"label": "Step"}), + 102: ("wagtail.blocks.StreamBlock", [[("step", 101)]], {"label": "Steps"}), + 103: ( + "wagtail.blocks.StructBlock", + [[("title", 56), ("total", 98), ("current", 99), ("steps", 102)]], + {"group": "DSFR components", "label": "Stepper"}, + ), + 104: ("wagtailmarkdown.blocks.MarkdownBlock", (), {"group": "Expert syntax", "label": "Markdown"}), + 105: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "Accessibility: The title should describe, in a clear and concise manner, the embedded content.", + "label": "Title", + }, + ), + 106: ( + "wagtail.blocks.URLBlock", + (), + { + "help_text": "Example for Tally: https://tally.so/embed/w2jMRa", + "label": "URL of the iframe", + }, + ), + 107: ("wagtail.blocks.IntegerBlock", (), {"label": "Height (in pixels)"}), + 108: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "For example: \"allow='geolocation'\".", + "label": "Parameters", + "required": False, + }, + ), + 109: ( + "wagtail.blocks.StructBlock", + [[("title", 105), ("url", 106), ("height", 107), ("parameters", 108)]], + {"group": "Expert syntax", "label": "Iframe"}, + ), + 110: ( + "wagtail.blocks.IntegerBlock", + (), + {"default": 3, "label": "Top margin", "max_value": 15, "min_value": 0}, + ), + 111: ( + "wagtail.blocks.IntegerBlock", + (), + {"default": 3, "label": "Bottom margin", "max_value": 15, "min_value": 0}, + ), + 112: ( + "wagtail.blocks.StructBlock", + [[("top_margin", 110), ("bottom_margin", 111)]], + {"group": "Page structure", "label": "Separator"}, + ), + 113: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + {"label": "Background image", "required": False}, + ), + 114: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("Primary colors", [("blue-france", "Blue France"), ("red-marianne", "Red Marianne")]), + ("Neutral colors", [("grey", "Grey")]), + ( + "Illustration colors", + [ + ("green-tilleul-verveine", "Tilleul verveine"), + ("green-bourgeon", "Bourgeon"), + ("green-emeraude", "Émeraude"), + ("green-menthe", "Menthe"), + ("green-archipel", "Archipel"), + ("blue-ecume", "Écume"), + ("blue-cumulus", "Cumulus"), + ("purple-glycine", "Glycine"), + ("pink-macaron", "Macaron"), + ("pink-tuile", "Tuile"), + ("yellow-tournesol", "Tournesol"), + ("yellow-moutarde", "Moutarde"), + ("orange-terre-battue", "Terre battue"), + ("brown-cafe-creme", "Café crème"), + ("brown-caramel", "Caramel"), + ("brown-opera", "Opéra"), + ("beige-gris-galet", "Gris galet"), + ], + ), + ], + "help_text": "Uses the French Design System colors", + "label": "Background color", + "required": False, + }, + ), + 115: ( + "wagtail.blocks.RegexBlock", + (), + { + "error_messages": {"invalid": "Incorrect color format, must be #fff or #f5f5f5"}, + "help_text": "This field is obsolete and will be removed in the near future. Replace it with the background color.", + "label": "Background color, hexadecimal format (obsolete)", + "regex": "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$", + "required": False, + }, + ), + 116: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("h2", "Heading 2"), + ("h3", "Heading 3"), + ("h4", "Heading 4"), + ("h5", "Heading 5"), + ("h6", "Heading 6"), + ("p", "Paragraph"), + ], + "help_text": "Adapt to the page layout. Defaults to heading 2.", + "label": "Heading level", + "required": False, + }, + ), + 117: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 1), + ("heading_tag", 2), + ("image", 3), + ("alt", 4), + ("width", 5), + ("image_ratio", 6), + ("caption", 7), + ("url", 8), + ] + ], + {"label": "Image"}, + ), + 118: ("wagtail.blocks.RichTextBlock", (), {"label": "Rich text", "required": False}), + 119: ( + "wagtail.blocks.StreamBlock", + [[("buttons", 78)]], + {"label": "Call-to-action buttons", "max_num": 1, "required": False}, + ), + 120: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the CTA buttons above.", + "label": "Call to action label (obsolete)", + "required": False, + }, + ), + 121: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the CTA buttons above.", + "label": "Link (obsolete)", + "required": False, + }, + ), + 122: ( + "wagtail.blocks.StructBlock", + [[("text", 118), ("cta_buttons", 119), ("cta_label", 120), ("cta_url", 121)]], + {"label": "Text and call to action"}, + ), + 123: ( + "wagtail.blocks.StructBlock", + [[("title", 105), ("url", 106), ("height", 107), ("parameters", 108)]], + {"group": "DSFR components", "label": "Iframe"}, + ), + 124: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("h2", "Heading 2"), + ("h3", "Heading 3"), + ("h4", "Heading 4"), + ("h5", "Heading 5"), + ], + "help_text": "Adapt to the page layout. Defaults to heading 2.", + "label": "Heading level", + "required": False, + }, + ), + 125: ( + "wagtail.blocks.PageChooserBlock", + (), + {"label": "Blog", "page_type": ["blog.BlogIndexPage"]}, + ), + 126: ( + "wagtail.blocks.IntegerBlock", + (), + { + "default": 3, + "label": "Number of entries", + "max_value": 8, + "min_value": 1, + "required": False, + }, + ), + 127: ( + "wagtail.snippets.blocks.SnippetChooserBlock", + ("blog.Category",), + {"label": "Filter by category", "required": False}, + ), + 128: ( + "wagtail.snippets.blocks.SnippetChooserBlock", + ("content_manager.Tag",), + {"label": "Filter by tag", "required": False}, + ), + 129: ( + "wagtail.snippets.blocks.SnippetChooserBlock", + ("blog.Person",), + {"label": "Filter by author", "required": False}, + ), + 130: ( + "wagtail.snippets.blocks.SnippetChooserBlock", + ("blog.Organization",), + { + "help_text": "The source is the organization of the post author", + "label": "Filter by source", + "required": False, + }, + ), + 131: ( + "wagtail.blocks.BooleanBlock", + (), + {"default": False, "label": "Show filters", "required": False}, + ), + 132: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 1), + ("heading_tag", 124), + ("blog", 125), + ("entries_count", 126), + ("category_filter", 127), + ("tag_filter", 128), + ("author_filter", 129), + ("source_filter", 130), + ("show_filters", 131), + ] + ], + {"group": "Website structure", "label": "Blog recent entries"}, + ), + 133: ( + "wagtail.blocks.PageChooserBlock", + (), + {"label": "Event calendar", "page_type": ["events.EventsIndexPage"]}, + ), + 134: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 1), + ("heading_tag", 124), + ("index_page", 133), + ("entries_count", 126), + ("category_filter", 127), + ("tag_filter", 128), + ("author_filter", 129), + ("source_filter", 130), + ("show_filters", 131), + ] + ], + {"group": "Website structure", "label": "Event calendar recent entries"}, + ), + 135: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "Incompatible with the bottom call-to-action.", + "label": "Bottom detail: text", + "required": False, + }, + ), + 136: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 56), + ("heading_tag", 26), + ("description", 29), + ("image", 38), + ("image_ratio", 6), + ("image_badge", 64), + ("link", 65), + ("url", 66), + ("document", 67), + ("top_detail_text", 68), + ("top_detail_icon", 69), + ("top_detail_badges_tags", 72), + ("bottom_detail_text", 135), + ("bottom_detail_icon", 74), + ("call_to_action", 79), + ("grey_background", 80), + ("no_background", 81), + ("no_border", 82), + ("shadow", 83), + ] + ], + {"group": "DSFR components", "label": "Vertical card"}, + ), + 137: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("3", "3/12"), + ("4", "4/12"), + ("5", "5/12"), + ("6", "6/12"), + ("7", "7/12"), + ("8", "8/12"), + ("9", "9/12"), + ], + "help_text": "The total width of all columns should be 12.", + "label": "Column width", + "required": False, + }, + ), + 138: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 0), + ("image", 117), + ("video", 49), + ("transcription", 50), + ("callout", 34), + ("highlight", 37), + ("quote", 42), + ("text_cta", 122), + ("link", 62), + ("iframe", 123), + ("tile", 94), + ("blog_recent_entries", 132), + ("events_recent_entries", 134), + ("card", 136), + ] + ], + {"label": "Column content"}, + ), + 139: ( + "wagtail.blocks.StructBlock", + [[("width", 137), ("content", 138)]], + {"group": "Page structure", "label": "Adjustable column"}, + ), + 140: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 0), + ("image", 117), + ("video", 49), + ("transcription", 50), + ("callout", 34), + ("highlight", 37), + ("quote", 42), + ("text_cta", 122), + ("link", 62), + ("iframe", 123), + ("tile", 94), + ("blog_recent_entries", 132), + ("events_recent_entries", 134), + ("card", 136), + ("column", 139), + ] + ], + {"label": "Columns"}, + ), + 141: ( + "wagtail.blocks.StructBlock", + [ + [ + ("bg_image", 113), + ("bg_color_class", 114), + ("bg_color", 115), + ("title", 1), + ("heading_tag", 116), + ("columns", 140), + ] + ], + {"group": "Page structure", "label": "Multiple columns"}, + ), + 142: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 0), + ("image", 117), + ("video", 49), + ("transcription", 50), + ("callout", 34), + ("highlight", 37), + ("quote", 42), + ("text_cta", 122), + ("link", 62), + ("iframe", 123), + ("tile", 94), + ("blog_recent_entries", 132), + ("events_recent_entries", 134), + ("image_and_text", 22), + ("card", 84), + ] + ], + {"label": "Content"}, + ), + 143: ( + "wagtail.blocks.StructBlock", + [[("bg_image", 113), ("bg_color_class", 114), ("content", 142)]], + {"group": "Page structure", "label": "Full width background"}, + ), + 144: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 0), + ("image", 117), + ("video", 49), + ("transcription", 50), + ("callout", 34), + ("highlight", 37), + ("quote", 42), + ("text_cta", 122), + ("link", 62), + ("iframe", 123), + ("tile", 94), + ("blog_recent_entries", 132), + ("events_recent_entries", 134), + ("image_and_text", 22), + ("card", 84), + ] + ], + {"label": "Main content"}, + ), + 145: ("wagtail.blocks.CharBlock", (), {"label": "Side menu title", "required": False}), + 146: ( + "wagtail.blocks.RawHTMLBlock", + (), + { + "help_text": "Warning: Use HTML block with caution. Malicious code can compromise the security of the site.", + "label": "HTML", + }, + ), + 147: ("wagtail.blocks.PageChooserBlock", (), {"label": "Parent page"}), + 148: ("wagtail.blocks.StructBlock", [[("page", 147)]], {"label": "Page tree"}), + 149: ( + "wagtail.blocks.StreamBlock", + [[("html", 146), ("pagetree", 148)]], + {"label": "Side menu content"}, + ), + 150: ( + "wagtail.blocks.StructBlock", + [ + [ + ("bg_image", 113), + ("bg_color_class", 114), + ("main_content", 144), + ("sidemenu_title", 145), + ("sidemenu_content", 149), + ] + ], + {"group": "Page structure", "label": "Full width background with side menu"}, + ), + 151: ( + "wagtail.blocks.static_block.StaticBlock", + (), + { + "admin_text": "A simple, alphabetical list of the subpages of the current page.", + "group": "Website structure", + "label": "Subpages list", + "template": "content_manager/blocks/subpages_list.html", + }, + ), + 152: ( + "wagtail.blocks.RawHTMLBlock", + (), + { + "group": "Expert syntax", + "help_text": "Warning: Use HTML block with caution. Malicious code can compromise the security of the site.", + "readonly": True, + }, + ), + }, + ), + ), + ] diff --git a/content_manager/blocks.py b/content_manager/blocks.py index 637f850a..7c848dc4 100644 --- a/content_manager/blocks.py +++ b/content_manager/blocks.py @@ -947,6 +947,10 @@ class Meta: class PageTreeBlock(blocks.StructBlock): page = blocks.PageChooserBlock(label=_("Parent page")) + class Meta: + icon = "minus" + template = "content_manager/blocks/pagetree.html" + class SideMenuBlock(blocks.StreamBlock): html = blocks.RawHTMLBlock( @@ -967,7 +971,7 @@ class FullWidthBackgroundWithSidemenuBlock(blocks.StructBlock): help_text=_("Uses the French Design System colors"), ) main_content = FullWidthBlock(label=_("Main content")) - sidemenu_title = blocks.CharBlock(label=_("Side menu title")) + sidemenu_title = blocks.CharBlock(label=_("Side menu title"), required=False) sidemenu_content = SideMenuBlock(label=_("Side menu content")) class Meta: diff --git a/content_manager/locale/fr/LC_MESSAGES/django.mo b/content_manager/locale/fr/LC_MESSAGES/django.mo index d60706a8c391bb39c99efea7b8d64bd815adbd34..c483c79edc0893c39c0b2116e33080736ac129ba 100644 GIT binary patch delta 5920 zcmZA330zfG0>|<51VSuKgit~BqPU1ZYu%5OIH9Br+ zrB*g&GcJwRJhw{Ia%)#p%W-MO%5pFxYbqNv`~BZNd_FUskN@{Q=e~FE+3vl#aJ+T6b9YTMt=JpaygXHPG)+D|1zA)?XKh=hoK&$C`oaI1hER4Mh!fG-}VMqRzV? zhhq(DfCo`~`!Q-I&!Gl-0ku+EPOW&1H7P(vU!+U2yF&5U zmE)aIBOi-lH~}@#+mUTGMW`)$$hKFYUPxO|_tsme{tkwY2aNfQiuUAt)Brr~+;&sc zi3zBc>4v&{`ysnw#-Z+NKk9;yqXxbfHNdT?z2A)ju+wAvyP!szA`Dae>p_RIV0dzu^iSdZb@xdZ#J z8K!k`FOZFzL0{DI5w<-B!)V`$>YxC1b4^EGXr^sfqn7w#>r=Rf_9o23$sLW!#AmP@ z9_+~e`>0&zKrt3|;ttjqs0(Lzc1PX^d3%~ss1AxyD-ys6ti`#w91}1x)xBwRtiw<% zG66Ng0@PDABS1wnt3fT*Jk*7sw(Xa(C+*#+rMrknF|!MQVllF-`+RRhUHBAgK<6+D zFW}X9$r{PDwX(4|83Tz_)bT9qJk&^^MqOwP>T%kDI&m*1dyIJ>htsZ4imbW9sQffsOZ)BB5J04QG0U|HIr{qZ?0cZ9Ytii zZ@xHWRZUOS<8&ADnm4nNx35`_8o)Nxt9l$%Jcl~rZPdU%Lhb37r~!V3>hODv!^YX}$|YGlTeGbFts}Boe~o+`2h?F9 zYDMlv9bbwuxZ1h}wGwaH_5sxU;52HcKcNQDEXSDf*a7wXYSi}+qHezBsEMu$*e^Dq zX0R7^fn&&@1#=!Xux7pZQ;R7$A17f7o<;tdXkHFl`k|=njKO#;#A#TKgYiq$)^*Kw z{}u#BQfbM7GStW(MU8j?YKfPjmV5=a!1cDh8+ErI!Kruw9h|_k+!<$~{z^WFTEShY z8Gne{veU>Z0aHgs9j5ek_pB?nqMd^p*l5%MeAfF=TQd)J!Id}w*P-t2I@I0&HEIQZ zKwg$6x}Q6+-k3oFQK9ftqmREdBxVW51=~w3N?VAZ9DpUcT18`OPz`Bafr1T zyV0JHiTDcYI!93}dIq({b&~$g6)M`3INq0f-g~0aa#7B!)DsPnewvHsfY4>+K^_$=x~XP`U7PN==iKn=9F zZI43TRO3-IEkbRfA2oovsDUm-b-WVQ;R~pVZO7N~=)i#cS8C}XUb7rHj2cLLo|QQ` z38&#noQlJTxHH;_8qj7;!go*?K8soj&rtVwaX6E90w&{P)P#em-@hNAq6>Y28u=yE zO%rv4dpCDL%`_EtVqesrjz`91%8`F&6Cd3@oR2$ccNxxqUa$^z^Eo5jmCZoi%)L+p z4Gg!HNvHvoVkOQ-{qO>60F7?6?`+hTB%|I3sn`SuBK?~VMCDT#^8#wXDq4X*hHA!? z;QM<1wG6kA#r6x4Y3sSD)mTR!AjoFPTV|5tYp(gM3Yb!&D(W=L=F&SsuqMYbCZz#(fD%gkIP729NqOzMjMvBN8 zQW08zDqBbvQTdYWBtMV^L{Gs~GMVU+dWHN7tEU zOJx9wAu1obm|Zx?)*Dz&<#X~M5>L*Oc|_$rX+{1*c96dkl}RL)^dpCf$~z>T+@HtC zzsTcc4tbNPM3HvnUecb7C%2N@$OQ6xqS7^ZIqvm{lpCr_N}PLqg_Xt5l>CBeMgFp? z(n1c9pFpxh;ZQ+xBl1?o|4{we`svP4fNx!YR)$@&=RI#d=!nqE5q!V;j10Dt(nD z-e8yZ#~MfGIGNdfGP8qG-D)ChXJ^I6I{7ob1);49}Ge{T1%xPksDey>yLWjbY5 v6=@n+MeVA7y{{Qfjd5zY-rz_5mU+6{3lvuUf8S=DkI6Z|JskA)@6qH}{kEds delta 5510 zcmZA334Bdg0>|<5vNRF|5wS!fk`N@82%cTUQp;#Xo7&pcR8d>)OH8?zsi?%DK~$(( zs>C#^&zMeaLCx5vI-wKVQll-Ss40k#4p<5F=<0 z!MZpexz)Uhdd>z6qkprTN+sNnEQvXWnt2(9<9U1i8mgmvs0aSfwxek1zF2FrwLNMV zd!ahcLQQlcYN9#l=)!y|8bCg(`j9fs6%XB>%|X(QWikNRF; zR7Zm`0kcs9S%})Qb@f<(&Wm}U3!2$J`@vDvUVe^xz*$s>U!ewe4Rr_~SWUFs4zosD zV^ITXf*N2u)Qa@ApAU^@{dHla{a_lZ<3*?uEP^^gylj^VSje`UHnc3LnhH8CZ->F^+ZD+t3en;~dmsTx>1E7ioWlt+8sX zF^QON9fceZvlKO;EvSj@u$G`E?)a!^Hgs1q8g-VE{B4IlqM|RPqn2b4>Xg2Mtge}ZI=yRA z58RJhfitK9UPSHn71VuqP%9G}?+&;o4x$~4>SqdSfQvAg{!Jbg-LO&@u*kMIp&q;w z)#0b8vvAygehxL0OQ-?fK&?zQ8jQgtqrN`?HSnRRt)76oZ$3I&(q&XMleMS;Y(NcY z3+nR^Q6v8Z^`Mj39xtNqi%N876pgw+0X5*J_PW=$yI~;L2cVvxnaKX@@C@fd5Wb3P zk3}uzRO?dQPJ1(^WB*3Rq+&j%;6WUVH}EygYRt2A9fL3-$sKqTkFRxqgV+d^zugXgpit2cbH3!3J=b@gn2KBbA zN8RVch935RAC*2_xX3yV$HvXw8y8|_+RLyjzGFR)>Zo=L_q}e4Iul*7BW9vL&quAm zyQsJ7W7O}%5v+=Lk%2kJ)6!ky5De#oI;b0xP^Z+3x}hg(F9)Iaa4>3SQ;>siW}$xZ z)}dzVLv77T)I=_$ewc2e`nih@=-&h|EEd7Uqh6n9kY8al4*Bsjxu^kbL;aHN!Af|- zw#!hz6W34!2u^iZBo@_iDrzgbpq|qQwFNI=l-~brDq6xBs0S}WjeI5QiyvS$++{t4 zI&5c9_nk!z{3@!$fY$DP;aHt^6zaK2s1;~s^`g^&3tg$CVK%Cxw^0w;j1gFZTGGR| zecrZjptdN0o3(<~kTIA}s3o3=HSrD9_g0_=v;no1C298k_i-VD3;R(^d%&Uo{98}>&Iv19V6 z=#(!<&AbqsVF_wL7qArubaFpWLp`XUZ4X7wXfmp!WvGrf*meo(Y#csXHZz3AP=U9nNt*HJ4o3$=19 zQ1=&NJ^DABsc7a0P+vTUdhjh&$B!@>!}%Rn2Fjd2Q{!<+g^`)&9?ou`>z>SPG^5G5gCj54xh#N?(RUQ;(Xf0I3ANT+|yf#n$gdw z0R{1@Xl3f6p6f-e#6Z;dM&e8yiw*H|567KxKu`CE`ltuBMUA{4>P!s5K%9=6>1@e-AD|<$*A{yHfjr2ApQFf^4C~VIHP77nNKbeX90hHLwLUVgyfR{kj6x1 z3(=OSd`zArT7ecsr~WuuPE`7nVPqWn6-gp0-N|AymuON~iON9w_b=;>* z$tLAwHQ~IN^JFvmJ*g-Usaz)|WGZP&wD0$bN-Gz$0`(j4WZ6w)4gLGe4E`>1tL6ji zY3m8RLf)}$oez}*F6QrehIApnCVJ!?a+C}ue;`Xq6VjSglvpZl_2o_^lYB<<$W5|~ zRFr;HbjVVO{|wj<*5fVm9(kXr{Eozte-o9j$WHP+$s#Y1!DI+oNt{ytsLUhn$!#@k zIcyz{ZRO*v7GJyn<4Wup^O%jMo z4|0c8AsHl@#E{3NqTHqO2H9&bJcAv`KJo>*Oh%ARL}jD){|C}iEy`MQkOY%=$x}pS zEBTS^A?HX%IYQ-c6%8yPy~%6#T8Q;e_!IfkwkP7hi2650J7;sNi%yr z2YZoqWD@a_o+O&6{FbaDpOZsGM}KtH0^~NrX?IXg8w%Px2jk znY1I}L}d(_Oa`bynL;ASY&9rvkpOZ`4azAO|G$>1F0A;8in1Swj-)v`Np28-@vW|P zFxWRc`ZG_#?U-oan3#Y--^{q70R{% include_block block %} - {% elif block.block_type == 'image' %} + {% elif block.block_type == "image" %}
{% include_block block %}
- {% elif block.block_type == 'multicolumns' %} + {% elif block.block_type == "multicolumns" %} {% include_block block %} - {% elif block.block_type == 'fullwidthbackground' %} + {% elif block.block_type == "fullwidthbackground" %} {% include_block block %} - {% elif block.block_type == 'fullwidthbackgroundwithsidemenu' %} + {% elif block.block_type == "fullwidthbackgroundwithsidemenu" %} {% include_block block %} - {% elif block.block_type == 'paragraph' %} + {% elif block.block_type == "paragraph" %}
{{ block.value|richtext }}
- {% elif block.block_type == 'alert' %} + {% elif block.block_type == "alert" %}
{% include_block block %}
- {% elif block.block_type == 'card' %} + {% elif block.block_type == "card" %}
{% include_block block %}
- {% elif block.block_type == 'tile' %} + {% elif block.block_type == "tile" %}
{% include_block block %}
- {% elif block.block_type == 'accordions' %} + {% elif block.block_type == "accordions" %} {% include "content_manager/blocks/accordions.html" with accordions_id=forloop.counter0|lower %} - {% elif block.block_type == 'stepper' %} + {% elif block.block_type == "stepper" %} {% include "content_manager/blocks/stepper.html" %} - {% elif block.block_type == 'separator' %} + {% elif block.block_type == "separator" %}

- {% elif block.block_type == 'markdown' %} + {% elif block.block_type == "markdown" %}
{{ block.value|markdown }}
- {% elif block.block_type == 'html' %} + {% elif block.block_type == "html" %}
{{ block.value|safe }}
{% else %}
{% include_block block %}
diff --git a/content_manager/templates/content_manager/blocks/full_width_background_with_sidemenu.html b/content_manager/templates/content_manager/blocks/full_width_background_with_sidemenu.html index b3f9d5b9..3b179b96 100644 --- a/content_manager/templates/content_manager/blocks/full_width_background_with_sidemenu.html +++ b/content_manager/templates/content_manager/blocks/full_width_background_with_sidemenu.html @@ -1,4 +1,4 @@ -{% load dsfr_tags wagtailcore_tags wagtailimages_tags %} +{% load i18n dsfr_tags wagtailcore_tags wagtailimages_tags %} {% image value.bg_image original as bg_img %} diff --git a/content_manager/templates/content_manager/blocks/pagetree.html b/content_manager/templates/content_manager/blocks/pagetree.html new file mode 100644 index 00000000..84c22253 --- /dev/null +++ b/content_manager/templates/content_manager/blocks/pagetree.html @@ -0,0 +1,33 @@ + diff --git a/dashboard/locale/fr/LC_MESSAGES/django.mo b/dashboard/locale/fr/LC_MESSAGES/django.mo index 49c3ebde4cf46e0566dd1af55ca8a1ce6b16376e..d821aba974f407a0b30b1adbe5696738fe88869a 100644 GIT binary patch delta 23 ecmew(^hapJR~9Y{T_ZCELsKgw!_EI$YFPkkSqJw3 delta 23 ecmew(^hapJR~9ZaT_Y0(LsKgwv(5imYFPkkK?nE% diff --git a/dashboard/locale/fr/LC_MESSAGES/django.po b/dashboard/locale/fr/LC_MESSAGES/django.po index 0f49e2e3..363254d8 100644 --- a/dashboard/locale/fr/LC_MESSAGES/django.po +++ b/dashboard/locale/fr/LC_MESSAGES/django.po @@ -8,8 +8,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-06-24 15:24+0200\n" -"PO-Revision-Date: 2024-06-24 15:26+0200\n" +"POT-Creation-Date: 2024-08-26 15:14+0200\n" +"PO-Revision-Date: 2024-08-26 15:21+0200\n" "Last-Translator: \n" "Language-Team: \n" "Language: fr\n" @@ -31,16 +31,16 @@ msgstr "Connexion" msgid "Set your new password" msgstr "Définissez votre nouveau mot de passe" -#: dashboard/templates/wagtailadmin/account/password_reset/confirm.html:20 +#: dashboard/templates/wagtailadmin/account/password_reset/confirm.html:21 #: dashboard/templates/wagtailadmin/account/password_reset/form.html:18 msgid "Reset password" msgstr "Réinitialiser le mot de passe" -#: dashboard/templates/wagtailadmin/account/password_reset/confirm.html:28 +#: dashboard/templates/wagtailadmin/account/password_reset/confirm.html:29 msgid "Invalid password reset link" msgstr "Lien de réinitialisation de mot de passe invalide" -#: dashboard/templates/wagtailadmin/account/password_reset/confirm.html:30 +#: dashboard/templates/wagtailadmin/account/password_reset/confirm.html:31 msgid "" "The password reset link was invalid, possibly because it has already been " "used." @@ -48,7 +48,7 @@ msgstr "" "Le lien de réinitialisation de mot de passe était invalide, probablement " "parce qu’il a déjà été utilisé." -#: dashboard/templates/wagtailadmin/account/password_reset/confirm.html:34 +#: dashboard/templates/wagtailadmin/account/password_reset/confirm.html:35 msgid "Request a new password reset" msgstr "Demander une nouvelle réinitialisation de mot de passe" diff --git a/events/migrations/0005_alter_evententrypage_body_alter_eventsindexpage_body.py b/events/migrations/0005_alter_evententrypage_body_alter_eventsindexpage_body.py new file mode 100644 index 00000000..84ae9086 --- /dev/null +++ b/events/migrations/0005_alter_evententrypage_body_alter_eventsindexpage_body.py @@ -0,0 +1,2515 @@ +# Generated by Django 5.0.8 on 2024-08-26 13:21 + +import wagtail.fields +from django.db import migrations + + +class Migration(migrations.Migration): + dependencies = [ + ("events", "0004_alter_evententrypage_body_alter_eventsindexpage_body"), + ] + + operations = [ + migrations.AlterField( + model_name="evententrypage", + name="body", + field=wagtail.fields.StreamField( + [ + ("paragraph", 0), + ("image", 9), + ("imageandtext", 22), + ("alert", 27), + ("callout", 34), + ("highlight", 37), + ("quote", 42), + ("video", 49), + ("transcription", 50), + ("badges_list", 55), + ("tags_list", 61), + ("link", 62), + ("card", 84), + ("tile", 94), + ("accordions", 97), + ("stepper", 103), + ("markdown", 104), + ("iframe", 109), + ("separator", 112), + ("multicolumns", 141), + ("fullwidthbackground", 143), + ("fullwidthbackgroundwithsidemenu", 150), + ("subpageslist", 151), + ("blog_recent_entries", 132), + ("events_recent_entries", 134), + ("html", 152), + ], + blank=True, + block_lookup={ + 0: ("wagtail.blocks.RichTextBlock", (), {"label": "Rich text"}), + 1: ("wagtail.blocks.CharBlock", (), {"label": "Title", "required": False}), + 2: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("h2", "Heading 2"), + ("h3", "Heading 3"), + ("h4", "Heading 4"), + ("h5", "Heading 5"), + ("h6", "Heading 6"), + ("p", "Paragraph"), + ], + "help_text": "Adapt to the page layout. Defaults to heading 3.", + "label": "Heading level", + "required": False, + }, + ), + 3: ("wagtail.images.blocks.ImageChooserBlock", (), {"label": "Image"}), + 4: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Alternative text (textual description of the image)", "required": False}, + ), + 5: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("fr-content-media--sm", "Small"), + ("", "Medium"), + ("fr-content-media--lg", "Large"), + ], + "label": "Witdh", + "required": False, + }, + ), + 6: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("fr-ratio-32x9", "32x9"), + ("fr-ratio-16x9", "16x9"), + ("fr-ratio-3x2", "3x2"), + ("fr-ratio-4x3", "4x3"), + ("fr-ratio-1x1", "1x1"), + ("fr-ratio-3x4", "3x4"), + ("fr-ratio-2x3", "2x3"), + ], + "label": "Image ratio", + "required": False, + }, + ), + 7: ("wagtail.blocks.CharBlock", (), {"label": "Caption", "required": False}), + 8: ("wagtail.blocks.URLBlock", (), {"label": "Link", "required": False}), + 9: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 1), + ("heading_tag", 2), + ("image", 3), + ("alt", 4), + ("width", 5), + ("image_ratio", 6), + ("caption", 7), + ("url", 8), + ] + ], + {}, + ), + 10: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [("left", "Left"), ("right", "Right")], + "label": "Side where the image is displayed", + }, + ), + 11: ( + "wagtail.blocks.ChoiceBlock", + [], + {"choices": [("3", "3/12"), ("5", "5/12"), ("6", "6/12")], "label": "Image width"}, + ), + 12: ( + "wagtail.blocks.PageChooserBlock", + (), + { + "help_text": "Link to a page of this site. Use either this, the document, or the external URL parameter.", + "label": "Page", + "required": False, + }, + ), + 13: ( + "wagtail.documents.blocks.DocumentChooserBlock", + (), + { + "help_text": "Use either this, the external URL or the page parameter.", + "label": "Document", + "required": False, + }, + ), + 14: ( + "wagtail.blocks.URLBlock", + (), + { + "help_text": "Use either this, the document or the page parameter.", + "label": "External URL", + "required": False, + }, + ), + 15: ("wagtail.blocks.CharBlock", (), {"label": "Link label", "required": False}), + 16: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("", "No icon"), + ("fr-icon-arrow-right-line fr-link--icon-right", "Icon on the right side"), + ("fr-icon-arrow-right-line fr-link--icon-left", "Icon on the left side"), + ], + "help_text": "Only used for internal links.", + "label": "Icon", + "required": False, + }, + ), + 17: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [("fr-link--sm", "Small"), ("", "Medium"), ("fr-link--lg", "Large")], + "label": "Size", + "required": False, + }, + ), + 18: ( + "wagtail.blocks.StructBlock", + [ + [ + ("page", 12), + ("document", 13), + ("external_url", 14), + ("text", 15), + ("icon", 16), + ("size", 17), + ] + ], + { + "help_text": "The link is shown at the bottom of the text block, with an arrow", + "label": "Link", + "required": False, + }, + ), + 19: ( + "wagtail.blocks.CharBlock", + (), + { + "group": "obsolete", + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the Link field above.", + "label": "Link label (obsolete)", + "required": False, + }, + ), + 20: ( + "wagtail.blocks.PageChooserBlock", + (), + { + "group": "obsolete", + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the Link field above.", + "label": "Internal link (obsolete)", + "required": False, + }, + ), + 21: ( + "wagtail.blocks.URLBlock", + (), + { + "group": "obsolete", + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the Link field above.", + "label": "Link URL (obsolete)", + "required": False, + }, + ), + 22: ( + "wagtail.blocks.StructBlock", + [ + [ + ("image", 3), + ("image_side", 10), + ("image_ratio", 11), + ("text", 0), + ("link", 18), + ("link_label", 19), + ("page", 20), + ("link_url", 21), + ] + ], + {"label": "Image and text"}, + ), + 23: ("wagtail.blocks.CharBlock", (), {"label": "Message title", "required": False}), + 24: ("wagtail.blocks.TextBlock", (), {"label": "Message text", "required": False}), + 25: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("error", "Error"), + ("success", "Success"), + ("info", "Information"), + ("warning", "Warning"), + ], + "label": "Message type", + }, + ), + 26: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("h2", "Heading 2"), + ("h3", "Heading 3"), + ("h4", "Heading 4"), + ("h5", "Heading 5"), + ("h6", "Heading 6"), + ("p", "Paragraph"), + ], + "help_text": "Adapt to the page layout. Defaults to heading 3.", + "label": "Heading level", + }, + ), + 27: ( + "wagtail.blocks.StructBlock", + [[("title", 23), ("description", 24), ("level", 25), ("heading_tag", 26)]], + {"label": "Alert message"}, + ), + 28: ("content_manager.blocks.IconPickerBlock", (), {"label": "Icon", "required": False}), + 29: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "bold", + "italic", + "link", + "document-link", + "superscript", + "subscript", + "strikethrough", + ], + "label": "Content", + "required": False, + }, + ), + 30: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("fr-btn", "Primary"), + ("fr-btn fr-btn--secondary", "Secundary"), + ("fr-btn fr-btn--tertiary", "Tertiary"), + ("fr-btn fr-btn--tertiary-no-outline", "Tertiary without border"), + ], + "label": "Button type", + "required": False, + }, + ), + 31: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [("fr-btn--icon-left", "Left"), ("fr-btn--icon-right", "Right")], + "label": "Icon side", + "required": False, + }, + ), + 32: ( + "wagtail.blocks.StructBlock", + [ + [ + ("page", 12), + ("document", 13), + ("external_url", 14), + ("text", 15), + ("button_type", 30), + ("icon_class", 28), + ("icon_side", 31), + ] + ], + {"label": "Button", "required": False}, + ), + 33: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("green-tilleul-verveine", "Tilleul verveine"), + ("green-bourgeon", "Bourgeon"), + ("green-emeraude", "Émeraude"), + ("green-menthe", "Menthe"), + ("green-archipel", "Archipel"), + ("blue-ecume", "Écume"), + ("blue-cumulus", "Cumulus"), + ("purple-glycine", "Glycine"), + ("pink-macaron", "Macaron"), + ("pink-tuile", "Tuile"), + ("yellow-tournesol", "Tournesol"), + ("yellow-moutarde", "Moutarde"), + ("orange-terre-battue", "Terre battue"), + ("brown-cafe-creme", "Café crème"), + ("brown-caramel", "Caramel"), + ("brown-opera", "Opéra"), + ("beige-gris-galet", "Gris galet"), + ], + "label": "Color", + "required": False, + }, + ), + 34: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 1), + ("heading_tag", 26), + ("icon_class", 28), + ("text", 29), + ("button", 32), + ("color", 33), + ] + ], + {"group": "DSFR components", "label": "Callout"}, + ), + 35: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "bold", + "italic", + "link", + "document-link", + "superscript", + "subscript", + "strikethrough", + ], + "label": "Content", + }, + ), + 36: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [("fr-text--sm", "Small"), ("", "Medium"), ("fr-text--lg", "Large")], + "label": "Size", + "required": False, + }, + ), + 37: ( + "wagtail.blocks.StructBlock", + [[("text", 35), ("color", 33), ("size", 36)]], + {"group": "DSFR components", "label": "Highlight"}, + ), + 38: ("wagtail.images.blocks.ImageChooserBlock", (), {"label": "Image", "required": False}), + 39: ("wagtail.blocks.CharBlock", (), {"label": "Quote"}), + 40: ("wagtail.blocks.CharBlock", (), {"label": "Author name", "required": False}), + 41: ("wagtail.blocks.CharBlock", (), {"label": "Author title", "required": False}), + 42: ( + "wagtail.blocks.StructBlock", + [[("image", 38), ("quote", 39), ("author_name", 40), ("author_title", 41), ("color", 33)]], + {"group": "DSFR components", "label": "Quote"}, + ), + 43: ("wagtail.blocks.CharBlock", (), {"label": "Video title", "required": False}), + 44: ( + "wagtail.blocks.URLBlock", + (), + { + "help_text": "Use embed format, with a version that doesn't require a consent banner if available. (e.g. : https://www.youtube-nocookie.com/embed/gLzXOViPX-0) For Youtube, use Embed video and check Enable privacy-enhanced mode.", + "label": "Video URL", + }, + ), + 45: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [("fr-ratio-16x9", "16x9"), ("fr-ratio-4x3", "4x3"), ("fr-ratio-1x1", "1x1")], + "label": "Video ratio", + "required": False, + }, + ), + 46: ( + "wagtail.blocks.CharBlock", + (), + {"default": "Transcription", "label": "Title", "required": False}, + ), + 47: ("wagtail.blocks.RichTextBlock", (), {"label": "Transcription content", "required": False}), + 48: ( + "wagtail.blocks.StructBlock", + [[("title", 46), ("content", 47)]], + {"label": "Transcription", "required": False}, + ), + 49: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 43), + ("caption", 7), + ("url", 44), + ("width", 5), + ("video_ratio", 45), + ("transcription", 48), + ] + ], + {"label": "Video"}, + ), + 50: ("wagtail.blocks.StructBlock", [[("title", 46), ("content", 47)]], {"label": "Transcription"}), + 51: ("wagtail.blocks.CharBlock", (), {"label": "Badge label", "required": False}), + 52: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("", [("new", "New"), ("grey", "Grey")]), + ( + "System colors", + [ + ("info", "Info"), + ("success", "Success"), + ("warning", "Warning"), + ("error", "Error"), + ], + ), + ( + "Illustration colors", + [ + ("green-tilleul-verveine", "Tilleul verveine"), + ("green-bourgeon", "Bourgeon"), + ("green-emeraude", "Émeraude"), + ("green-menthe", "Menthe"), + ("green-archipel", "Archipel"), + ("blue-ecume", "Écume"), + ("blue-cumulus", "Cumulus"), + ("purple-glycine", "Glycine"), + ("pink-macaron", "Macaron"), + ("pink-tuile", "Tuile"), + ("yellow-tournesol", "Tournesol"), + ("yellow-moutarde", "Moutarde"), + ("orange-terre-battue", "Terre battue"), + ("brown-cafe-creme", "Café crème"), + ("brown-caramel", "Caramel"), + ("brown-opera", "Opéra"), + ("beige-gris-galet", "Gris galet"), + ], + ), + ], + "label": "Badge color", + "required": False, + }, + ), + 53: ("wagtail.blocks.BooleanBlock", (), {"label": "Hide badge icon", "required": False}), + 54: ( + "wagtail.blocks.StructBlock", + [[("text", 51), ("color", 52), ("hide_icon", 53)]], + {"label": "Badge"}, + ), + 55: ("wagtail.blocks.StreamBlock", [[("badge", 54)]], {"label": "Badge list"}), + 56: ("wagtail.blocks.CharBlock", (), {"label": "Title"}), + 57: ("wagtail.blocks.BooleanBlock", (), {"label": "Small tag", "required": False}), + 58: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("green-tilleul-verveine", "Tilleul verveine"), + ("green-bourgeon", "Bourgeon"), + ("green-emeraude", "Émeraude"), + ("green-menthe", "Menthe"), + ("green-archipel", "Archipel"), + ("blue-ecume", "Écume"), + ("blue-cumulus", "Cumulus"), + ("purple-glycine", "Glycine"), + ("pink-macaron", "Macaron"), + ("pink-tuile", "Tuile"), + ("yellow-tournesol", "Tournesol"), + ("yellow-moutarde", "Moutarde"), + ("orange-terre-battue", "Terre battue"), + ("brown-cafe-creme", "Café crème"), + ("brown-caramel", "Caramel"), + ("brown-opera", "Opéra"), + ("beige-gris-galet", "Gris galet"), + ], + "help_text": "Only for clickable tags", + "label": "Tag color", + "required": False, + }, + ), + 59: ( + "wagtail.blocks.StructBlock", + [[("page", 12), ("document", 13), ("external_url", 14)]], + {"required": False}, + ), + 60: ( + "wagtail.blocks.StructBlock", + [[("label", 56), ("is_small", 57), ("color", 58), ("icon_class", 28), ("link", 59)]], + {"label": "Tag"}, + ), + 61: ("wagtail.blocks.StreamBlock", [[("tag", 60)]], {"label": "Tag list"}), + 62: ( + "wagtail.blocks.StructBlock", + [ + [ + ("page", 12), + ("document", 13), + ("external_url", 14), + ("text", 15), + ("icon", 16), + ("size", 17), + ] + ], + {"label": "Single link"}, + ), + 63: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [("fr-card--horizontal-tier", "1/3"), ("fr-card--horizontal-half", "50/50")], + "label": "Image ratio", + "required": False, + }, + ), + 64: ( + "wagtail.blocks.StreamBlock", + [[("badge", 54)]], + { + "help_text": "Only used if the card has an image.", + "label": "Image area badge", + "max_num": 1, + "required": False, + }, + ), + 65: ( + "wagtail.blocks.StructBlock", + [[("page", 12), ("document", 13), ("external_url", 14)]], + {"label": "Link", "required": False}, + ), + 66: ( + "wagtail.blocks.URLBlock", + (), + { + "group": "target", + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the Link field above.", + "label": "Link (obsolete)", + "required": False, + }, + ), + 67: ( + "wagtail.documents.blocks.DocumentChooserBlock", + (), + { + "group": "target", + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the Link field above.", + "label": "or Document (obsolete)", + "required": False, + }, + ), + 68: ("wagtail.blocks.CharBlock", (), {"label": "Top detail: text", "required": False}), + 69: ( + "content_manager.blocks.IconPickerBlock", + (), + {"label": "Top detail: icon", "required": False}, + ), + 70: ("wagtail.blocks.StreamBlock", [[("badge", 54)]], {}), + 71: ("wagtail.blocks.StreamBlock", [[("tag", 60)]], {}), + 72: ( + "wagtail.blocks.StreamBlock", + [[("badges", 70), ("tags", 71)]], + {"label": "Top detail: badges or tags", "max_num": 1, "required": False}, + ), + 73: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "Incompatible with the bottom call-to-action. If the card links to a downloadable document, the values are pre-filled.", + "label": "Bottom detail: text", + "required": False, + }, + ), + 74: ( + "content_manager.blocks.IconPickerBlock", + (), + {"label": "Bottom detail: icon", "required": False}, + ), + 75: ( + "wagtail.blocks.StructBlock", + [[("page", 12), ("document", 13), ("external_url", 14), ("text", 15)]], + {"label": "Link"}, + ), + 76: ("wagtail.blocks.StreamBlock", [[("link", 75)]], {}), + 77: ( + "wagtail.blocks.StructBlock", + [ + [ + ("page", 12), + ("document", 13), + ("external_url", 14), + ("text", 15), + ("button_type", 30), + ("icon_class", 28), + ("icon_side", 31), + ] + ], + {"label": "Button"}, + ), + 78: ( + "wagtail.blocks.StreamBlock", + [[("button", 77)]], + { + "help_text": "Please use only one primary button. If you use icons, align them on the same side." + }, + ), + 79: ( + "wagtail.blocks.StreamBlock", + [[("links", 76), ("buttons", 78)]], + { + "help_text": "Incompatible with the bottom detail text.", + "label": "Bottom call-to-action: links or buttons", + "max_num": 1, + "required": False, + }, + ), + 80: ("wagtail.blocks.BooleanBlock", (), {"label": "Card with grey background", "required": False}), + 81: ("wagtail.blocks.BooleanBlock", (), {"label": "Card without background", "required": False}), + 82: ("wagtail.blocks.BooleanBlock", (), {"label": "Card without border", "required": False}), + 83: ("wagtail.blocks.BooleanBlock", (), {"label": "Card with a shadow", "required": False}), + 84: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 56), + ("heading_tag", 26), + ("description", 29), + ("image", 38), + ("image_ratio", 63), + ("image_badge", 64), + ("link", 65), + ("url", 66), + ("document", 67), + ("top_detail_text", 68), + ("top_detail_icon", 69), + ("top_detail_badges_tags", 72), + ("bottom_detail_text", 73), + ("bottom_detail_icon", 74), + ("call_to_action", 79), + ("grey_background", 80), + ("no_background", 81), + ("no_border", 82), + ("shadow", 83), + ] + ], + {"group": "DSFR components", "label": "Horizontal card"}, + ), + 85: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": ["bold", "italic", "superscript", "subscript", "strikethrough"], + "label": "Content", + "required": False, + }, + ), + 86: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + {"help_text": "Prefer SVG files.", "label": "Image", "required": False}, + ), + 87: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "If the tile links to a downloadable document, the values are pre-filled.", + "label": "Detail text", + "required": False, + }, + ), + 88: ("wagtail.blocks.BooleanBlock", (), {"label": "Small tile", "required": False}), + 89: ("wagtail.blocks.BooleanBlock", (), {"label": "Tile with grey background", "required": False}), + 90: ("wagtail.blocks.BooleanBlock", (), {"label": "Tile without background", "required": False}), + 91: ("wagtail.blocks.BooleanBlock", (), {"label": "Tile without border", "required": False}), + 92: ("wagtail.blocks.BooleanBlock", (), {"label": "Tile with a shadow", "required": False}), + 93: ("wagtail.blocks.BooleanBlock", (), {"label": "Horizontal tile", "required": False}), + 94: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 56), + ("heading_tag", 26), + ("description", 85), + ("image", 86), + ("link", 65), + ("top_detail_badges_tags", 72), + ("detail_text", 87), + ("is_small", 88), + ("grey_background", 89), + ("no_background", 90), + ("no_border", 91), + ("shadow", 92), + ("is_horizontal", 93), + ] + ], + {"group": "DSFR components", "label": "Tile"}, + ), + 95: ("wagtail.blocks.RichTextBlock", (), {"label": "Content"}), + 96: ( + "wagtail.blocks.StructBlock", + [[("title", 56), ("content", 95)]], + {"label": "Accordion", "max_num": 15, "min_num": 1}, + ), + 97: ( + "wagtail.blocks.StreamBlock", + [[("title", 56), ("accordion", 96)]], + {"group": "DSFR components", "label": "Accordions"}, + ), + 98: ("wagtail.blocks.IntegerBlock", (), {"label": "Number of steps"}), + 99: ("wagtail.blocks.IntegerBlock", (), {"label": "Current step"}), + 100: ("wagtail.blocks.TextBlock", (), {"label": "Detail"}), + 101: ("wagtail.blocks.StructBlock", [[("title", 56), ("detail", 100)]], {"label": "Step"}), + 102: ("wagtail.blocks.StreamBlock", [[("step", 101)]], {"label": "Steps"}), + 103: ( + "wagtail.blocks.StructBlock", + [[("title", 56), ("total", 98), ("current", 99), ("steps", 102)]], + {"group": "DSFR components", "label": "Stepper"}, + ), + 104: ("wagtailmarkdown.blocks.MarkdownBlock", (), {"group": "Expert syntax", "label": "Markdown"}), + 105: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "Accessibility: The title should describe, in a clear and concise manner, the embedded content.", + "label": "Title", + }, + ), + 106: ( + "wagtail.blocks.URLBlock", + (), + { + "help_text": "Example for Tally: https://tally.so/embed/w2jMRa", + "label": "URL of the iframe", + }, + ), + 107: ("wagtail.blocks.IntegerBlock", (), {"label": "Height (in pixels)"}), + 108: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "For example: \"allow='geolocation'\".", + "label": "Parameters", + "required": False, + }, + ), + 109: ( + "wagtail.blocks.StructBlock", + [[("title", 105), ("url", 106), ("height", 107), ("parameters", 108)]], + {"group": "Expert syntax", "label": "Iframe"}, + ), + 110: ( + "wagtail.blocks.IntegerBlock", + (), + {"default": 3, "label": "Top margin", "max_value": 15, "min_value": 0}, + ), + 111: ( + "wagtail.blocks.IntegerBlock", + (), + {"default": 3, "label": "Bottom margin", "max_value": 15, "min_value": 0}, + ), + 112: ( + "wagtail.blocks.StructBlock", + [[("top_margin", 110), ("bottom_margin", 111)]], + {"group": "Page structure", "label": "Separator"}, + ), + 113: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + {"label": "Background image", "required": False}, + ), + 114: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("Primary colors", [("blue-france", "Blue France"), ("red-marianne", "Red Marianne")]), + ("Neutral colors", [("grey", "Grey")]), + ( + "Illustration colors", + [ + ("green-tilleul-verveine", "Tilleul verveine"), + ("green-bourgeon", "Bourgeon"), + ("green-emeraude", "Émeraude"), + ("green-menthe", "Menthe"), + ("green-archipel", "Archipel"), + ("blue-ecume", "Écume"), + ("blue-cumulus", "Cumulus"), + ("purple-glycine", "Glycine"), + ("pink-macaron", "Macaron"), + ("pink-tuile", "Tuile"), + ("yellow-tournesol", "Tournesol"), + ("yellow-moutarde", "Moutarde"), + ("orange-terre-battue", "Terre battue"), + ("brown-cafe-creme", "Café crème"), + ("brown-caramel", "Caramel"), + ("brown-opera", "Opéra"), + ("beige-gris-galet", "Gris galet"), + ], + ), + ], + "help_text": "Uses the French Design System colors", + "label": "Background color", + "required": False, + }, + ), + 115: ( + "wagtail.blocks.RegexBlock", + (), + { + "error_messages": {"invalid": "Incorrect color format, must be #fff or #f5f5f5"}, + "help_text": "This field is obsolete and will be removed in the near future. Replace it with the background color.", + "label": "Background color, hexadecimal format (obsolete)", + "regex": "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$", + "required": False, + }, + ), + 116: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("h2", "Heading 2"), + ("h3", "Heading 3"), + ("h4", "Heading 4"), + ("h5", "Heading 5"), + ("h6", "Heading 6"), + ("p", "Paragraph"), + ], + "help_text": "Adapt to the page layout. Defaults to heading 2.", + "label": "Heading level", + "required": False, + }, + ), + 117: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 1), + ("heading_tag", 2), + ("image", 3), + ("alt", 4), + ("width", 5), + ("image_ratio", 6), + ("caption", 7), + ("url", 8), + ] + ], + {"label": "Image"}, + ), + 118: ("wagtail.blocks.RichTextBlock", (), {"label": "Rich text", "required": False}), + 119: ( + "wagtail.blocks.StreamBlock", + [[("buttons", 78)]], + {"label": "Call-to-action buttons", "max_num": 1, "required": False}, + ), + 120: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the CTA buttons above.", + "label": "Call to action label (obsolete)", + "required": False, + }, + ), + 121: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the CTA buttons above.", + "label": "Link (obsolete)", + "required": False, + }, + ), + 122: ( + "wagtail.blocks.StructBlock", + [[("text", 118), ("cta_buttons", 119), ("cta_label", 120), ("cta_url", 121)]], + {"label": "Text and call to action"}, + ), + 123: ( + "wagtail.blocks.StructBlock", + [[("title", 105), ("url", 106), ("height", 107), ("parameters", 108)]], + {"group": "DSFR components", "label": "Iframe"}, + ), + 124: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("h2", "Heading 2"), + ("h3", "Heading 3"), + ("h4", "Heading 4"), + ("h5", "Heading 5"), + ], + "help_text": "Adapt to the page layout. Defaults to heading 2.", + "label": "Heading level", + "required": False, + }, + ), + 125: ( + "wagtail.blocks.PageChooserBlock", + (), + {"label": "Blog", "page_type": ["blog.BlogIndexPage"]}, + ), + 126: ( + "wagtail.blocks.IntegerBlock", + (), + { + "default": 3, + "label": "Number of entries", + "max_value": 8, + "min_value": 1, + "required": False, + }, + ), + 127: ( + "wagtail.snippets.blocks.SnippetChooserBlock", + ("blog.Category",), + {"label": "Filter by category", "required": False}, + ), + 128: ( + "wagtail.snippets.blocks.SnippetChooserBlock", + ("content_manager.Tag",), + {"label": "Filter by tag", "required": False}, + ), + 129: ( + "wagtail.snippets.blocks.SnippetChooserBlock", + ("blog.Person",), + {"label": "Filter by author", "required": False}, + ), + 130: ( + "wagtail.snippets.blocks.SnippetChooserBlock", + ("blog.Organization",), + { + "help_text": "The source is the organization of the post author", + "label": "Filter by source", + "required": False, + }, + ), + 131: ( + "wagtail.blocks.BooleanBlock", + (), + {"default": False, "label": "Show filters", "required": False}, + ), + 132: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 1), + ("heading_tag", 124), + ("blog", 125), + ("entries_count", 126), + ("category_filter", 127), + ("tag_filter", 128), + ("author_filter", 129), + ("source_filter", 130), + ("show_filters", 131), + ] + ], + {"group": "Website structure", "label": "Blog recent entries"}, + ), + 133: ( + "wagtail.blocks.PageChooserBlock", + (), + {"label": "Event calendar", "page_type": ["events.EventsIndexPage"]}, + ), + 134: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 1), + ("heading_tag", 124), + ("index_page", 133), + ("entries_count", 126), + ("category_filter", 127), + ("tag_filter", 128), + ("author_filter", 129), + ("source_filter", 130), + ("show_filters", 131), + ] + ], + {"group": "Website structure", "label": "Event calendar recent entries"}, + ), + 135: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "Incompatible with the bottom call-to-action.", + "label": "Bottom detail: text", + "required": False, + }, + ), + 136: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 56), + ("heading_tag", 26), + ("description", 29), + ("image", 38), + ("image_ratio", 6), + ("image_badge", 64), + ("link", 65), + ("url", 66), + ("document", 67), + ("top_detail_text", 68), + ("top_detail_icon", 69), + ("top_detail_badges_tags", 72), + ("bottom_detail_text", 135), + ("bottom_detail_icon", 74), + ("call_to_action", 79), + ("grey_background", 80), + ("no_background", 81), + ("no_border", 82), + ("shadow", 83), + ] + ], + {"group": "DSFR components", "label": "Vertical card"}, + ), + 137: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("3", "3/12"), + ("4", "4/12"), + ("5", "5/12"), + ("6", "6/12"), + ("7", "7/12"), + ("8", "8/12"), + ("9", "9/12"), + ], + "help_text": "The total width of all columns should be 12.", + "label": "Column width", + "required": False, + }, + ), + 138: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 0), + ("image", 117), + ("video", 49), + ("transcription", 50), + ("callout", 34), + ("highlight", 37), + ("quote", 42), + ("text_cta", 122), + ("link", 62), + ("iframe", 123), + ("tile", 94), + ("blog_recent_entries", 132), + ("events_recent_entries", 134), + ("card", 136), + ] + ], + {"label": "Column content"}, + ), + 139: ( + "wagtail.blocks.StructBlock", + [[("width", 137), ("content", 138)]], + {"group": "Page structure", "label": "Adjustable column"}, + ), + 140: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 0), + ("image", 117), + ("video", 49), + ("transcription", 50), + ("callout", 34), + ("highlight", 37), + ("quote", 42), + ("text_cta", 122), + ("link", 62), + ("iframe", 123), + ("tile", 94), + ("blog_recent_entries", 132), + ("events_recent_entries", 134), + ("card", 136), + ("column", 139), + ] + ], + {"label": "Columns"}, + ), + 141: ( + "wagtail.blocks.StructBlock", + [ + [ + ("bg_image", 113), + ("bg_color_class", 114), + ("bg_color", 115), + ("title", 1), + ("heading_tag", 116), + ("columns", 140), + ] + ], + {"group": "Page structure", "label": "Multiple columns"}, + ), + 142: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 0), + ("image", 117), + ("video", 49), + ("transcription", 50), + ("callout", 34), + ("highlight", 37), + ("quote", 42), + ("text_cta", 122), + ("link", 62), + ("iframe", 123), + ("tile", 94), + ("blog_recent_entries", 132), + ("events_recent_entries", 134), + ("image_and_text", 22), + ("card", 84), + ] + ], + {"label": "Content"}, + ), + 143: ( + "wagtail.blocks.StructBlock", + [[("bg_image", 113), ("bg_color_class", 114), ("content", 142)]], + {"group": "Page structure", "label": "Full width background"}, + ), + 144: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 0), + ("image", 117), + ("video", 49), + ("transcription", 50), + ("callout", 34), + ("highlight", 37), + ("quote", 42), + ("text_cta", 122), + ("link", 62), + ("iframe", 123), + ("tile", 94), + ("blog_recent_entries", 132), + ("events_recent_entries", 134), + ("image_and_text", 22), + ("card", 84), + ] + ], + {"label": "Main content"}, + ), + 145: ("wagtail.blocks.CharBlock", (), {"label": "Side menu title", "required": False}), + 146: ( + "wagtail.blocks.RawHTMLBlock", + (), + { + "help_text": "Warning: Use HTML block with caution. Malicious code can compromise the security of the site.", + "label": "HTML", + }, + ), + 147: ("wagtail.blocks.PageChooserBlock", (), {"label": "Parent page"}), + 148: ("wagtail.blocks.StructBlock", [[("page", 147)]], {"label": "Page tree"}), + 149: ( + "wagtail.blocks.StreamBlock", + [[("html", 146), ("pagetree", 148)]], + {"label": "Side menu content"}, + ), + 150: ( + "wagtail.blocks.StructBlock", + [ + [ + ("bg_image", 113), + ("bg_color_class", 114), + ("main_content", 144), + ("sidemenu_title", 145), + ("sidemenu_content", 149), + ] + ], + {"group": "Page structure", "label": "Full width background with side menu"}, + ), + 151: ( + "wagtail.blocks.static_block.StaticBlock", + (), + { + "admin_text": "A simple, alphabetical list of the subpages of the current page.", + "group": "Website structure", + "label": "Subpages list", + "template": "content_manager/blocks/subpages_list.html", + }, + ), + 152: ( + "wagtail.blocks.RawHTMLBlock", + (), + { + "group": "Expert syntax", + "help_text": "Warning: Use HTML block with caution. Malicious code can compromise the security of the site.", + "readonly": True, + }, + ), + }, + ), + ), + migrations.AlterField( + model_name="eventsindexpage", + name="body", + field=wagtail.fields.StreamField( + [ + ("paragraph", 0), + ("image", 9), + ("imageandtext", 22), + ("alert", 27), + ("callout", 34), + ("highlight", 37), + ("quote", 42), + ("video", 49), + ("transcription", 50), + ("badges_list", 55), + ("tags_list", 61), + ("link", 62), + ("card", 84), + ("tile", 94), + ("accordions", 97), + ("stepper", 103), + ("markdown", 104), + ("iframe", 109), + ("separator", 112), + ("multicolumns", 141), + ("fullwidthbackground", 143), + ("fullwidthbackgroundwithsidemenu", 150), + ("subpageslist", 151), + ("blog_recent_entries", 132), + ("events_recent_entries", 134), + ("html", 152), + ], + blank=True, + block_lookup={ + 0: ("wagtail.blocks.RichTextBlock", (), {"label": "Rich text"}), + 1: ("wagtail.blocks.CharBlock", (), {"label": "Title", "required": False}), + 2: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("h2", "Heading 2"), + ("h3", "Heading 3"), + ("h4", "Heading 4"), + ("h5", "Heading 5"), + ("h6", "Heading 6"), + ("p", "Paragraph"), + ], + "help_text": "Adapt to the page layout. Defaults to heading 3.", + "label": "Heading level", + "required": False, + }, + ), + 3: ("wagtail.images.blocks.ImageChooserBlock", (), {"label": "Image"}), + 4: ( + "wagtail.blocks.CharBlock", + (), + {"label": "Alternative text (textual description of the image)", "required": False}, + ), + 5: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("fr-content-media--sm", "Small"), + ("", "Medium"), + ("fr-content-media--lg", "Large"), + ], + "label": "Witdh", + "required": False, + }, + ), + 6: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("fr-ratio-32x9", "32x9"), + ("fr-ratio-16x9", "16x9"), + ("fr-ratio-3x2", "3x2"), + ("fr-ratio-4x3", "4x3"), + ("fr-ratio-1x1", "1x1"), + ("fr-ratio-3x4", "3x4"), + ("fr-ratio-2x3", "2x3"), + ], + "label": "Image ratio", + "required": False, + }, + ), + 7: ("wagtail.blocks.CharBlock", (), {"label": "Caption", "required": False}), + 8: ("wagtail.blocks.URLBlock", (), {"label": "Link", "required": False}), + 9: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 1), + ("heading_tag", 2), + ("image", 3), + ("alt", 4), + ("width", 5), + ("image_ratio", 6), + ("caption", 7), + ("url", 8), + ] + ], + {}, + ), + 10: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [("left", "Left"), ("right", "Right")], + "label": "Side where the image is displayed", + }, + ), + 11: ( + "wagtail.blocks.ChoiceBlock", + [], + {"choices": [("3", "3/12"), ("5", "5/12"), ("6", "6/12")], "label": "Image width"}, + ), + 12: ( + "wagtail.blocks.PageChooserBlock", + (), + { + "help_text": "Link to a page of this site. Use either this, the document, or the external URL parameter.", + "label": "Page", + "required": False, + }, + ), + 13: ( + "wagtail.documents.blocks.DocumentChooserBlock", + (), + { + "help_text": "Use either this, the external URL or the page parameter.", + "label": "Document", + "required": False, + }, + ), + 14: ( + "wagtail.blocks.URLBlock", + (), + { + "help_text": "Use either this, the document or the page parameter.", + "label": "External URL", + "required": False, + }, + ), + 15: ("wagtail.blocks.CharBlock", (), {"label": "Link label", "required": False}), + 16: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("", "No icon"), + ("fr-icon-arrow-right-line fr-link--icon-right", "Icon on the right side"), + ("fr-icon-arrow-right-line fr-link--icon-left", "Icon on the left side"), + ], + "help_text": "Only used for internal links.", + "label": "Icon", + "required": False, + }, + ), + 17: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [("fr-link--sm", "Small"), ("", "Medium"), ("fr-link--lg", "Large")], + "label": "Size", + "required": False, + }, + ), + 18: ( + "wagtail.blocks.StructBlock", + [ + [ + ("page", 12), + ("document", 13), + ("external_url", 14), + ("text", 15), + ("icon", 16), + ("size", 17), + ] + ], + { + "help_text": "The link is shown at the bottom of the text block, with an arrow", + "label": "Link", + "required": False, + }, + ), + 19: ( + "wagtail.blocks.CharBlock", + (), + { + "group": "obsolete", + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the Link field above.", + "label": "Link label (obsolete)", + "required": False, + }, + ), + 20: ( + "wagtail.blocks.PageChooserBlock", + (), + { + "group": "obsolete", + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the Link field above.", + "label": "Internal link (obsolete)", + "required": False, + }, + ), + 21: ( + "wagtail.blocks.URLBlock", + (), + { + "group": "obsolete", + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the Link field above.", + "label": "Link URL (obsolete)", + "required": False, + }, + ), + 22: ( + "wagtail.blocks.StructBlock", + [ + [ + ("image", 3), + ("image_side", 10), + ("image_ratio", 11), + ("text", 0), + ("link", 18), + ("link_label", 19), + ("page", 20), + ("link_url", 21), + ] + ], + {"label": "Image and text"}, + ), + 23: ("wagtail.blocks.CharBlock", (), {"label": "Message title", "required": False}), + 24: ("wagtail.blocks.TextBlock", (), {"label": "Message text", "required": False}), + 25: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("error", "Error"), + ("success", "Success"), + ("info", "Information"), + ("warning", "Warning"), + ], + "label": "Message type", + }, + ), + 26: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("h2", "Heading 2"), + ("h3", "Heading 3"), + ("h4", "Heading 4"), + ("h5", "Heading 5"), + ("h6", "Heading 6"), + ("p", "Paragraph"), + ], + "help_text": "Adapt to the page layout. Defaults to heading 3.", + "label": "Heading level", + }, + ), + 27: ( + "wagtail.blocks.StructBlock", + [[("title", 23), ("description", 24), ("level", 25), ("heading_tag", 26)]], + {"label": "Alert message"}, + ), + 28: ("content_manager.blocks.IconPickerBlock", (), {"label": "Icon", "required": False}), + 29: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "bold", + "italic", + "link", + "document-link", + "superscript", + "subscript", + "strikethrough", + ], + "label": "Content", + "required": False, + }, + ), + 30: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("fr-btn", "Primary"), + ("fr-btn fr-btn--secondary", "Secundary"), + ("fr-btn fr-btn--tertiary", "Tertiary"), + ("fr-btn fr-btn--tertiary-no-outline", "Tertiary without border"), + ], + "label": "Button type", + "required": False, + }, + ), + 31: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [("fr-btn--icon-left", "Left"), ("fr-btn--icon-right", "Right")], + "label": "Icon side", + "required": False, + }, + ), + 32: ( + "wagtail.blocks.StructBlock", + [ + [ + ("page", 12), + ("document", 13), + ("external_url", 14), + ("text", 15), + ("button_type", 30), + ("icon_class", 28), + ("icon_side", 31), + ] + ], + {"label": "Button", "required": False}, + ), + 33: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("green-tilleul-verveine", "Tilleul verveine"), + ("green-bourgeon", "Bourgeon"), + ("green-emeraude", "Émeraude"), + ("green-menthe", "Menthe"), + ("green-archipel", "Archipel"), + ("blue-ecume", "Écume"), + ("blue-cumulus", "Cumulus"), + ("purple-glycine", "Glycine"), + ("pink-macaron", "Macaron"), + ("pink-tuile", "Tuile"), + ("yellow-tournesol", "Tournesol"), + ("yellow-moutarde", "Moutarde"), + ("orange-terre-battue", "Terre battue"), + ("brown-cafe-creme", "Café crème"), + ("brown-caramel", "Caramel"), + ("brown-opera", "Opéra"), + ("beige-gris-galet", "Gris galet"), + ], + "label": "Color", + "required": False, + }, + ), + 34: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 1), + ("heading_tag", 26), + ("icon_class", 28), + ("text", 29), + ("button", 32), + ("color", 33), + ] + ], + {"group": "DSFR components", "label": "Callout"}, + ), + 35: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": [ + "bold", + "italic", + "link", + "document-link", + "superscript", + "subscript", + "strikethrough", + ], + "label": "Content", + }, + ), + 36: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [("fr-text--sm", "Small"), ("", "Medium"), ("fr-text--lg", "Large")], + "label": "Size", + "required": False, + }, + ), + 37: ( + "wagtail.blocks.StructBlock", + [[("text", 35), ("color", 33), ("size", 36)]], + {"group": "DSFR components", "label": "Highlight"}, + ), + 38: ("wagtail.images.blocks.ImageChooserBlock", (), {"label": "Image", "required": False}), + 39: ("wagtail.blocks.CharBlock", (), {"label": "Quote"}), + 40: ("wagtail.blocks.CharBlock", (), {"label": "Author name", "required": False}), + 41: ("wagtail.blocks.CharBlock", (), {"label": "Author title", "required": False}), + 42: ( + "wagtail.blocks.StructBlock", + [[("image", 38), ("quote", 39), ("author_name", 40), ("author_title", 41), ("color", 33)]], + {"group": "DSFR components", "label": "Quote"}, + ), + 43: ("wagtail.blocks.CharBlock", (), {"label": "Video title", "required": False}), + 44: ( + "wagtail.blocks.URLBlock", + (), + { + "help_text": "Use embed format, with a version that doesn't require a consent banner if available. (e.g. : https://www.youtube-nocookie.com/embed/gLzXOViPX-0) For Youtube, use Embed video and check Enable privacy-enhanced mode.", + "label": "Video URL", + }, + ), + 45: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [("fr-ratio-16x9", "16x9"), ("fr-ratio-4x3", "4x3"), ("fr-ratio-1x1", "1x1")], + "label": "Video ratio", + "required": False, + }, + ), + 46: ( + "wagtail.blocks.CharBlock", + (), + {"default": "Transcription", "label": "Title", "required": False}, + ), + 47: ("wagtail.blocks.RichTextBlock", (), {"label": "Transcription content", "required": False}), + 48: ( + "wagtail.blocks.StructBlock", + [[("title", 46), ("content", 47)]], + {"label": "Transcription", "required": False}, + ), + 49: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 43), + ("caption", 7), + ("url", 44), + ("width", 5), + ("video_ratio", 45), + ("transcription", 48), + ] + ], + {"label": "Video"}, + ), + 50: ("wagtail.blocks.StructBlock", [[("title", 46), ("content", 47)]], {"label": "Transcription"}), + 51: ("wagtail.blocks.CharBlock", (), {"label": "Badge label", "required": False}), + 52: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("", [("new", "New"), ("grey", "Grey")]), + ( + "System colors", + [ + ("info", "Info"), + ("success", "Success"), + ("warning", "Warning"), + ("error", "Error"), + ], + ), + ( + "Illustration colors", + [ + ("green-tilleul-verveine", "Tilleul verveine"), + ("green-bourgeon", "Bourgeon"), + ("green-emeraude", "Émeraude"), + ("green-menthe", "Menthe"), + ("green-archipel", "Archipel"), + ("blue-ecume", "Écume"), + ("blue-cumulus", "Cumulus"), + ("purple-glycine", "Glycine"), + ("pink-macaron", "Macaron"), + ("pink-tuile", "Tuile"), + ("yellow-tournesol", "Tournesol"), + ("yellow-moutarde", "Moutarde"), + ("orange-terre-battue", "Terre battue"), + ("brown-cafe-creme", "Café crème"), + ("brown-caramel", "Caramel"), + ("brown-opera", "Opéra"), + ("beige-gris-galet", "Gris galet"), + ], + ), + ], + "label": "Badge color", + "required": False, + }, + ), + 53: ("wagtail.blocks.BooleanBlock", (), {"label": "Hide badge icon", "required": False}), + 54: ( + "wagtail.blocks.StructBlock", + [[("text", 51), ("color", 52), ("hide_icon", 53)]], + {"label": "Badge"}, + ), + 55: ("wagtail.blocks.StreamBlock", [[("badge", 54)]], {"label": "Badge list"}), + 56: ("wagtail.blocks.CharBlock", (), {"label": "Title"}), + 57: ("wagtail.blocks.BooleanBlock", (), {"label": "Small tag", "required": False}), + 58: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("green-tilleul-verveine", "Tilleul verveine"), + ("green-bourgeon", "Bourgeon"), + ("green-emeraude", "Émeraude"), + ("green-menthe", "Menthe"), + ("green-archipel", "Archipel"), + ("blue-ecume", "Écume"), + ("blue-cumulus", "Cumulus"), + ("purple-glycine", "Glycine"), + ("pink-macaron", "Macaron"), + ("pink-tuile", "Tuile"), + ("yellow-tournesol", "Tournesol"), + ("yellow-moutarde", "Moutarde"), + ("orange-terre-battue", "Terre battue"), + ("brown-cafe-creme", "Café crème"), + ("brown-caramel", "Caramel"), + ("brown-opera", "Opéra"), + ("beige-gris-galet", "Gris galet"), + ], + "help_text": "Only for clickable tags", + "label": "Tag color", + "required": False, + }, + ), + 59: ( + "wagtail.blocks.StructBlock", + [[("page", 12), ("document", 13), ("external_url", 14)]], + {"required": False}, + ), + 60: ( + "wagtail.blocks.StructBlock", + [[("label", 56), ("is_small", 57), ("color", 58), ("icon_class", 28), ("link", 59)]], + {"label": "Tag"}, + ), + 61: ("wagtail.blocks.StreamBlock", [[("tag", 60)]], {"label": "Tag list"}), + 62: ( + "wagtail.blocks.StructBlock", + [ + [ + ("page", 12), + ("document", 13), + ("external_url", 14), + ("text", 15), + ("icon", 16), + ("size", 17), + ] + ], + {"label": "Single link"}, + ), + 63: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [("fr-card--horizontal-tier", "1/3"), ("fr-card--horizontal-half", "50/50")], + "label": "Image ratio", + "required": False, + }, + ), + 64: ( + "wagtail.blocks.StreamBlock", + [[("badge", 54)]], + { + "help_text": "Only used if the card has an image.", + "label": "Image area badge", + "max_num": 1, + "required": False, + }, + ), + 65: ( + "wagtail.blocks.StructBlock", + [[("page", 12), ("document", 13), ("external_url", 14)]], + {"label": "Link", "required": False}, + ), + 66: ( + "wagtail.blocks.URLBlock", + (), + { + "group": "target", + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the Link field above.", + "label": "Link (obsolete)", + "required": False, + }, + ), + 67: ( + "wagtail.documents.blocks.DocumentChooserBlock", + (), + { + "group": "target", + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the Link field above.", + "label": "or Document (obsolete)", + "required": False, + }, + ), + 68: ("wagtail.blocks.CharBlock", (), {"label": "Top detail: text", "required": False}), + 69: ( + "content_manager.blocks.IconPickerBlock", + (), + {"label": "Top detail: icon", "required": False}, + ), + 70: ("wagtail.blocks.StreamBlock", [[("badge", 54)]], {}), + 71: ("wagtail.blocks.StreamBlock", [[("tag", 60)]], {}), + 72: ( + "wagtail.blocks.StreamBlock", + [[("badges", 70), ("tags", 71)]], + {"label": "Top detail: badges or tags", "max_num": 1, "required": False}, + ), + 73: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "Incompatible with the bottom call-to-action. If the card links to a downloadable document, the values are pre-filled.", + "label": "Bottom detail: text", + "required": False, + }, + ), + 74: ( + "content_manager.blocks.IconPickerBlock", + (), + {"label": "Bottom detail: icon", "required": False}, + ), + 75: ( + "wagtail.blocks.StructBlock", + [[("page", 12), ("document", 13), ("external_url", 14), ("text", 15)]], + {"label": "Link"}, + ), + 76: ("wagtail.blocks.StreamBlock", [[("link", 75)]], {}), + 77: ( + "wagtail.blocks.StructBlock", + [ + [ + ("page", 12), + ("document", 13), + ("external_url", 14), + ("text", 15), + ("button_type", 30), + ("icon_class", 28), + ("icon_side", 31), + ] + ], + {"label": "Button"}, + ), + 78: ( + "wagtail.blocks.StreamBlock", + [[("button", 77)]], + { + "help_text": "Please use only one primary button. If you use icons, align them on the same side." + }, + ), + 79: ( + "wagtail.blocks.StreamBlock", + [[("links", 76), ("buttons", 78)]], + { + "help_text": "Incompatible with the bottom detail text.", + "label": "Bottom call-to-action: links or buttons", + "max_num": 1, + "required": False, + }, + ), + 80: ("wagtail.blocks.BooleanBlock", (), {"label": "Card with grey background", "required": False}), + 81: ("wagtail.blocks.BooleanBlock", (), {"label": "Card without background", "required": False}), + 82: ("wagtail.blocks.BooleanBlock", (), {"label": "Card without border", "required": False}), + 83: ("wagtail.blocks.BooleanBlock", (), {"label": "Card with a shadow", "required": False}), + 84: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 56), + ("heading_tag", 26), + ("description", 29), + ("image", 38), + ("image_ratio", 63), + ("image_badge", 64), + ("link", 65), + ("url", 66), + ("document", 67), + ("top_detail_text", 68), + ("top_detail_icon", 69), + ("top_detail_badges_tags", 72), + ("bottom_detail_text", 73), + ("bottom_detail_icon", 74), + ("call_to_action", 79), + ("grey_background", 80), + ("no_background", 81), + ("no_border", 82), + ("shadow", 83), + ] + ], + {"group": "DSFR components", "label": "Horizontal card"}, + ), + 85: ( + "wagtail.blocks.RichTextBlock", + (), + { + "features": ["bold", "italic", "superscript", "subscript", "strikethrough"], + "label": "Content", + "required": False, + }, + ), + 86: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + {"help_text": "Prefer SVG files.", "label": "Image", "required": False}, + ), + 87: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "If the tile links to a downloadable document, the values are pre-filled.", + "label": "Detail text", + "required": False, + }, + ), + 88: ("wagtail.blocks.BooleanBlock", (), {"label": "Small tile", "required": False}), + 89: ("wagtail.blocks.BooleanBlock", (), {"label": "Tile with grey background", "required": False}), + 90: ("wagtail.blocks.BooleanBlock", (), {"label": "Tile without background", "required": False}), + 91: ("wagtail.blocks.BooleanBlock", (), {"label": "Tile without border", "required": False}), + 92: ("wagtail.blocks.BooleanBlock", (), {"label": "Tile with a shadow", "required": False}), + 93: ("wagtail.blocks.BooleanBlock", (), {"label": "Horizontal tile", "required": False}), + 94: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 56), + ("heading_tag", 26), + ("description", 85), + ("image", 86), + ("link", 65), + ("top_detail_badges_tags", 72), + ("detail_text", 87), + ("is_small", 88), + ("grey_background", 89), + ("no_background", 90), + ("no_border", 91), + ("shadow", 92), + ("is_horizontal", 93), + ] + ], + {"group": "DSFR components", "label": "Tile"}, + ), + 95: ("wagtail.blocks.RichTextBlock", (), {"label": "Content"}), + 96: ( + "wagtail.blocks.StructBlock", + [[("title", 56), ("content", 95)]], + {"label": "Accordion", "max_num": 15, "min_num": 1}, + ), + 97: ( + "wagtail.blocks.StreamBlock", + [[("title", 56), ("accordion", 96)]], + {"group": "DSFR components", "label": "Accordions"}, + ), + 98: ("wagtail.blocks.IntegerBlock", (), {"label": "Number of steps"}), + 99: ("wagtail.blocks.IntegerBlock", (), {"label": "Current step"}), + 100: ("wagtail.blocks.TextBlock", (), {"label": "Detail"}), + 101: ("wagtail.blocks.StructBlock", [[("title", 56), ("detail", 100)]], {"label": "Step"}), + 102: ("wagtail.blocks.StreamBlock", [[("step", 101)]], {"label": "Steps"}), + 103: ( + "wagtail.blocks.StructBlock", + [[("title", 56), ("total", 98), ("current", 99), ("steps", 102)]], + {"group": "DSFR components", "label": "Stepper"}, + ), + 104: ("wagtailmarkdown.blocks.MarkdownBlock", (), {"group": "Expert syntax", "label": "Markdown"}), + 105: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "Accessibility: The title should describe, in a clear and concise manner, the embedded content.", + "label": "Title", + }, + ), + 106: ( + "wagtail.blocks.URLBlock", + (), + { + "help_text": "Example for Tally: https://tally.so/embed/w2jMRa", + "label": "URL of the iframe", + }, + ), + 107: ("wagtail.blocks.IntegerBlock", (), {"label": "Height (in pixels)"}), + 108: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "For example: \"allow='geolocation'\".", + "label": "Parameters", + "required": False, + }, + ), + 109: ( + "wagtail.blocks.StructBlock", + [[("title", 105), ("url", 106), ("height", 107), ("parameters", 108)]], + {"group": "Expert syntax", "label": "Iframe"}, + ), + 110: ( + "wagtail.blocks.IntegerBlock", + (), + {"default": 3, "label": "Top margin", "max_value": 15, "min_value": 0}, + ), + 111: ( + "wagtail.blocks.IntegerBlock", + (), + {"default": 3, "label": "Bottom margin", "max_value": 15, "min_value": 0}, + ), + 112: ( + "wagtail.blocks.StructBlock", + [[("top_margin", 110), ("bottom_margin", 111)]], + {"group": "Page structure", "label": "Separator"}, + ), + 113: ( + "wagtail.images.blocks.ImageChooserBlock", + (), + {"label": "Background image", "required": False}, + ), + 114: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("Primary colors", [("blue-france", "Blue France"), ("red-marianne", "Red Marianne")]), + ("Neutral colors", [("grey", "Grey")]), + ( + "Illustration colors", + [ + ("green-tilleul-verveine", "Tilleul verveine"), + ("green-bourgeon", "Bourgeon"), + ("green-emeraude", "Émeraude"), + ("green-menthe", "Menthe"), + ("green-archipel", "Archipel"), + ("blue-ecume", "Écume"), + ("blue-cumulus", "Cumulus"), + ("purple-glycine", "Glycine"), + ("pink-macaron", "Macaron"), + ("pink-tuile", "Tuile"), + ("yellow-tournesol", "Tournesol"), + ("yellow-moutarde", "Moutarde"), + ("orange-terre-battue", "Terre battue"), + ("brown-cafe-creme", "Café crème"), + ("brown-caramel", "Caramel"), + ("brown-opera", "Opéra"), + ("beige-gris-galet", "Gris galet"), + ], + ), + ], + "help_text": "Uses the French Design System colors", + "label": "Background color", + "required": False, + }, + ), + 115: ( + "wagtail.blocks.RegexBlock", + (), + { + "error_messages": {"invalid": "Incorrect color format, must be #fff or #f5f5f5"}, + "help_text": "This field is obsolete and will be removed in the near future. Replace it with the background color.", + "label": "Background color, hexadecimal format (obsolete)", + "regex": "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$", + "required": False, + }, + ), + 116: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("h2", "Heading 2"), + ("h3", "Heading 3"), + ("h4", "Heading 4"), + ("h5", "Heading 5"), + ("h6", "Heading 6"), + ("p", "Paragraph"), + ], + "help_text": "Adapt to the page layout. Defaults to heading 2.", + "label": "Heading level", + "required": False, + }, + ), + 117: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 1), + ("heading_tag", 2), + ("image", 3), + ("alt", 4), + ("width", 5), + ("image_ratio", 6), + ("caption", 7), + ("url", 8), + ] + ], + {"label": "Image"}, + ), + 118: ("wagtail.blocks.RichTextBlock", (), {"label": "Rich text", "required": False}), + 119: ( + "wagtail.blocks.StreamBlock", + [[("buttons", 78)]], + {"label": "Call-to-action buttons", "max_num": 1, "required": False}, + ), + 120: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the CTA buttons above.", + "label": "Call to action label (obsolete)", + "required": False, + }, + ), + 121: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "This field is obsolete and will be removed in the near future. Please replace with the CTA buttons above.", + "label": "Link (obsolete)", + "required": False, + }, + ), + 122: ( + "wagtail.blocks.StructBlock", + [[("text", 118), ("cta_buttons", 119), ("cta_label", 120), ("cta_url", 121)]], + {"label": "Text and call to action"}, + ), + 123: ( + "wagtail.blocks.StructBlock", + [[("title", 105), ("url", 106), ("height", 107), ("parameters", 108)]], + {"group": "DSFR components", "label": "Iframe"}, + ), + 124: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("h2", "Heading 2"), + ("h3", "Heading 3"), + ("h4", "Heading 4"), + ("h5", "Heading 5"), + ], + "help_text": "Adapt to the page layout. Defaults to heading 2.", + "label": "Heading level", + "required": False, + }, + ), + 125: ( + "wagtail.blocks.PageChooserBlock", + (), + {"label": "Blog", "page_type": ["blog.BlogIndexPage"]}, + ), + 126: ( + "wagtail.blocks.IntegerBlock", + (), + { + "default": 3, + "label": "Number of entries", + "max_value": 8, + "min_value": 1, + "required": False, + }, + ), + 127: ( + "wagtail.snippets.blocks.SnippetChooserBlock", + ("blog.Category",), + {"label": "Filter by category", "required": False}, + ), + 128: ( + "wagtail.snippets.blocks.SnippetChooserBlock", + ("content_manager.Tag",), + {"label": "Filter by tag", "required": False}, + ), + 129: ( + "wagtail.snippets.blocks.SnippetChooserBlock", + ("blog.Person",), + {"label": "Filter by author", "required": False}, + ), + 130: ( + "wagtail.snippets.blocks.SnippetChooserBlock", + ("blog.Organization",), + { + "help_text": "The source is the organization of the post author", + "label": "Filter by source", + "required": False, + }, + ), + 131: ( + "wagtail.blocks.BooleanBlock", + (), + {"default": False, "label": "Show filters", "required": False}, + ), + 132: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 1), + ("heading_tag", 124), + ("blog", 125), + ("entries_count", 126), + ("category_filter", 127), + ("tag_filter", 128), + ("author_filter", 129), + ("source_filter", 130), + ("show_filters", 131), + ] + ], + {"group": "Website structure", "label": "Blog recent entries"}, + ), + 133: ( + "wagtail.blocks.PageChooserBlock", + (), + {"label": "Event calendar", "page_type": ["events.EventsIndexPage"]}, + ), + 134: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 1), + ("heading_tag", 124), + ("index_page", 133), + ("entries_count", 126), + ("category_filter", 127), + ("tag_filter", 128), + ("author_filter", 129), + ("source_filter", 130), + ("show_filters", 131), + ] + ], + {"group": "Website structure", "label": "Event calendar recent entries"}, + ), + 135: ( + "wagtail.blocks.CharBlock", + (), + { + "help_text": "Incompatible with the bottom call-to-action.", + "label": "Bottom detail: text", + "required": False, + }, + ), + 136: ( + "wagtail.blocks.StructBlock", + [ + [ + ("title", 56), + ("heading_tag", 26), + ("description", 29), + ("image", 38), + ("image_ratio", 6), + ("image_badge", 64), + ("link", 65), + ("url", 66), + ("document", 67), + ("top_detail_text", 68), + ("top_detail_icon", 69), + ("top_detail_badges_tags", 72), + ("bottom_detail_text", 135), + ("bottom_detail_icon", 74), + ("call_to_action", 79), + ("grey_background", 80), + ("no_background", 81), + ("no_border", 82), + ("shadow", 83), + ] + ], + {"group": "DSFR components", "label": "Vertical card"}, + ), + 137: ( + "wagtail.blocks.ChoiceBlock", + [], + { + "choices": [ + ("3", "3/12"), + ("4", "4/12"), + ("5", "5/12"), + ("6", "6/12"), + ("7", "7/12"), + ("8", "8/12"), + ("9", "9/12"), + ], + "help_text": "The total width of all columns should be 12.", + "label": "Column width", + "required": False, + }, + ), + 138: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 0), + ("image", 117), + ("video", 49), + ("transcription", 50), + ("callout", 34), + ("highlight", 37), + ("quote", 42), + ("text_cta", 122), + ("link", 62), + ("iframe", 123), + ("tile", 94), + ("blog_recent_entries", 132), + ("events_recent_entries", 134), + ("card", 136), + ] + ], + {"label": "Column content"}, + ), + 139: ( + "wagtail.blocks.StructBlock", + [[("width", 137), ("content", 138)]], + {"group": "Page structure", "label": "Adjustable column"}, + ), + 140: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 0), + ("image", 117), + ("video", 49), + ("transcription", 50), + ("callout", 34), + ("highlight", 37), + ("quote", 42), + ("text_cta", 122), + ("link", 62), + ("iframe", 123), + ("tile", 94), + ("blog_recent_entries", 132), + ("events_recent_entries", 134), + ("card", 136), + ("column", 139), + ] + ], + {"label": "Columns"}, + ), + 141: ( + "wagtail.blocks.StructBlock", + [ + [ + ("bg_image", 113), + ("bg_color_class", 114), + ("bg_color", 115), + ("title", 1), + ("heading_tag", 116), + ("columns", 140), + ] + ], + {"group": "Page structure", "label": "Multiple columns"}, + ), + 142: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 0), + ("image", 117), + ("video", 49), + ("transcription", 50), + ("callout", 34), + ("highlight", 37), + ("quote", 42), + ("text_cta", 122), + ("link", 62), + ("iframe", 123), + ("tile", 94), + ("blog_recent_entries", 132), + ("events_recent_entries", 134), + ("image_and_text", 22), + ("card", 84), + ] + ], + {"label": "Content"}, + ), + 143: ( + "wagtail.blocks.StructBlock", + [[("bg_image", 113), ("bg_color_class", 114), ("content", 142)]], + {"group": "Page structure", "label": "Full width background"}, + ), + 144: ( + "wagtail.blocks.StreamBlock", + [ + [ + ("text", 0), + ("image", 117), + ("video", 49), + ("transcription", 50), + ("callout", 34), + ("highlight", 37), + ("quote", 42), + ("text_cta", 122), + ("link", 62), + ("iframe", 123), + ("tile", 94), + ("blog_recent_entries", 132), + ("events_recent_entries", 134), + ("image_and_text", 22), + ("card", 84), + ] + ], + {"label": "Main content"}, + ), + 145: ("wagtail.blocks.CharBlock", (), {"label": "Side menu title", "required": False}), + 146: ( + "wagtail.blocks.RawHTMLBlock", + (), + { + "help_text": "Warning: Use HTML block with caution. Malicious code can compromise the security of the site.", + "label": "HTML", + }, + ), + 147: ("wagtail.blocks.PageChooserBlock", (), {"label": "Parent page"}), + 148: ("wagtail.blocks.StructBlock", [[("page", 147)]], {"label": "Page tree"}), + 149: ( + "wagtail.blocks.StreamBlock", + [[("html", 146), ("pagetree", 148)]], + {"label": "Side menu content"}, + ), + 150: ( + "wagtail.blocks.StructBlock", + [ + [ + ("bg_image", 113), + ("bg_color_class", 114), + ("main_content", 144), + ("sidemenu_title", 145), + ("sidemenu_content", 149), + ] + ], + {"group": "Page structure", "label": "Full width background with side menu"}, + ), + 151: ( + "wagtail.blocks.static_block.StaticBlock", + (), + { + "admin_text": "A simple, alphabetical list of the subpages of the current page.", + "group": "Website structure", + "label": "Subpages list", + "template": "content_manager/blocks/subpages_list.html", + }, + ), + 152: ( + "wagtail.blocks.RawHTMLBlock", + (), + { + "group": "Expert syntax", + "help_text": "Warning: Use HTML block with caution. Malicious code can compromise the security of the site.", + "readonly": True, + }, + ), + }, + ), + ), + ] diff --git a/forms/locale/fr/LC_MESSAGES/django.mo b/forms/locale/fr/LC_MESSAGES/django.mo index 853ec9270fd41523de27a7791447ac82baaa6f8a..0d140aa11cfe45583dc2eb98a7dcbf785bf76416 100644 GIT binary patch delta 23 ecmZ3>vzBK=2Q!z2u92C7p{bRT!RATKvzY)=iw2AU delta 23 ecmZ3>vzBK=2Q!zsu7Qz)p{bRT;pR!qvzY)=I0l9Q diff --git a/forms/locale/fr/LC_MESSAGES/django.po b/forms/locale/fr/LC_MESSAGES/django.po index 2aaff011..caa001c5 100644 --- a/forms/locale/fr/LC_MESSAGES/django.po +++ b/forms/locale/fr/LC_MESSAGES/django.po @@ -8,8 +8,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-07-02 13:15+0200\n" -"PO-Revision-Date: 2024-07-02 15:21+0200\n" +"POT-Creation-Date: 2024-08-26 15:14+0200\n" +"PO-Revision-Date: 2024-08-26 15:20+0200\n" "Last-Translator: \n" "Language-Team: \n" "Language: fr\n" @@ -67,35 +67,35 @@ msgstr "Champ caché" msgid "Field type" msgstr "Type de champ" -#: forms/models.py:36 forms/models.py:76 +#: forms/models.py:36 forms/models.py:78 msgid "Form field" msgstr "Champ de formulaire" -#: forms/models.py:37 forms/models.py:76 +#: forms/models.py:37 forms/models.py:78 msgid "Form fields" msgstr "Champs de formulaire" -#: forms/models.py:75 +#: forms/models.py:77 msgid "Introduction" msgstr "Introduction" -#: forms/models.py:77 +#: forms/models.py:79 msgid "Thank you text" msgstr "Texte de remerciement" -#: forms/models.py:88 +#: forms/models.py:90 msgid "E-mail notification when an answer is sent" msgstr "Notification par e-mail quand une réponse est envoyée" -#: forms/models.py:89 +#: forms/models.py:91 msgid "Optional, will only work if SMTP parameters have been set." msgstr "Optionnel, ne fonctionnera que si les paramètres SMTP ont été configurés." -#: forms/models.py:94 +#: forms/models.py:96 msgid "Form page" msgstr "Page de formulaire" -#: forms/models.py:95 +#: forms/models.py:97 msgid "Form pages" msgstr "Pages de formulaire"