# Generated by Django 4.2.13 on 2025-07-02 14:32

from django.db import migrations
import wagtail.fields


class Migration(migrations.Migration):
    dependencies = [
        ("base", "0007_alter_standardpage_featured"),
    ]

    operations = [
        migrations.RemoveField(
            model_name="standardpage",
            name="featured",
        ),
        migrations.AlterField(
            model_name="standardpage",
            name="body",
            field=wagtail.fields.StreamField(
                [
                    ("heading_block", 2),
                    ("paragraph_block", 3),
                    ("alert_block", 7),
                    ("card_block", 9),
                    ("image_block", 12),
                    ("embed_block", 13),
                    ("featured_posts", 18),
                ],
                blank=True,
                block_lookup={
                    0: (
                        "wagtail.blocks.CharBlock",
                        (),
                        {"form_classname": "title", "required": True},
                    ),
                    1: (
                        "wagtail.blocks.ChoiceBlock",
                        [],
                        {
                            "blank": True,
                            "choices": [
                                ("", "Choisissez un niveau de titre"),
                                ("h2", "H2"),
                                ("h3", "H3"),
                                ("h4", "H4"),
                            ],
                            "required": False,
                        },
                    ),
                    2: (
                        "wagtail.blocks.StructBlock",
                        [[("heading_text", 0), ("size", 1)]],
                        {},
                    ),
                    3: ("wagtail.blocks.RichTextBlock", (), {"icon": "pilcrow"}),
                    4: (
                        "wagtail.blocks.ChoiceBlock",
                        [],
                        {
                            "choices": [
                                ("alert-success", "Vert"),
                                ("alert-link", "Bleu"),
                                ("alert-warning", "Jaune"),
                                ("alert-danger", "Rouge"),
                                ("alert-dark", "Noir"),
                                ("alert-primary", "Couleur primaire"),
                                ("alert-secondary", "Couleur secondaire"),
                                ("alert-tertiary", "Couleur tertiaire"),
                                ("alert-quaternary", "Couleur quaternaire"),
                            ]
                        },
                    ),
                    5: (
                        "wagtail.blocks.ChoiceBlock",
                        [],
                        {
                            "blank": True,
                            "choices": [
                                ("alert-sm", "Petit"),
                                ("alert-lg", "Grand"),
                                ("alert-dismissible", "Réductible"),
                            ],
                            "null": True,
                            "required": False,
                        },
                    ),
                    6: (
                        "wagtail.blocks.CharBlock",
                        (),
                        {"features": ["bold", "italic", "link"]},
                    ),
                    7: (
                        "wagtail.blocks.StructBlock",
                        [[("alert_type", 4), ("alert_options", 5), ("alert_body", 6)]],
                        {},
                    ),
                    8: (
                        "wagtail.blocks.PageChooserBlock",
                        (),
                        {
                            "help_text": "Sélectionnez une page pour créer un lien.",
                            "required": True,
                        },
                    ),
                    9: ("wagtail.blocks.StructBlock", [[("card", 8)]], {}),
                    10: (
                        "wagtail.images.blocks.ImageChooserBlock",
                        (),
                        {"required": True},
                    ),
                    11: ("wagtail.blocks.CharBlock", (), {"required": False}),
                    12: (
                        "wagtail.blocks.StructBlock",
                        [[("image", 10), ("caption", 11), ("attribution", 11)]],
                        {},
                    ),
                    13: (
                        "wagtail.embeds.blocks.EmbedBlock",
                        (),
                        {
                            "help_text": "Insert a URL to embed. For example, https://www.youtube.com/watch?v=SGJFWirQ3ks",
                            "icon": "media",
                        },
                    ),
                    14: (
                        "wagtail.blocks.CharBlock",
                        (),
                        {"label": "Titre de la section"},
                    ),
                    15: (
                        "wagtail.blocks.RichTextBlock",
                        (),
                        {"label": "Paragraphe de la section"},
                    ),
                    16: (
                        "wagtail.blocks.PageChooserBlock",
                        (),
                        {"page_type": ["applis.ApplisPage"]},
                    ),
                    17: ("wagtail.blocks.ListBlock", (16,), {}),
                    18: (
                        "wagtail.blocks.StructBlock",
                        [
                            [
                                ("featured_title", 14),
                                ("featured_paragraph", 15),
                                ("featured_posts", 17),
                            ]
                        ],
                        {"group": "Sections"},
                    ),
                },
                help_text="Utilisez cette section pour lister vos projets et compétences.",
            ),
        ),
    ]
