- % if verification_status['status'] == VERIFY_STATUS_NEED_TO_VERIFY:
-
- % if verification_status['days_until_deadline'] is not None:
-
${_('Verification not yet complete.')}
-
${ungettext(
- 'You only have {days} day left to verify for this course.',
- 'You only have {days} days left to verify for this course.',
- verification_status['days_until_deadline']
- ).format(days=verification_status['days_until_deadline'])}
+ % else:
+ % if show_consent_link:
+ <%include file="_dashboard_show_consent.html" args="course_overview=course_overview, course_target=course_target, enrollment=enrollment, enterprise_customer_name=enterprise_customer_name"/>
+ %endif
+
+ % if verification_status.get('status') in [VERIFY_STATUS_NEED_TO_VERIFY, VERIFY_STATUS_SUBMITTED, VERIFY_STATUS_RESUBMITTED, VERIFY_STATUS_APPROVED, VERIFY_STATUS_NEED_TO_REVERIFY]:
+
+ % if verification_status['status'] == VERIFY_STATUS_NEED_TO_VERIFY:
+
+ % if verification_status['days_until_deadline'] is not None:
+
${_('Verification not yet complete.')}
+
${ungettext(
+ 'You only have {days} day left to verify for this course.',
+ 'You only have {days} days left to verify for this course.',
+ verification_status['days_until_deadline']
+ ).format(days=verification_status['days_until_deadline'])}
${_('Your current verification will expire soon!')}
+
${_('You have submitted your reverification information. You will see a message on your dashboard when the verification process is complete (usually within 1-2 days).')}
${_('Your current verification will expire soon!')}
-
${_('You have submitted your reverification information. You will see a message on your dashboard when the verification process is complete (usually within 1-2 days).')}
${_('You have successfully verified your ID with edX')}
- % if verification_status.get('verification_good_until') is not None:
-
${_('Your current verification is effective until {date}.').format(date=verification_status['verification_good_until'])}
+ % elif verification_status['status'] == VERIFY_STATUS_NEED_TO_REVERIFY:
+
${_('Your current verification will expire soon.')}
+ ## Translators: start_link and end_link will be replaced with HTML tags;
+ ## please do not translate these.
+
${Text(_('Your current verification will expire in {days} days. {start_link}Re-verify your identity now{end_link} using a webcam and a government-issued photo ID.')).format(
+ start_link=HTML('').format(href=reverse('verify_student_reverify')),
+ end_link=HTML(''),
+ days=settings.VERIFY_STUDENT.get("EXPIRING_SOON_WINDOW")
+ )}
+
${_('Your current verification will expire soon.')}
- ## Translators: start_link and end_link will be replaced with HTML tags;
- ## please do not translate these.
-
${Text(_('Your current verification will expire in {days} days. {start_link}Re-verify your identity now{end_link} using a webcam and a government-issued photo ID.')).format(
- start_link=HTML('').format(href=reverse('verify_student_reverify')),
- end_link=HTML(''),
- days=settings.VERIFY_STUDENT.get("EXPIRING_SOON_WINDOW")
- )}
-
- % endif
-
+
% endif
- % if course_mode_info['show_upsell'] and not is_course_blocked:
+ % if course_mode_info['show_upsell']:
-
-
-
- ${_("Pursue a {cert_name_long} to highlight the knowledge and skills you gain in this course.").format(cert_name_long=cert_name_long)}
-
- ${Text(_("It's official. It's easily shareable. "
- "It's a proven motivator to complete the course. {line_break}"
- "{link_start}Learn more about the verified {cert_name_long}{link_end}.")).format(
- line_break=HTML(' '),
- link_start=HTML('').format(
- marketing_link('WHAT_IS_VERIFIED_CERT'),
- enrollment.course_id
- ),
- link_end=HTML(''),
- cert_name_long=cert_name_long
- )}
-
+
+ ${_("Pursue a {cert_name_long} to highlight the knowledge and skills you gain in this course.").format(cert_name_long=cert_name_long)}
+
+ ${Text(_("It's official. It's easily shareable. "
+ "It's a proven motivator to complete the course. {line_break}"
+ "{link_start}Learn more about the verified {cert_name_long}{link_end}.")).format(
+ line_break=HTML(' '),
+ link_start=HTML('').format(
+ marketing_link('WHAT_IS_VERIFIED_CERT'),
+ enrollment.course_id
+ ),
+ link_end=HTML(''),
+ cert_name_long=cert_name_long
+ )}
+
- %endif
-
+ % endif
+ % endif
% if course_requirements:
## Multiple pre-requisite courses are not supported on frontend that's why we are pulling first element
diff --git a/lms/templates/dashboard/_dashboard_show_consent.html b/lms/templates/dashboard/_dashboard_show_consent.html
new file mode 100644
index 0000000000..0217cb44ba
--- /dev/null
+++ b/lms/templates/dashboard/_dashboard_show_consent.html
@@ -0,0 +1,25 @@
+<%page expression_filter="h" args="course_overview, course_target, enrollment, enterprise_customer_name" />
+<%!
+from django.utils.translation import ugettext as _
+%>
+<%namespace name='static' file='../static_content.html'/>
+
+
+
+
+
+ ${_("Consent to share your data")}
+
+
+ ${_("To access this course, you must first consent to share your learning achievements with {enterprise_customer_name}.").format(enterprise_customer_name=enterprise_customer_name)}
+