-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
995b644
commit 2cd8ed2
Showing
3 changed files
with
262 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,230 @@ | ||
# Generated by Django 4.2.2 on 2024-03-21 17:08 | ||
|
||
import wagtail.blocks | ||
import wagtail.fields | ||
import wagtail.images.blocks | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("cms", "0010_remove_homepage_banner_cta_id_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="homepage", | ||
name="content", | ||
field=wagtail.fields.StreamField( | ||
[ | ||
("website_stats", wagtail.blocks.StructBlock([])), | ||
( | ||
"section_they_publish_tenders", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"title", | ||
wagtail.blocks.CharBlock( | ||
default="Ils ont publié un besoin sur le marché", max_length=120, required=True | ||
), | ||
) | ||
] | ||
), | ||
), | ||
( | ||
"section_studies_cases_tenders", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"title", | ||
wagtail.blocks.CharBlock( | ||
default="100% des besoins ont reçu des réponses en 24h", | ||
max_length=120, | ||
required=True, | ||
), | ||
), | ||
( | ||
"subtitle", | ||
wagtail.blocks.CharBlock( | ||
default="Gagnez du temps en utilisant le marché.", | ||
max_length=120, | ||
required=True, | ||
), | ||
), | ||
] | ||
), | ||
), | ||
( | ||
"section_our_siaes", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"title", | ||
wagtail.blocks.CharBlock( | ||
default="Les prestataires inclusifs, des partenaires d'excellence", | ||
max_length=60, | ||
required=True, | ||
), | ||
), | ||
( | ||
"subtitle", | ||
wagtail.blocks.RichTextBlock( | ||
default="\n Faire appel à nos 8500 prestataires inclusifs, c'est la garantie d'être accompagné\n par des professionnels reconnus et certifiés dans leur domaine.\n ", # noqa | ||
features=["bold", "italic"], | ||
required=True, | ||
), | ||
), | ||
] | ||
), | ||
), | ||
( | ||
"section_our_ressources", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"title", | ||
wagtail.blocks.CharBlock(default="Nos ressources", max_length=120, required=True), | ||
) | ||
] | ||
), | ||
), | ||
( | ||
"section_what_find_here", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"title", | ||
wagtail.blocks.CharBlock(default="Sur le marché", max_length=120, required=True), | ||
), | ||
( | ||
"cards", | ||
wagtail.blocks.StreamBlock( | ||
[ | ||
( | ||
"card", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"ico", | ||
wagtail.blocks.CharBlock( | ||
help_text="Ico du thème (Ex: ico-bicro-marche-recyclage)", # noqa | ||
label="Icone bicro", | ||
max_length=100, | ||
required=True, | ||
), | ||
), | ||
( | ||
"text", | ||
wagtail.blocks.CharBlock(max_length=200, required=True), | ||
), | ||
] | ||
), | ||
) | ||
], | ||
max_num=3, | ||
min_num=3, | ||
), | ||
), | ||
] | ||
), | ||
), | ||
( | ||
"section_our_partners", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"title", | ||
wagtail.blocks.CharBlock( | ||
default="Les partenaires du marché", max_length=120, required=True | ||
), | ||
), | ||
( | ||
"images_with_link", | ||
wagtail.blocks.StreamBlock( | ||
[ | ||
( | ||
"images", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"image", | ||
wagtail.images.blocks.ImageChooserBlock(required=True), | ||
), | ||
("external_link", wagtail.blocks.URLBlock(required=True)), | ||
] | ||
), | ||
) | ||
], | ||
max_num=8, | ||
min_num=8, | ||
), | ||
), | ||
] | ||
), | ||
), | ||
( | ||
"section_our_features", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"title", | ||
wagtail.blocks.CharBlock( | ||
default="Une solution complète pour vos achats socialement responsables", | ||
max_length=120, | ||
required=True, | ||
), | ||
), | ||
( | ||
"constats", | ||
wagtail.blocks.StreamBlock( | ||
[ | ||
( | ||
"feature", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"title", | ||
wagtail.blocks.CharBlock(max_length=60, required=True), | ||
), | ||
( | ||
"subtitle", | ||
wagtail.blocks.RichTextBlock( | ||
features=["bold", "italic"], required=True | ||
), | ||
), | ||
( | ||
"image", | ||
wagtail.images.blocks.ImageChooserBlock(required=True), | ||
), | ||
("url", wagtail.blocks.URLBlock(required=True)), | ||
] | ||
), | ||
) | ||
], | ||
min_num=1, | ||
), | ||
), | ||
] | ||
), | ||
), | ||
( | ||
"section_why_call_siaes", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"title", | ||
wagtail.blocks.CharBlock( | ||
default="Pourquoi faire appel à un prestataire inclusif ?", | ||
max_length=120, | ||
required=True, | ||
), | ||
) | ||
] | ||
), | ||
), | ||
], | ||
null=True, | ||
use_json_field=True, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters