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

Privacy: add opt-in to regional partner contact form #22338

Merged
merged 5 commits into from May 11, 2018

Conversation

breville
Copy link
Member

@breville breville commented May 10, 2018

Adds an email opt-in field to the form at https://studio.code.org/pd/regional_partner_contact/new

options

screenshot 2018-05-10 16 17 17

options when submit attempted

screenshot 2018-05-15 12 27 09

Thanks to @aoby for help on this.

def on_successful_create
EmailPreference.upsert!(
email: @contact_form.email,
opt_in: @contact_form.optin?,
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: should we be consistent with one word vs. 2? I prefer 2:

opt_in: @contact_form.opt_in?

@breville
Copy link
Member Author

I chose radio buttons here when I think I was supposed to do a dropdown, but that's kind of dependent on a/b testing anyway, so I'll leave it like this for now.

@breville breville merged commit ddfd5af into staging May 11, 2018
@breville breville deleted the privacy-regional-partner-contact-optin branch May 11, 2018 05:43
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.

None yet

2 participants