From 8442f6e09320233e4b168000247904d0cecf425f Mon Sep 17 00:00:00 2001 From: Brian Talbot Date: Mon, 28 Oct 2013 13:42:30 -0400 Subject: [PATCH] LMS: adds conditional content/instructions for registration upgrade flow --- common/templates/course_modes/choose.html | 43 +++++++++++++++---- lms/static/sass/elements/_typography.scss | 1 + lms/static/sass/views/_verification.scss | 10 +---- .../verify_student/_verification_header.html | 6 ++- .../verify_student/_verification_support.html | 15 +++++-- .../verify_student/photo_verification.html | 19 ++++++-- .../verify_student/show_requirements.html | 35 ++++++++++++--- 7 files changed, 97 insertions(+), 32 deletions(-) diff --git a/common/templates/course_modes/choose.html b/common/templates/course_modes/choose.html index 5aa65a04d7..67cc0a301d 100644 --- a/common/templates/course_modes/choose.html +++ b/common/templates/course_modes/choose.html @@ -3,7 +3,15 @@ <%inherit file="../main.html" /> <%block name="bodyclass">register verification-process step-select-track ${'is-upgrading' if upgrade else ''} -<%block name="title">${_("Register for {} | Choose Your Track").format(course_name)} +<%block name="title"> + + %if upgrade: + ${_("Upgrade Your Registration for {} | Choose Your Track").format(course_name)} + %else: + ${_("Register for {} | Choose Your Track").format(course_name)} + %endif + + <%block name="js_extra"> @@ -172,7 +180,12 @@
${_("What do you do with this picture?")}
${_("We only use it to verify your identity. It is not displayed anywhere.")}
${_("What if my camera isn't working?")}
-
${_("You can always {a_start} audit the course for free {a_end} without verifying.").format(a_start='', a_end="")}
+ + %if upgrade: +
${_("You can always continue to audit the course without verifying.")}
+ %else: +
${_("You can always {a_start} audit the course for free {a_end} without verifying.").format(a_start='', a_end="")}
+ %endif diff --git a/lms/templates/verify_student/show_requirements.html b/lms/templates/verify_student/show_requirements.html index 4acd8b645a..3280fec89a 100644 --- a/lms/templates/verify_student/show_requirements.html +++ b/lms/templates/verify_student/show_requirements.html @@ -1,8 +1,16 @@ <%! from django.utils.translation import ugettext as _ %> <%! from django.core.urlresolvers import reverse %> <%inherit file="../main.html" /> -<%block name="bodyclass">register verification-process step-requirements -<%block name="title">${_("Register for {}").format(course_name)} +<%block name="bodyclass">register verification-process step-requirements ${'is-upgrading' if upgrade else ''} +<%block name="title"> + + %if upgrade: + ${_("Upgrade Your Registration for {}").format(course_name)} + %else: + ${_("Register for {}").format(course_name)} + %endif + + <%block name="content"> %if is_not_active: @@ -71,11 +79,19 @@
-

${_("What You Will Need to Register")}

+ %if upgrade: +

${_("What You Will Need to Upgrade")}

-
-

${_("There are three things you will need to register as an ID verified student:")}

-
+
+

${_("There are three things you will need to upgrade to being an ID verified student:")}

+
+ %else: +

${_("What You Will Need to Register")}

+ +
+

${_("There are three things you will need to register as an ID verified student:")}

+
+ %endif
    %if is_not_active: @@ -149,7 +165,12 @@