Commit e9a2787b by Brian Talbot

LMS: adds conditional content/instructions for registration upgrade flow

parent 35ebdfdc
...@@ -3,7 +3,15 @@ ...@@ -3,7 +3,15 @@
<%inherit file="../main.html" /> <%inherit file="../main.html" />
<%block name="bodyclass">register verification-process step-select-track ${'is-upgrading' if upgrade else ''}</%block> <%block name="bodyclass">register verification-process step-select-track ${'is-upgrading' if upgrade else ''}</%block>
<%block name="title"><title>${_("Register for {} | Choose Your Track").format(course_name)}</title></%block> <%block name="title">
<title>
%if upgrade:
${_("Upgrade Your Registration for {} | Choose Your Track").format(course_name)}
%else:
${_("Register for {} | Choose Your Track").format(course_name)}
%endif
</title>
</%block>
<%block name="js_extra"> <%block name="js_extra">
<script type="text/javascript"> <script type="text/javascript">
...@@ -60,9 +68,16 @@ $(document).ready(function() { ...@@ -60,9 +68,16 @@ $(document).ready(function() {
<div class="wrapper-copy"> <div class="wrapper-copy">
<span class="deco-ribbon"></span> <span class="deco-ribbon"></span>
<h4 class="title">${_("Certificate of Achievement (ID Verified)")}</h4> <h4 class="title">${_("Certificate of Achievement (ID Verified)")}</h4>
<div class="copy">
<p>${_("Sign up and work toward a verified Certificate of Achievement.")}</p> %if upgrade:
</div> <div class="copy">
<p>${_("Upgrade and work toward a verified Certificate of Achievement.")}</p>
</div>
%else:
<div class="copy">
<p>${_("Sign up and work toward a verified Certificate of Achievement.")}</p>
</div>
%endif
</div> </div>
<div class="field field-certificate-contribution"> <div class="field field-certificate-contribution">
...@@ -118,16 +133,28 @@ $(document).ready(function() { ...@@ -118,16 +133,28 @@ $(document).ready(function() {
<ul class="list-actions"> <ul class="list-actions">
<li class="action action-select"> <li class="action action-select">
<input type="submit" name="mode" value="Select Certificate" /> %if upgrade:
<input type="submit" name="mode" value="Upgrade Your Registration" />
%else:
<input type="submit" name="mode" value="Select Certificate" />
%endif
</li> </li>
</ul> </ul>
</div> </div>
<div class="help help-register"> <div class="help help-register">
<h3 class="title">${_("Verified Registration Requirements")}</h3> <h3 class="title">${_("Verified Registration Requirements")}</h3>
<div class="copy">
<p>${_("To register for a Verified Certificate of Achievement option, you will need a webcam, a credit or debit card, and an ID.")}</p> %if upgrade:
</div> <div class="copy">
<p>${_("To upgrade your registration and work towards a Verified Certificate of Achievement, you will need a webcam, a credit or debit card, and an ID.")}</p>
</div>
%else:
<div class="copy">
<p>${_("To register for a Verified Certificate of Achievement option, you will need a webcam, a credit or debit card, and an ID.")}</p>
</div>
%endif
<h3 class="title">${_("What is an ID Verified Certificate?")}</h3> <h3 class="title">${_("What is an ID Verified Certificate?")}</h3>
<div class="copy"> <div class="copy">
......
...@@ -282,4 +282,5 @@ ...@@ -282,4 +282,5 @@
border-radius: ($baseline/5); border-radius: ($baseline/5);
padding: ($baseline/2) $baseline; padding: ($baseline/2) $baseline;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.1rem;
} }
...@@ -80,15 +80,6 @@ ...@@ -80,15 +80,6 @@
} }
} }
%copy-badge {
@extend %t-title8;
@extend %t-weight4;
border-radius: ($baseline/5);
padding: ($baseline/2) $baseline;
text-transform: uppercase;
letter-spacing: 0.1rem;
}
// ==================== // ====================
// MISC: extends - button // MISC: extends - button
...@@ -476,6 +467,7 @@ ...@@ -476,6 +467,7 @@
margin-right: ($baseline/4); margin-right: ($baseline/4);
opacity: 0.80; opacity: 0.80;
color: $white; color: $white;
letter-spacing: 0.1rem;
} }
} }
} }
......
...@@ -17,7 +17,11 @@ ...@@ -17,7 +17,11 @@
<span class="sts-track"> <span class="sts-track">
<span class="sts-track-value"> <span class="sts-track-value">
<span class="context">${_("Registering as: ")}</span> ${_("ID Verified")} %if upgrade:
<span class="context">${_("Upgrading to:")}</span> ${_("ID Verified")}
%else:
<span class="context">${_("Registering as: ")}</span> ${_("ID Verified")}
%endif
</span> </span>
</span> </span>
</span> </span>
......
...@@ -11,10 +11,17 @@ ...@@ -11,10 +11,17 @@
</li> </li>
<li class="help-item help-item-coldfeet"> <li class="help-item help-item-coldfeet">
<h3 class="title">${_("Change your mind?")}</h3> %if upgrade:
<div class="copy"> <h3 class="title">${_("Change your mind?")}</h3>
<p>${_("You can always {a_start} audit the course for free {a_end} without verifying.").format(a_start='<a rel="external" href="/course_modes/choose/' + course_id + '">', a_end="</a>")}</p> <div class="copy">
</div> <p>${_("You can always continue to audit the course without verifying.")}</p>
</div>
%else:
<h3 class="title">${_("Change your mind?")}</h3>
<div class="copy">
<p>${_("You can always {a_start} audit the course for free {a_end} without verifying.").format(a_start='<a rel="external" href="/course_modes/choose/' + course_id + '">', a_end="</a>")}</p>
</div>
%endif
</li> </li>
<li class="help-item help-item-technical"> <li class="help-item help-item-technical">
......
...@@ -3,8 +3,16 @@ ...@@ -3,8 +3,16 @@
<%inherit file="../main.html" /> <%inherit file="../main.html" />
<%namespace name='static' file='/static_content.html'/> <%namespace name='static' file='/static_content.html'/>
<%block name="bodyclass">register verification-process step-photos</%block> <%block name="bodyclass">register verification-process step-photos ${'is-upgrading' if upgrade else ''}</%block>
<%block name="title"><title>${_("Register for {} | Verification").format(course_name)}</title></%block> <%block name="title">
<title>
%if upgrade:
${_("Upgrade Your Registration for {} | Verification").format(course_name)}
%else:
${_("Register for {} | Verification").format(course_name)}
%endif
</title>
</%block>
<%block name="js_extra"> <%block name="js_extra">
<script src="${static.url('js/vendor/responsive-carousel/responsive-carousel.js')}"></script> <script src="${static.url('js/vendor/responsive-carousel/responsive-carousel.js')}"></script>
...@@ -172,7 +180,12 @@ ...@@ -172,7 +180,12 @@
<dt class="faq-question">${_("What do you do with this picture?")}</dt> <dt class="faq-question">${_("What do you do with this picture?")}</dt>
<dd class="faq-answer">${_("We only use it to verify your identity. It is not displayed anywhere.")}</dd> <dd class="faq-answer">${_("We only use it to verify your identity. It is not displayed anywhere.")}</dd>
<dt class="faq-question">${_("What if my camera isn't working?")}</dt> <dt class="faq-question">${_("What if my camera isn't working?")}</dt>
<dd class="faq-answer">${_("You can always {a_start} audit the course for free {a_end} without verifying.").format(a_start='<a rel="external" href="/course_modes/choose/' + course_id + '">', a_end="</a>")}</dd>
%if upgrade:
<dd class="faq-answer">${_("You can always continue to audit the course without verifying.")}</dd>
%else:
<dd class="faq-answer">${_("You can always {a_start} audit the course for free {a_end} without verifying.").format(a_start='<a rel="external" href="/course_modes/choose/' + course_id + '">', a_end="</a>")}</dd>
%endif
</dl> </dl>
</div> </div>
</div> </div>
......
<%! from django.utils.translation import ugettext as _ %> <%! from django.utils.translation import ugettext as _ %>
<%! from django.core.urlresolvers import reverse %> <%! from django.core.urlresolvers import reverse %>
<%inherit file="../main.html" /> <%inherit file="../main.html" />
<%block name="bodyclass">register verification-process step-requirements</%block> <%block name="bodyclass">register verification-process step-requirements ${'is-upgrading' if upgrade else ''}</%block>
<%block name="title"><title>${_("Register for {}").format(course_name)}</title></%block> <%block name="title">
<title>
%if upgrade:
${_("Upgrade Your Registration for {}").format(course_name)}
%else:
${_("Register for {}").format(course_name)}
%endif
</title>
</%block>
<%block name="content"> <%block name="content">
%if is_not_active: %if is_not_active:
...@@ -71,11 +79,19 @@ ...@@ -71,11 +79,19 @@
<div class="wrapper-content-main"> <div class="wrapper-content-main">
<article class="content-main"> <article class="content-main">
<h3 class="title">${_("What You Will Need to Register")}</h3> %if upgrade:
<h3 class="title">${_("What You Will Need to Upgrade")}</h3>
<div class="instruction">
<p>${_("There are three things you will need to upgrade to being an ID verified student:")}</p>
</div>
%else:
<h3 class="title">${_("What You Will Need to Register")}</h3>
<div class="instruction"> <div class="instruction">
<p>${_("There are three things you will need to register as an ID verified student:")}</p> <p>${_("There are three things you will need to register as an ID verified student:")}</p>
</div> </div>
%endif
<ul class="list-reqs ${"account-not-activated" if is_not_active else ""}"> <ul class="list-reqs ${"account-not-activated" if is_not_active else ""}">
%if is_not_active: %if is_not_active:
...@@ -149,7 +165,12 @@ ...@@ -149,7 +165,12 @@
</ul> </ul>
<nav class="nav-wizard ${"is-not-ready" if is_not_active else "is-ready"}"> <nav class="nav-wizard ${"is-not-ready" if is_not_active else "is-ready"}">
<span class="help help-inline">${_("Missing something? You can always {a_start} audit this course instead {a_end}").format(a_start='<a href="/course_modes/choose/' + course_id + '">', a_end="</a>")}</span>
%if upgrade:
<span class="help help-inline">${_("Missing something? You can always continue to audit this course instead.")}</span>
%else:
<span class="help help-inline">${_("Missing something? You can always {a_start} audit this course instead {a_end}").format(a_start='<a href="/course_modes/choose/' + course_id + '">', a_end="</a>")}</span>
%endif
<ol class="wizard-steps"> <ol class="wizard-steps">
<li class="wizard-step"> <li class="wizard-step">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment