Skip to content

FormPage template references non-existent page.intro field in bakerydemo #741

Description

@Kkt04

Issue summary

Issue summary:
FormPage at bakerydemo/base/models.py:507 has no intro or introduction field, yet bakerydemo/templates/base/form_page.html:12-14 attempts to render page.intro. The {% if page.intro %} conditional is always False, meaning any introductory text configured for a form page is silently never displayed in the rendered template.

Steps to reproduce

  1. Open the Wagtail admin and create a new FormPage under the Bakery site.
  2. Add some body content — notice there's no Introduction field available in the editor.
  3. Visit the published FormPage on the frontend.
  4. Observe that the page.body content renders, but any expected introductory text area is missing from both the editor and the rendered page.
  5. Inspect bakerydemo/base/models.py:507 — FormPage has image, body, thank_you_text, and FormField inlines, but no intro or introduction field.
  6. Inspect bakerydemo/templates/base/form_page.html:12-14 — the template checks for {% if page.intro %} and renders it, but it's dead code since the field doesn't exist.

Additional information

No response

Can be reproduced

Yes, on a fresh Wagtail project

Technical details

  • Python version: Run python --version.
  • Django version: Look in your requirements.txt, or run pip show django | grep Version.
  • Wagtail version: Look at the bottom of the Settings menu in the Wagtail admin, or run pip show wagtail | grep Version:.
  • Browser version: You can use https://www.whatsmybrowser.org/ to find this out.

Working on this

If you would like to contribute to this issue, follow these steps:

  • Confirm that the issue is reproducible, either on a fresh Wagtail project or the bakerydemo.
  • Once confirmed, view our contributing guidelines, add a comment to the issue once you're ready to start.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions