# Generated by Django 4.2.13 on 2025-05-28 06:58

from django.db import migrations, models
import django.db.models.deletion
import wagtail.fields


class Migration(migrations.Migration):
    initial = True

    dependencies = [
        ("wagtailcore", "0094_alter_page_locale"),
    ]

    operations = [
        migrations.CreateModel(
            name="HomePage",
            fields=[
                (
                    "page_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="wagtailcore.page",
                    ),
                ),
                (
                    "hero",
                    wagtail.fields.StreamField(
                        [("hero01", 2), ("hero02", 7)],
                        blank=True,
                        block_lookup={
                            0: (
                                "wagtail.blocks.CharBlock",
                                (),
                                {"help_text": "Le h1 à afficher.", "required": True},
                            ),
                            1: (
                                "wagtail.blocks.CharBlock",
                                (),
                                {
                                    "help_text": "Le sous-titre à afficher.",
                                    "required": True,
                                },
                            ),
                            2: (
                                "wagtail.blocks.StructBlock",
                                [[("title", 0), ("baseline", 1)]],
                                {},
                            ),
                            3: (
                                "wagtail.blocks.CharBlock",
                                (),
                                {
                                    "help_text": "Le sur-titre à afficher.",
                                    "required": True,
                                },
                            ),
                            4: ("wagtail.images.blocks.ImageChooserBlock", (), {}),
                            5: (
                                "wagtail.blocks.StructBlock",
                                [
                                    [
                                        ("title", 0),
                                        ("upline", 3),
                                        ("baseline", 1),
                                        ("image", 4),
                                    ]
                                ],
                                {},
                            ),
                            6: (
                                "wagtail.blocks.ListBlock",
                                (5,),
                                {"help_text": "Le h2 <UNK> afficher.", "label": ""},
                            ),
                            7: ("wagtail.blocks.StructBlock", [[("slideshow", 6)]], {}),
                        },
                        help_text="Sélectionnez un seul bloc Hero à afficher sur la page d'accueil.",
                        null=True,
                        verbose_name="Hero",
                    ),
                ),
                (
                    "main_content",
                    wagtail.fields.StreamField(
                        [
                            ("cta", 4),
                            ("favorite_pages", 7),
                            ("featured_pages", 17),
                            ("child_pages", 19),
                        ],
                        blank=True,
                        block_lookup={
                            0: (
                                "wagtail.blocks.CharBlock",
                                (),
                                {
                                    "blank": True,
                                    "help_text": "Texte à afficher sur le bouton d'appel à l'action",
                                    "max_length": 255,
                                    "verbose_name": "Appel à action",
                                },
                            ),
                            1: (
                                "wagtail.blocks.PageChooserBlock",
                                (),
                                {
                                    "help_text": "Choisissez une page à laquelle lier pour l'Appel à l'action",
                                    "required": True,
                                },
                            ),
                            2: (
                                "wagtail.blocks.RichTextBlock",
                                (),
                                {
                                    "blank": True,
                                    "help_text": "Le texte à côté du bouton",
                                },
                            ),
                            3: (
                                "wagtail.blocks.ChoiceBlock",
                                [],
                                {
                                    "choices": [
                                        ("primary", "Couleur principale"),
                                        ("secondary", "Couleur secondaire"),
                                        ("tertiary", "Couleur tertiaire"),
                                        ("quaternary", "Couleur quaternaire"),
                                    ],
                                    "help_text": "Sélectionnez la couleur du bouton CTA",
                                    "label": "Couleur du CTA",
                                    "required": False,
                                },
                            ),
                            4: (
                                "wagtail.blocks.StructBlock",
                                [
                                    [
                                        ("intro_cta", 0),
                                        ("intro_cta_link", 1),
                                        ("intro_cta_text", 2),
                                        ("intro_cta_colour", 3),
                                    ]
                                ],
                                {},
                            ),
                            5: (
                                "wagtail.blocks.CharBlock",
                                (),
                                {
                                    "help_text": "Nom de la catégorie (tag) à filtrer, tel qu'il apparaît dans l'admin.",
                                    "required": True,
                                    "verbose_name": "Catégorie",
                                },
                            ),
                            6: (
                                "wagtail.blocks.IntegerBlock",
                                (),
                                {
                                    "default": 5,
                                    "help_text": "Nombre maximum d'applications à afficher (par défaut\u202f: 5).",
                                    "required": False,
                                    "verbose_name": "Limite",
                                },
                            ),
                            7: (
                                "wagtail.blocks.StructBlock",
                                [[("category", 5), ("limit", 6)]],
                                {},
                            ),
                            8: (
                                "wagtail.blocks.CharBlock",
                                (),
                                {"label": "Titre de la section"},
                            ),
                            9: (
                                "wagtail.blocks.RichTextBlock",
                                (),
                                {"label": "Paragraphe de la section"},
                            ),
                            10: (
                                "wagtail.blocks.CharBlock",
                                (),
                                {
                                    "help_text": "Titre du post à afficher.",
                                    "required": True,
                                    "verbose_name": "Titre",
                                },
                            ),
                            11: (
                                "wagtail.blocks.CharBlock",
                                (),
                                {
                                    "help_text": "Icône à afficher sous la forme `fa fa-check`.",
                                    "required": True,
                                },
                            ),
                            12: (
                                "wagtail.blocks.RichTextBlock",
                                (),
                                {
                                    "help_text": "Description du post à afficher.",
                                    "required": True,
                                },
                            ),
                            13: (
                                "wagtail.blocks.PageChooserBlock",
                                (),
                                {
                                    "help_text": "Sélectionnez une page pour créer un lien.",
                                    "required": True,
                                },
                            ),
                            14: (
                                "wagtail.blocks.ChoiceBlock",
                                [],
                                {
                                    "choices": [
                                        ("primary", "Couleur principale"),
                                        ("secondary", "Couleur secondaire"),
                                        ("tertiary", "Couleur tertiaire"),
                                        ("quaternary", "Couleur quaternaire"),
                                    ],
                                    "help_text": "Sélectionnez la couleur du post",
                                    "label": "Couleur du post",
                                    "required": False,
                                },
                            ),
                            15: (
                                "wagtail.blocks.StructBlock",
                                [
                                    [
                                        ("title", 10),
                                        ("icon", 11),
                                        ("description", 12),
                                        ("featured_post", 13),
                                        ("colour", 14),
                                    ]
                                ],
                                {},
                            ),
                            16: (
                                "wagtail.blocks.ListBlock",
                                (15,),
                                {
                                    "help_text": "Liste n'importe quel type de pages du site et [à venir : ajuste automatiquement le nombre de colonne bootstrap en fonction du nombre de pages affichées.]",
                                    "label": "Pages mise en avant",
                                },
                            ),
                            17: (
                                "wagtail.blocks.StructBlock",
                                [
                                    [
                                        ("featured_title", 8),
                                        ("featured_paragraph", 9),
                                        ("featured_posts", 16),
                                    ]
                                ],
                                {},
                            ),
                            18: (
                                "wagtail.blocks.PageChooserBlock",
                                (),
                                {
                                    "help_text": "Sélectionnez la page dont vous souhaitez afficher les enfants",
                                    "required": True,
                                },
                            ),
                            19: (
                                "wagtail.blocks.StructBlock",
                                [[("parent_page", 18)]],
                                {},
                            ),
                        },
                        help_text="Arrangez les différents blocks en fonction des besoins",
                        null=True,
                        verbose_name="Section principale",
                    ),
                ),
            ],
            options={
                "abstract": False,
            },
            bases=("wagtailcore.page",),
        ),
    ]
