# Generated by Django 4.2.13 on 2025-05-28 07:29

from django.db import migrations
import wagtail.fields


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

    operations = [
        migrations.AlterField(
            model_name="standardpage",
            name="featured",
            field=wagtail.fields.StreamField(
                [
                    ("heading_block", 2),
                    ("paragraph_block", 3),
                    ("alert_block", 7),
                    ("image_block", 10),
                    ("embed_block", 11),
                    ("featured_posts", 16),
                ],
                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",
                        [],
                        {
                            "choices": [
                                ("alert-sm", "Petit"),
                                ("alert-lg", "Grand"),
                                ("alert-dismissible", "Réductible"),
                            ]
                        },
                    ),
                    6: (
                        "wagtail.blocks.CharBlock",
                        (),
                        {"features": ["bold", "italic", "link"]},
                    ),
                    7: (
                        "wagtail.blocks.StructBlock",
                        [[("alert_type", 4), ("alert_options", 5), ("alert_body", 6)]],
                        {},
                    ),
                    8: (
                        "wagtail.images.blocks.ImageChooserBlock",
                        (),
                        {"required": True},
                    ),
                    9: ("wagtail.blocks.CharBlock", (), {"required": False}),
                    10: (
                        "wagtail.blocks.StructBlock",
                        [[("image", 8), ("caption", 9), ("attribution", 9)]],
                        {},
                    ),
                    11: (
                        "wagtail.embeds.blocks.EmbedBlock",
                        (),
                        {
                            "help_text": "Insert a URL to embed. For example, https://www.youtube.com/watch?v=SGJFWirQ3ks",
                            "icon": "media",
                        },
                    ),
                    12: ("wagtail.blocks.CharBlock", (), {}),
                    13: (
                        "wagtail.blocks.RichTextBlock",
                        (),
                        {"features": ["bold", "italic", "link"], "required": False},
                    ),
                    14: (
                        "wagtail.blocks.PageChooserBlock",
                        (),
                        {"page_type": ["applis.ApplisPage"]},
                    ),
                    15: ("wagtail.blocks.ListBlock", (14,), {}),
                    16: (
                        "wagtail.blocks.StructBlock",
                        [[("heading", 12), ("text", 13), ("posts", 15)]],
                        {"group": "Sections"},
                    ),
                },
                help_text="Utilisez cette section pour lister vos projets et compétences.",
            ),
        ),
    ]
