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

Program certificate for different program types #2096

Merged
merged 2 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cms/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,9 @@ def get_context(self, request, *args, **kwargs):
"end_date": end_date,
"CEUs": CEUs,
"is_program_certificate": is_program_certificate,
"program_type": self.parent.program.program_type
if is_program_certificate
else "",
}
else:
raise Http404()
Expand Down
2 changes: 1 addition & 1 deletion cms/templates/certificate_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h2>Congratulations, {{ learner_name }}!</h2>
</div>
<span class="certify-text">This is to certify that</span>
<span class="certify-name">{{ learner_name }}</span>
<span class="success-text">has successfully completed {% if is_program_certificate %}all courses and received passing grades to earn a MicroMasters program certificate in{% endif %}</span>
<span class="success-text">has successfully completed {% if is_program_certificate %}all courses and received passing grades to earn a {{ program_type }} program certificate in{% endif %}</span>
<span class="degree-text">{{ product_name }}</span>
{% if is_program_certificate %}
<span class="success-text">a program of study offered by MITx, an online learning initiative of the Massachusetts Institute of Technology<br></span>
Expand Down
Loading