Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove o-resource-list_list and related ResourceList Wagtail cruft #8244

Merged
merged 4 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion cfgov/filing_instruction_guide/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
("expandable_group", organisms.ExpandableGroup()),
("expandable", organisms.Expandable()),
("video_player", organisms.VideoPlayer()),
("snippet_list", organisms.ResourceList()),
("raw_html_block", blocks.RawHTMLBlock(label="Raw HTML block")),
("faq_group", schema.FAQGroup()),
]
Expand Down

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion cfgov/unprocessed/css/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@
@import (less) 'organisms/mega-menu.less';
@import (less) 'organisms/post-preview.less';
@import (less) 'organisms/prefooter.less';
@import (less) 'organisms/resource-list.less';
@import (less) 'organisms/secondary-nav.less';
@import (less) 'organisms/sidebar-breakout.less';
@import (less) 'organisms/video-player.less';
Expand Down
57 changes: 0 additions & 57 deletions cfgov/unprocessed/css/organisms/resource-list.less

This file was deleted.

67 changes: 0 additions & 67 deletions cfgov/v1/atomic_elements/organisms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1002,73 +1002,6 @@ class Media:
css = ["mortgage-performance-trends.css"]


class ResourceList(blocks.StructBlock):
heading = blocks.CharBlock(required=False)
body = blocks.RichTextBlock(required=False)
has_top_rule_line = blocks.BooleanBlock(
default=False,
required=False,
help_text="Check this to add a horizontal rule line above this block.",
)
image = atoms.ImageBasic(required=False)
actions_column_width = blocks.ChoiceBlock(
label='Width of "Actions" column',
required=False,
help_text="Choose the width in % that you wish to set "
"the Actions column in a resource list.",
choices=[
("70", "70%"),
("66", "66%"),
("60", "60%"),
("50", "50%"),
("40", "40%"),
("33", "33%"),
("30", "30%"),
],
)
show_thumbnails = blocks.BooleanBlock(
required=False,
help_text="If selected, each resource in the list will include a "
"150px-wide image from the resource's thumbnail field.",
)
actions = blocks.ListBlock(
blocks.StructBlock(
[
(
"link_label",
blocks.CharBlock(
help_text='E.g., "Download" or "Order free prints"'
),
),
(
"snippet_field",
blocks.ChoiceBlock(
choices=[
("related_file", "Related file"),
("alternate_file", "Alternate file"),
("link", "Link"),
("alternate_link", "Alternate link"),
],
help_text="The field that the action link should point to",
),
),
]
)
)
tags = blocks.ListBlock(
blocks.CharBlock(label="Tag"),
help_text="Enter tag names to filter the snippets. For a snippet to "
"match and be output in the list, it must have been tagged "
"with all of the tag names listed here. The tag names "
"are case-insensitive.",
)

class Meta:
label = "Resource List"
icon = "table"
template = "v1/includes/organisms/resource-list.html"


class DataSnapshot(blocks.StructBlock):
"""A basic Data Snapshot object."""

Expand Down
30 changes: 30 additions & 0 deletions cfgov/v1/migrations/0026_remove_resource_list.py

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion cfgov/v1/models/browse_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ class BrowsePage(AbstractBrowsePage):
("expandable", organisms.Expandable()),
("well", organisms.Well()),
("video_player", organisms.VideoPlayer()),
("snippet_list", organisms.ResourceList()),
("table", organisms.Table()),
("raw_html_block", blocks.RawHTMLBlock(label="Raw HTML block")),
("chart_block", organisms.ChartBlock()),
Expand Down
1 change: 0 additions & 1 deletion cfgov/v1/models/sublanding_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class SublandingPage(CFGOVPage):
("full_width_text", organisms.FullWidthText()),
("info_unit_group", organisms.InfoUnitGroup()),
("well", organisms.Well()),
("snippet_list", organisms.ResourceList()),
("post_preview_snapshot", organisms.PostPreviewSnapshot()),
("contact", organisms.MainContactInfo()),
("table", organisms.Table()),
Expand Down
Loading