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

Add Information Page #21

Open
wants to merge 42 commits into
base: main
Choose a base branch
from
Open

Conversation

sanjeevz3009
Copy link

@sanjeevz3009 sanjeevz3009 commented Nov 7, 2024

What is the context of this PR?

JIRA Ticket: https://jira.ons.gov.uk/browse/CMS-179

Create an Information Page model in Wagtail CMS to allow content editors to manage structured information pages.

Changes and Additions

  • HTML template created for the information page.
  • Django Model created for Information Page

How to review

  • Spin up the project in your local machine
  • Run the linters, code formatters and run the tests locally to make sure it's passing

Create an information page

  • Go to localhost:8000
  • Navigate to the Wagtail admin site localhost:8000/admin
  • Within Wagtail Admin -> Pages -> Home -> Add Child Page
  • Then you should be able to fill in the content of the information page and publish.

Untitled design

Screenshot 2024-11-07 at 17 30 10 Screenshot 2024-11-07 at 17 30 20

Information Page Example

Screenshot 2024-11-07 at 18 31 48

Follow-up Actions

List any follow-up actions (if applicable), like needed documentation updates or additional testing.

Copy link
Contributor

@zerolab zerolab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great start!

Added a few notes and suggestions as a first pass.

cms/jinja2/templates/pages/information_page.html Outdated Show resolved Hide resolved
cms/standard_pages/models.py Outdated Show resolved Hide resolved
cms/standard_pages/models.py Show resolved Hide resolved
cms/standard_pages/models.py Outdated Show resolved Hide resolved
cms/standard_pages/models.py Outdated Show resolved Hide resolved
cms/jinja2/templates/pages/information_page.html Outdated Show resolved Hide resolved
cms/jinja2/templates/pages/information_page.html Outdated Show resolved Hide resolved
@sanjeevz3009 sanjeevz3009 marked this pull request as ready for review November 7, 2024 17:38
@sanjeevz3009 sanjeevz3009 requested a review from a team as a code owner November 7, 2024 17:38
Copy link
Contributor

@zerolab zerolab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Contributor

@MebinAbraham MebinAbraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work both 👍

cms/static_src/sass/main.scss Outdated Show resolved Hide resolved
cms/release_calendar/models.py Outdated Show resolved Hide resolved
Copy link
Contributor

@zerolab zerolab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of small changes needed (but lovely first feature 💪🏼 )

cms/jinja2/templates/pages/information_page.html Outdated Show resolved Hide resolved
media/documents/file.txt Outdated Show resolved Hide resolved
Copy link
Contributor

@MebinAbraham MebinAbraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing else that's not already been raised.

👍

media/documents/file.txt Outdated Show resolved Hide resolved
cms/jinja2/templates/pages/information_page.html Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants