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
Add parent email confirmation when added to a student account #34015
Merged
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
0cf29e6
Add parent email and preview
bethanyaconnor b3e40a4
Add unit test for parent confirmation email
bethanyaconnor b347b88
Update parent_email_added_subject
bethanyaconnor 4ebf1c2
Fix failing test
bethanyaconnor de770d3
Merge branch 'parent-email-confirmation' of github.com:code-dot-org/c…
bethanyaconnor a437e0b
Small cleanups
bethanyaconnor File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
dashboard/app/views/parent_mailer/parent_email_added_to_student_account.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
%p | ||
Welcome to Code.org! You have successfully linked your email to your child’s account. | ||
We're thrilled that you have taken the next step in supporting #{@student.name} in their learning and exploration of | ||
computer science. If you are not #{@student.name}’s parent, please reply to this email or contact support@code.org. | ||
|
||
%h3 | ||
Looking for a place to get started? | ||
%p | ||
We’ve collected a set of | ||
%a{href:"https://code.org/athome"}resources for learning at home, | ||
including fun introductory tutorials, short educational videos, express courses, and open-ended projects. | ||
|
||
%p | ||
You and your student can also participate in Code Break each Wednesday at 10 am PST / 1 pm ET. | ||
Code Break is a live, interactive classroom with weekly challenges to engage students of all abilities, | ||
even those without computers. Learn more about | ||
%a{href:"https://code.org/break"}Code Break. | ||
|
||
%p | ||
Don’t have a computer? We can suggest some options that work great on mobile phones or tablets too! | ||
%a{href:"https://code.org/athom#apps"}See smartphone options. | ||
|
||
%h3 | ||
Keep track of what your child is learning | ||
%p | ||
Parent excitement and involvement can help keep kids motivated as they learn - try checking in with your student when | ||
you can to see what they’ve built. Encourage them to browse the | ||
%a{href:"https://studio.code.org/projects/public"}games or artwork project gallery | ||
and get inspired to make their own code artwork. You can print it and hang it up, email it to a relative, or share it on social media. | ||
%a{href:"https://support.code.org/hc/en-us/articles/360041539831-How-can-I-keep-track-of-what-my-child-is-working-on-on-Code-org-"}Learn more. | ||
|
||
%h3 | ||
Stay involved with CS Education | ||
%p | ||
Code.org believes every student in every school should have the opportunity to learn computer science. | ||
Our coding platform and K-12 computer science curriculum are the most broadly used in the world, | ||
and generous donors make them free for your student. Please consider | ||
%a{href:"https://donate.code.org/campaign/support-computer-science-education/c172233"}supporting our work | ||
to enable more children to learn for free. And explore other | ||
%a{href:"https://code.org/help"}ways to get involved. | ||
|
||
%p | ||
Thank you for supporting and encouraging your child’s learning! | ||
|
||
%p | ||
Hadi Partovi | ||
%br | ||
Founder, Code.org | ||
|
||
%p | ||
P.S. We take student privacy very seriously at Code.org. Read our | ||
%a{href:"https://code.org/privacy"}privacy policy | ||
for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -250,6 +250,7 @@ en: | |
%{name} | ||
parent_mailer: | ||
student_associated_subject: 'Login information for Code.org' | ||
parent_email_added_subject: 'Welcome to Code.org' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add an exclamation point to the end of the subject? 'Welcome to Code.org!' (same as the teacher email) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done! |
||
teacher_mailer: | ||
new_teacher_subject: 'Welcome to Code.org!' | ||
delete_teacher_subject: 'Code.org notification: Your account has been deleted' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This can be viewed on non-production environments at /rails/mailers/parent_mailer | ||
class ParentMailerPreview < ActionMailer::Preview | ||
include FactoryGirl::Syntax::Methods | ||
|
||
def parent_email_added_to_student_account_preview | ||
student = build :student | ||
ParentMailer.parent_email_added_to_student_account('fake_email@fake.com', student) | ||
end | ||
end |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!