-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
ET-104 add superscript for market articles richtext
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,173 @@ | ||
# Generated by Django 4.2.11 on 2024-05-02 13:21 | ||
|
||
import wagtail.blocks | ||
import wagtail.fields | ||
import wagtail.images.blocks | ||
import wagtail.snippets.blocks | ||
from django.db import migrations | ||
|
||
import core.blocks | ||
import core.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('domestic', '0059_findabuyerpage'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='articlepage', | ||
name='article_body', | ||
field=wagtail.fields.StreamField( | ||
[ | ||
( | ||
'text', | ||
wagtail.blocks.RichTextBlock( | ||
features=[ | ||
'bold', | ||
'italic', | ||
'h2', | ||
'h3', | ||
'h4', | ||
'ol', | ||
'ul', | ||
'hr', | ||
'anchor-identifier', | ||
'embed', | ||
'link', | ||
'document-link', | ||
'image', | ||
'superscript', | ||
] | ||
), | ||
), | ||
( | ||
'image', | ||
wagtail.images.blocks.ImageChooserBlock( | ||
required=False, template='core/includes/_article_image.html' | ||
), | ||
), | ||
( | ||
'Video', | ||
wagtail.blocks.StructBlock( | ||
[('video', core.blocks.MediaChooserBlock(label='Video'))], | ||
template='core/includes/_article_video.html', | ||
), | ||
), | ||
( | ||
'Columns', | ||
wagtail.blocks.StreamBlock( | ||
[ | ||
( | ||
'column', | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
'title', | ||
wagtail.blocks.CharBlock(label='Title', max_length=255, required=False), | ||
), | ||
( | ||
'image', | ||
wagtail.images.blocks.ImageChooserBlock( | ||
label='Hero Image', required=False | ||
), | ||
), | ||
( | ||
'description', | ||
wagtail.blocks.RichTextBlock( | ||
features=[ | ||
'anchor-identifier', | ||
'h2', | ||
'h3', | ||
'h4', | ||
'bold', | ||
'italic', | ||
'ol', | ||
'ul', | ||
'hr', | ||
'link', | ||
'document-link', | ||
], | ||
label='Description', | ||
required=False, | ||
), | ||
), | ||
('link', wagtail.blocks.URLBlock(label='Title link', required=False)), | ||
] | ||
), | ||
) | ||
], | ||
help_text='Add two or three columns text', | ||
max_num=3, | ||
min_num=3, | ||
template='core/includes/_columns.html', | ||
), | ||
), | ||
( | ||
'cta', | ||
wagtail.blocks.StructBlock( | ||
[ | ||
('title', wagtail.blocks.CharBlock(label='Title', max_length=255, required=True)), | ||
('teaser', wagtail.blocks.TextBlock(label='Teaser', max_length=255, required=True)), | ||
( | ||
'link_label', | ||
wagtail.blocks.CharBlock(label='Link label', max_length=255, required=True), | ||
), | ||
('link', wagtail.blocks.CharBlock(label='Link', max_length=255, required=True)), | ||
], | ||
template='domestic/blocks/cta.html', | ||
), | ||
), | ||
( | ||
'pull_quote', | ||
wagtail.blocks.StructBlock( | ||
[ | ||
('quote', wagtail.blocks.TextBlock()), | ||
( | ||
'attribution', | ||
wagtail.blocks.CharBlock(label='Who said it?', max_length=255, required=False), | ||
), | ||
('role', wagtail.blocks.CharBlock(label='Their role', max_length=255, required=False)), | ||
( | ||
'organisation', | ||
wagtail.blocks.CharBlock( | ||
label='Their organisation', max_length=255, required=False | ||
), | ||
), | ||
( | ||
'organisation_link', | ||
wagtail.blocks.URLBlock( | ||
label='Link to organisation site', max_length=255, required=False | ||
), | ||
), | ||
], | ||
template='domestic/blocks/pull_quote_block.html', | ||
), | ||
), | ||
('data_table', core.blocks.DataTableBlock()), | ||
( | ||
'content_module', | ||
wagtail.snippets.blocks.SnippetChooserBlock( | ||
core.models.ContentModule, template='domestic/blocks/article_snippet.html' | ||
), | ||
), | ||
( | ||
'mounted_blocks', | ||
wagtail.blocks.StructBlock( | ||
[ | ||
('block_1', wagtail.blocks.RichTextBlock()), | ||
('block_2', wagtail.blocks.RichTextBlock(required=False)), | ||
], | ||
icon='arrow-right', | ||
template='domestic/blocks/mounted_block.html', | ||
), | ||
), | ||
], | ||
blank=True, | ||
null=True, | ||
use_json_field=True, | ||
), | ||
), | ||
] |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.