8000 [BUG] In PageContent admin first field isn't focused · Issue #7752 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content
[BUG] In PageContent admin first field isn't focused #7752
Closed
@jrief

Description

@jrief

Description

The <form>-element in template admin/cms/page/change_form.html has hard coded id="page_form" pointing to the wrong model.

Steps to reproduce

  • Edit a PageContent object using Django's admin.
  • Check the browser console, it states something like:
    Screenshot 2024-01-10 at 14 17 34
  • 5500

Reason is that the <form>-element in template change_form.html contains a hard coded id="page_form", but the edited model is of type page_content.

This btw. prevent to set the focus on the first field.

Using the same pattern as the super template fixes this.

Do you want to help fix this issue?

  • Yes, I want to help fix this issue and I will join #workgroup-pr-review on Slack to confirm with the community that a PR is welcome.
  • No, I only want to report the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0