Skip to content

[Content Security] Extract the application affiliation form into a component - #15096

Draft
manu-gurudath wants to merge 1 commit into
csp-alpine-registerfrom
csp-alpine-affiliation-form
Draft

manu-gurudath wants to merge 1 commit into
csp-alpine-registerfrom
csp-alpine-affiliation-form

Conversation

@manu-gurudath

@manu-gurudath manu-gurudath commented Sep 19, 2026

Copy link
Copy Markdown
Member

The "you have an unsaved affiliation" warning moves out of the x-init into an application_affiliation_form component.

Needs #15084 first.

🤖 Generated with Claude Code

https://claude.ai/code/session_01A8Q14mneHoqkzhDrgWFBFN

…mponent

Choosing an affiliation type without saving warns on the way out, via an
`x-init` that set a `$watch` with an arrow function and stamped
`data-turbo-confirm` onto the footer's submit button with `document`. It moves
into an `application_affiliation_form` component.

Arrow functions and `document` are both out of reach of Alpine's CSP build
from a directive.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A8Q14mneHoqkzhDrgWFBFN

This branch has not been deployed

No deployments
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.

2 participants