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/blog/templates/blog/blog_index_page.html b/blog/templates/blog/blog_index_page.html index 467f798c..30443a27 100644 --- a/blog/templates/blog/blog_index_page.html +++ b/blog/templates/blog/blog_index_page.html @@ -67,9 +67,9 @@

-
+
{% translate "Filters" %}
{% if categories and page.filter_by_category %}
diff --git a/content_manager/blocks.py b/content_manager/blocks.py index 3145a5b9..7c848dc4 100644 --- a/content_manager/blocks.py +++ b/content_manager/blocks.py @@ -944,6 +944,41 @@ class Meta: template = "content_manager/blocks/full_width_background.html" +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( + label="HTML", + help_text=_("Warning: Use HTML block with caution. Malicious code can compromise the security of the site."), + ) + pagetree = PageTreeBlock(label=_("Page tree")) + + class Meta: + icon = "minus" + + +class FullWidthBackgroundWithSidemenuBlock(blocks.StructBlock): + bg_image = ImageChooserBlock(label=_("Background image"), required=False) + bg_color_class = BackgroundColorChoiceBlock( + label=_("Background color"), + required=False, + help_text=_("Uses the French Design System colors"), + ) + main_content = FullWidthBlock(label=_("Main content")) + sidemenu_title = blocks.CharBlock(label=_("Side menu title"), required=False) + sidemenu_content = SideMenuBlock(label=_("Side menu content")) + + class Meta: + icon = "minus" + template = "content_manager/blocks/full_width_background_with_sidemenu.html" + + STREAMFIELD_COMMON_BLOCKS = [ ("paragraph", blocks.RichTextBlock(label=_("Rich text"))), ("image", ImageBlock()), @@ -966,6 +1001,12 @@ class Meta: ("separator", SeparatorBlock(label=_("Separator"), group=_("Page structure"))), ("multicolumns", MultiColumnsWithTitleBlock(label=_("Multiple columns"), group=_("Page structure"))), ("fullwidthbackground", FullWidthBackgroundBlock(label=_("Full width background"), group=_("Page structure"))), + ( + "fullwidthbackgroundwithsidemenu", + FullWidthBackgroundWithSidemenuBlock( + label=_("Full width background with side menu"), group=_("Page structure") + ), + ), ( "subpageslist", blocks.StaticBlock( diff --git a/content_manager/locale/fr/LC_MESSAGES/django.mo b/content_manager/locale/fr/LC_MESSAGES/django.mo index d60706a8..22b9b13c 100644 Binary files a/content_manager/locale/fr/LC_MESSAGES/django.mo and b/content_manager/locale/fr/LC_MESSAGES/django.mo differ diff --git a/content_manager/locale/fr/LC_MESSAGES/django.po b/content_manager/locale/fr/LC_MESSAGES/django.po index e1a0cf17..255e6c8d 100644 --- a/content_manager/locale/fr/LC_MESSAGES/django.po +++ b/content_manager/locale/fr/LC_MESSAGES/django.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-08-23 16:16+0200\n" -"PO-Revision-Date: 2024-08-23 16:17+0200\n" +"POT-Creation-Date: 2024-08-26 15:14+0200\n" +"PO-Revision-Date: 2024-08-26 15:38+0200\n" "Last-Translator: \n" "Language-Team: \n" "Language: fr\n" @@ -27,12 +27,12 @@ msgid "Header image" msgstr "Image d’en-tête" #: content_manager/abstract.py:37 content_manager/blocks.py:897 -#: content_manager/blocks.py:936 +#: content_manager/blocks.py:936 content_manager/blocks.py:969 msgid "Background color" msgstr "Couleur de fond" #: content_manager/abstract.py:41 content_manager/blocks.py:899 -#: content_manager/blocks.py:938 +#: content_manager/blocks.py:938 content_manager/blocks.py:971 msgid "Uses the French Design System colors" msgstr "Utilise les couleurs du système de design de l'État" @@ -439,7 +439,7 @@ msgid "Image width" msgstr "Largeur de l’image" #: content_manager/blocks.py:523 content_manager/blocks.py:631 -#: content_manager/blocks.py:841 content_manager/blocks.py:948 +#: content_manager/blocks.py:841 content_manager/blocks.py:983 msgid "Rich text" msgstr "Texte avec mise en forme" @@ -472,7 +472,7 @@ msgid "Caption" msgstr "Légende" #: content_manager/blocks.py:595 content_manager/blocks.py:847 -#: content_manager/blocks.py:954 +#: content_manager/blocks.py:989 msgid "Quote" msgstr "Citation" @@ -544,7 +544,7 @@ msgid "Video ratio" msgstr "Ratio de la vidéo" #: content_manager/blocks.py:698 content_manager/blocks.py:844 -#: content_manager/blocks.py:956 +#: content_manager/blocks.py:991 msgid "Transcription" msgstr "Transcription" @@ -598,11 +598,11 @@ msgstr "Afficher les filtres" msgid "Event calendar" msgstr "Agenda" -#: content_manager/blocks.py:843 content_manager/blocks.py:955 +#: content_manager/blocks.py:843 content_manager/blocks.py:990 msgid "Video" msgstr "Vidéo" -#: content_manager/blocks.py:845 content_manager/blocks.py:952 +#: content_manager/blocks.py:845 content_manager/blocks.py:987 msgid "Callout" msgstr "Mise en avant" @@ -610,14 +610,14 @@ msgstr "Mise en avant" #: content_manager/blocks.py:847 content_manager/blocks.py:850 #: content_manager/blocks.py:851 content_manager/blocks.py:862 #: content_manager/blocks.py:887 content_manager/blocks.py:927 -#: content_manager/blocks.py:952 content_manager/blocks.py:953 -#: content_manager/blocks.py:954 content_manager/blocks.py:960 -#: content_manager/blocks.py:961 content_manager/blocks.py:962 -#: content_manager/blocks.py:963 +#: content_manager/blocks.py:987 content_manager/blocks.py:988 +#: content_manager/blocks.py:989 content_manager/blocks.py:995 +#: content_manager/blocks.py:996 content_manager/blocks.py:997 +#: content_manager/blocks.py:998 msgid "DSFR components" msgstr "Composants du DSFR" -#: content_manager/blocks.py:846 content_manager/blocks.py:953 +#: content_manager/blocks.py:846 content_manager/blocks.py:988 msgid "Highlight" msgstr "Mise en exergue" @@ -625,29 +625,29 @@ msgstr "Mise en exergue" msgid "Text and call to action" msgstr "Texte et appel à action" -#: content_manager/blocks.py:849 content_manager/blocks.py:959 +#: content_manager/blocks.py:849 content_manager/blocks.py:994 msgid "Single link" msgstr "Lien isolé" -#: content_manager/blocks.py:850 content_manager/blocks.py:965 +#: content_manager/blocks.py:850 content_manager/blocks.py:1000 msgid "Iframe" msgstr "Iframe" -#: content_manager/blocks.py:851 content_manager/blocks.py:961 +#: content_manager/blocks.py:851 content_manager/blocks.py:996 msgid "Tile" msgstr "Tuile" -#: content_manager/blocks.py:852 content_manager/blocks.py:980 +#: content_manager/blocks.py:852 content_manager/blocks.py:1021 msgid "Blog recent entries" msgstr "Articles récents du blog" #: content_manager/blocks.py:852 content_manager/blocks.py:854 -#: content_manager/blocks.py:975 content_manager/blocks.py:980 -#: content_manager/blocks.py:984 +#: content_manager/blocks.py:1016 content_manager/blocks.py:1021 +#: content_manager/blocks.py:1025 msgid "Website structure" msgstr "Structure du site" -#: content_manager/blocks.py:854 content_manager/blocks.py:984 +#: content_manager/blocks.py:854 content_manager/blocks.py:1025 msgid "Event calendar recent entries" msgstr "Articles récents de l’agenda" @@ -671,12 +671,14 @@ msgstr "Contenu de la colonnne" msgid "Adjustable column" msgstr "Colonne ajustable" -#: content_manager/blocks.py:888 content_manager/blocks.py:966 -#: content_manager/blocks.py:967 content_manager/blocks.py:968 +#: content_manager/blocks.py:888 content_manager/blocks.py:1001 +#: content_manager/blocks.py:1002 content_manager/blocks.py:1003 +#: content_manager/blocks.py:1007 msgid "Page structure" msgstr "Structure de la page" #: content_manager/blocks.py:895 content_manager/blocks.py:934 +#: content_manager/blocks.py:967 msgid "Background image" msgstr "Image de fond" @@ -700,72 +702,96 @@ msgstr "Format de couleur incorrect, doit être #fff ou #f5f5f5" msgid "Columns" msgstr "Colonnes" -#: content_manager/blocks.py:926 content_manager/blocks.py:950 +#: content_manager/blocks.py:926 content_manager/blocks.py:985 msgid "Image and text" msgstr "Image et texte" -#: content_manager/blocks.py:927 content_manager/blocks.py:960 +#: content_manager/blocks.py:927 content_manager/blocks.py:995 msgid "Horizontal card" msgstr "Carte horizontale" -#: content_manager/blocks.py:951 +#: content_manager/blocks.py:948 +msgid "Parent page" +msgstr "Page parente" + +#: content_manager/blocks.py:958 content_manager/blocks.py:1038 +msgid "" +"Warning: Use HTML block with caution. Malicious code can compromise the " +"security of the site." +msgstr "" +"Avertissement : Utilisez le bloc HTML avec précaution. Un code malveillant " +"peut compromettre la sécurité du site." + +#: content_manager/blocks.py:960 +msgid "Page tree" +msgstr "Arborescence de pages" + +#: content_manager/blocks.py:973 +msgid "Main content" +msgstr "Contenu principal" + +#: content_manager/blocks.py:974 +msgid "Side menu title" +msgstr "Titre du menu latéral" + +#: content_manager/blocks.py:975 +msgid "Side menu content" +msgstr "Contenu du menu latéral" + +#: content_manager/blocks.py:986 msgid "Alert message" msgstr "Message d’alerte" -#: content_manager/blocks.py:957 +#: content_manager/blocks.py:992 msgid "Badge list" msgstr "Liste de badges" -#: content_manager/blocks.py:958 +#: content_manager/blocks.py:993 msgid "Tag list" msgstr "Liste de tags" -#: content_manager/blocks.py:962 +#: content_manager/blocks.py:997 msgid "Accordions" msgstr "Accordéons" -#: content_manager/blocks.py:963 +#: content_manager/blocks.py:998 msgid "Stepper" msgstr "Étapier" -#: content_manager/blocks.py:964 +#: content_manager/blocks.py:999 msgid "Markdown" msgstr "Markdown" -#: content_manager/blocks.py:964 content_manager/blocks.py:965 -#: content_manager/blocks.py:999 +#: content_manager/blocks.py:999 content_manager/blocks.py:1000 +#: content_manager/blocks.py:1040 msgid "Expert syntax" msgstr "Syntaxe experte" -#: content_manager/blocks.py:966 +#: content_manager/blocks.py:1001 msgid "Separator" msgstr "Séparateur" -#: content_manager/blocks.py:967 +#: content_manager/blocks.py:1002 msgid "Multiple columns" msgstr "Multi-colonnes" -#: content_manager/blocks.py:968 +#: content_manager/blocks.py:1003 msgid "Full width background" msgstr "Fond pleine largeur" -#: content_manager/blocks.py:972 +#: content_manager/blocks.py:1007 +msgid "Full width background with side menu" +msgstr "Fond pleine largeur avec menu latéral" + +#: content_manager/blocks.py:1013 msgid "Subpages list" msgstr "Liste des sous-pages" -#: content_manager/blocks.py:973 +#: content_manager/blocks.py:1014 msgid "A simple, alphabetical list of the subpages of the current page." msgstr "" "Une liste alphabétique toute simple des sous-pages de la page actuelle." -#: content_manager/blocks.py:997 -msgid "" -"Warning: Use HTML block with caution. Malicious code can compromise the " -"security of the site." -msgstr "" -"Avertissement : Utilisez le bloc HTML avec précaution. Un code malveillant " -"peut compromettre la sécurité du site." - #: content_manager/constants.py:4 msgid "Primary" msgstr "Primaire" @@ -1105,6 +1131,10 @@ msgstr "Taille de fichier inconnue" msgid "See all events" msgstr "Voir tous les événements" +#: content_manager/templates/content_manager/blocks/full_width_background_with_sidemenu.html:16 +msgid "In this section" +msgstr "Dans cette rubrique" + #: content_manager/templates/content_manager/blocks/image.html:13 msgid "Go to page" msgstr "Aller à la page" diff --git a/content_manager/migrations/0041_alter_contentpage_body.py b/content_manager/migrations/0041_alter_contentpage_body.py new file mode 100644 index 00000000..24bffcf3 --- /dev/null +++ b/content_manager/migrations/0041_alter_contentpage_body.py @@ -0,0 +1,1264 @@ +# 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 = [ + ("content_manager", "0040_cmsdsfrconfig_notice_description_and_more"), + ] + + operations = [ + migrations.AlterField( + model_name="contentpage", + 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/templates/content_manager/blocks/blocks_stream.html b/content_manager/templates/content_manager/blocks/blocks_stream.html index 26097033..866ddbcf 100644 --- a/content_manager/templates/content_manager/blocks/blocks_stream.html +++ b/content_manager/templates/content_manager/blocks/blocks_stream.html @@ -1,37 +1,39 @@ {% load static dsfr_tags wagtailcore_tags wagtailimages_tags wagtailmarkdown %} {% for block in stream %} - {% if block.block_type == 'callout' %} + {% if block.block_type == "callout" %}
{% 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 == 'paragraph' %} + {% elif block.block_type == "fullwidthbackgroundwithsidemenu" %} + {% include_block block %} + {% 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 new file mode 100644 index 00000000..3b179b96 --- /dev/null +++ b/content_manager/templates/content_manager/blocks/full_width_background_with_sidemenu.html @@ -0,0 +1,31 @@ +{% load i18n dsfr_tags wagtailcore_tags wagtailimages_tags %} +{% image value.bg_image original as bg_img %} +
+
+
+
+ +
+
+ {% include "content_manager/blocks/blocks_stream.html" with stream=value.main_content %} +
+
+
+
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 49c3ebde..d821aba9 100644 Binary files a/dashboard/locale/fr/LC_MESSAGES/django.mo and b/dashboard/locale/fr/LC_MESSAGES/django.mo differ 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/events/templates/events/events_archive_page.html b/events/templates/events/events_archive_page.html index 1e2df476..7d006ae5 100644 --- a/events/templates/events/events_archive_page.html +++ b/events/templates/events/events_archive_page.html @@ -66,9 +66,9 @@

-
+
{% translate "Filters and export" %}
diff --git a/events/templates/events/events_index_page.html b/events/templates/events/events_index_page.html index 3e102c70..14b6df5d 100644 --- a/events/templates/events/events_index_page.html +++ b/events/templates/events/events_index_page.html @@ -66,9 +66,9 @@

-
+
{% translate "Filters and export" %}

{% translate "Filter by date" %}

diff --git a/forms/locale/fr/LC_MESSAGES/django.mo b/forms/locale/fr/LC_MESSAGES/django.mo index 853ec927..0d140aa1 100644 Binary files a/forms/locale/fr/LC_MESSAGES/django.mo and b/forms/locale/fr/LC_MESSAGES/django.mo differ 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"