Skip to content

Pardot forms#1673

Open
mwvolo wants to merge 3 commits into
mainfrom
pardot-forms
Open

Pardot forms#1673
mwvolo wants to merge 3 commits into
mainfrom
pardot-forms

Conversation

@mwvolo
Copy link
Copy Markdown
Member

@mwvolo mwvolo commented Mar 18, 2026

i'm just playing around. can we marry the pardot (marketing) forms with the flex pages?
this would certainly need some frontend work

Copilot AI review requested due to automatic review settings March 18, 2026 05:36
@mwvolo mwvolo added the wip label Mar 18, 2026
Comment thread pages/views.py
@@ -0,0 +1,57 @@
import json

from django.utils import timezone
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new Wagtail page type to represent Pardot-backed forms and enables embedding those forms into existing Flex/Root page StreamField sections, along with an API endpoint to accept and persist submissions as Wagtail FormSubmission records.

Changes:

  • Introduces PardotFormPage / PardotFormField models and exposes form configuration via the Wagtail API.
  • Adds a pardot_form StreamField block for embedding selected PardotFormPage instances inside section content.
  • Implements a POST submission endpoint and adds unit tests + migrations.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
pages/views.py Adds DRF POST endpoint to accept submissions and store them as Wagtail form submissions.
pages/models.py Adds Pardot form models + API serialization and a StreamField embed block; allows Flex pages to contain Pardot form pages.
pages/tests.py Adds tests for new page types, API serialization, and the submission endpoint.
pages/migrations/0166_pardotformpage_pardotformfield.py Creates DB tables for Pardot form pages and fields.
pages/migrations/0167_alter_rootpage_body.py Updates RootPage StreamField definition to include the new pardot_form block in section content.
openstax/urls.py Wires the new submission endpoint into the URLconf.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pages/views.py Outdated
Comment thread pages/views.py
Comment thread pages/views.py
Comment thread pages/views.py Outdated
Comment thread pages/views.py Outdated
Comment thread pages/tests.py Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants