Commit af7620a1 by Renzo Lucioni

Merge pull request #6454 from edx/alasdair/not-activated-decoupled-verification-update

ECOM-869 Update copy and hide supplementary content wrapper and requirem...
parents cdf346ec fb013272
...@@ -86,16 +86,10 @@ define([ ...@@ -86,16 +86,10 @@ define([
}; };
var expectPaymentDisabledBecauseInactive = function() { var expectPaymentDisabledBecauseInactive = function() {
var payButton = $( '#pay_button'), var payButton = $( '#pay_button' );
activateButton = $( '#activate_button' );
// Payment button should be hidden // Payment button should be hidden
expect( payButton.length ).toEqual(0); expect( payButton.length ).toEqual(0);
// Activate button should be displayed and disabled
expect( activateButton.length ).toEqual(1);
expect( activateButton.hasClass( 'is-disabled' ) ).toBe( true );
expect( activateButton.prop( 'disabled' ) ).toBe( true );
}; };
var goToPayment = function( requests, kwargs ) { var goToPayment = function( requests, kwargs ) {
......
...@@ -38,11 +38,6 @@ var edx = edx || {}; ...@@ -38,11 +38,6 @@ var edx = edx || {};
// Set the payment button to disabled by default // Set the payment button to disabled by default
this.setPaymentEnabled( false ); this.setPaymentEnabled( false );
// The activate button is always disabled
$( '#activate_button' )
.addClass( 'is-disabled' )
.prop( 'disabled', true );
// Update the contribution amount with the amount the user // Update the contribution amount with the amount the user
// selected in a previous screen. // selected in a previous screen.
if ( templateContext.contributionAmount ) { if ( templateContext.contributionAmount ) {
......
...@@ -23,6 +23,12 @@ ...@@ -23,6 +23,12 @@
} }
} }
.placeholder-cam {
.copy {
font-weight: bold !important;
}
}
.requirements-container { .requirements-container {
.list-reqs { .list-reqs {
...@@ -41,7 +47,7 @@ ...@@ -41,7 +47,7 @@
} }
&.account-not-activated { &.account-not-activated {
width: 990px; width: 300px;
.req { .req {
height: 290px; height: 290px;
...@@ -75,6 +81,7 @@ ...@@ -75,6 +81,7 @@
display: inline; display: inline;
float: left; float: left;
line-height: 45px; line-height: 45px;
color: black;
} }
.wizard-steps { .wizard-steps {
...@@ -119,11 +126,23 @@ ...@@ -119,11 +126,23 @@
.expandable-area { .expandable-area {
margin-top: 5px; margin-top: 5px;
padding-bottom: 20px;
} }
} }
.help-tips { .help-tips {
margin-left: 0 !important; margin-left: 0 !important;
.title {
font-size: 16px !important;
}
.list-tips {
.tip {
font-size: 16px;
line-height: 1.5em;
}
}
} }
.photo-tip { .photo-tip {
...@@ -137,6 +156,12 @@ ...@@ -137,6 +156,12 @@
padding-left: 20px; padding-left: 20px;
} }
.list-faq {
dd {
color: black;
}
}
.wrapper-task { .wrapper-task {
.msg-retake { .msg-retake {
margin-top: 0; margin-top: 0;
......
...@@ -9,7 +9,13 @@ ...@@ -9,7 +9,13 @@
</h3> </h3>
<% } else { %> <% } else { %>
<h3 class="title"><%- introTitle %></h3> <h3 class="title"><%- introTitle %></h3>
<% if ( introMsg ) { %> <% if ( !isActive ) { %>
<div class="instruction">
<p>
<%- gettext( "You need to activate your account before you can enroll in courses. Check your inbox for an activation email. After you complete activation you can return and refresh this page." ) %>
</p>
</div>
<% } else if ( introMsg ) { %>
<div class="instruction"><p><%- introMsg %></p></div> <div class="instruction"><p><%- introMsg %></p></div>
<% } %> <% } %>
<% } %> <% } %>
...@@ -26,15 +32,10 @@ ...@@ -26,15 +32,10 @@
<div class="copy"> <div class="copy">
<p> <p>
<span class="copy-super"><%- gettext( "Check your email" ) %></span> <span class="copy-super"><%- gettext( "Check your email" ) %></span>
<span class="copy-sub"><%-
gettext( "You need to activate your account before you can register for courses. Check your inbox for an activation email." )
%>
</span>
</p> </p>
</div> </div>
</li> </li>
<% } %> <% } else { %>
<% if ( requirements['photo-id-required'] ) { %> <% if ( requirements['photo-id-required'] ) { %>
<li class="req req-1 req-id"> <li class="req req-1 req-id">
<h4 class="title"><%- gettext( "Photo ID" ) %></h4> <h4 class="title"><%- gettext( "Photo ID" ) %></h4>
...@@ -61,17 +62,16 @@ ...@@ -61,17 +62,16 @@
<div class="copy"></div> <div class="copy"></div>
</li> </li>
<% } %> <% } %>
<% } %>
</ul> </ul>
</div> </div>
<% if ( nextStepTitle ) { %> <% if ( nextStepTitle && isActive ) { %>
<nav class="nav-wizard is-ready"> <nav class="nav-wizard is-ready">
<ol class="wizard-steps"> <ol class="wizard-steps">
<li class="wizard-step"> <li class="wizard-step">
<a class="next action-primary" <% if ( !isActive ) { %>disabled="true"<% } %> id="next_step_button" href="?skip-first-step=1"> <a class="next action-primary" id="next_step_button" href="?skip-first-step=1">
<% if ( !isActive ) { %> <% if ( hasPaid ) { %>
<%- gettext( "Activate Your Account" ) %>
<% } else if ( hasPaid ) { %>
<%- _.sprintf( <%- _.sprintf(
gettext( "Next: %(nextStepTitle)s" ), gettext( "Next: %(nextStepTitle)s" ),
{ nextStepTitle: nextStepTitle } { nextStepTitle: nextStepTitle }
......
...@@ -105,6 +105,8 @@ ...@@ -105,6 +105,8 @@
gettext( "You can pay now even if you don't have the following items available, but you will need to have these by %(date)s to qualify to earn a Verified Certificate." ), gettext( "You can pay now even if you don't have the following items available, but you will need to have these by %(date)s to qualify to earn a Verified Certificate." ),
{ date: verificationDeadline } { date: verificationDeadline }
) %> ) %>
<% } else if ( !isActive ) { %>
<%- gettext( "You need to activate your account before you can enroll in courses. Check your inbox for an activation email. After you complete activation you can return and refresh this page." ) %>
<% } else if ( !upgrade ) { %> <% } else if ( !upgrade ) { %>
<%- gettext( "You can pay now even if you don't have the following items available, but you will need to have these to qualify to earn a Verified Certificate." ) %> <%- gettext( "You can pay now even if you don't have the following items available, but you will need to have these to qualify to earn a Verified Certificate." ) %>
<% } %> <% } %>
...@@ -125,15 +127,10 @@ ...@@ -125,15 +127,10 @@
<div class="copy"> <div class="copy">
<p> <p>
<span class="copy-super"><%- gettext( "Check your email" ) %></span> <span class="copy-super"><%- gettext( "Check your email" ) %></span>
<span class="copy-sub"><%-
gettext( "You need to activate your account before you can enroll in courses. Check your inbox for an activation email." )
%>
</span>
</p> </p>
</div> </div>
</li> </li>
<% } %> <% } else {%>
<% if ( requirements['photo-id-required'] ) { %> <% if ( requirements['photo-id-required'] ) { %>
<li class="req req-1 req-id"> <li class="req req-1 req-id">
<h4 class="title"><%- gettext( "Government-issued Photo ID" ) %></h4> <h4 class="title"><%- gettext( "Government-issued Photo ID" ) %></h4>
...@@ -156,26 +153,25 @@ ...@@ -156,26 +153,25 @@
<div class="copy"></div> <div class="copy"></div>
</li> </li>
<% } %> <% } %>
<% } %>
</ul> </ul>
</div> </div>
<% } %> <% } %>
<% if ( isActive ) { %>
<nav class="nav-wizard is-ready <% if ( isActive && !upgrade ) { %>center<% } %>"> <nav class="nav-wizard is-ready <% if ( isActive && !upgrade ) { %>center<% } %>">
<% if ( upgrade ) { %> <% if ( upgrade ) { %>
<a class="next action-primary is-disabled right" id="pay_button"> <a class="next action-primary is-disabled right" id="pay_button">
<%- gettext( "Next: Make payment" ) %> <%- gettext( "Next: Make payment" ) %>
</a> </a>
<% } else if ( isActive ) { %> <% } else { %>
<a class="next action-primary is-disabled" id="pay_button"> <a class="next action-primary is-disabled" id="pay_button">
<%- gettext( "Continue to payment" ) %> <%- gettext( "Continue to payment" ) %>
</a> </a>
<% } else { %>
<a class="next action-primary is-disabled" id="activate_button">
<%- gettext( "Activate your account" ) %>
</a>
<% } %> <% } %>
</nav> </nav>
<% } %>
<form id="payment-processor-form"></form> <form id="payment-processor-form"></form>
</div> </div>
...@@ -76,6 +76,7 @@ from verify_student.views import PayAndVerifyView ...@@ -76,6 +76,7 @@ from verify_student.views import PayAndVerifyView
data-is-active='${is_active}' data-is-active='${is_active}'
></div> ></div>
% if is_active:
## Support ## Support
<div class="wrapper-content-supplementary"> <div class="wrapper-content-supplementary">
<aside class="content-supplementary"> <aside class="content-supplementary">
...@@ -98,6 +99,7 @@ from verify_student.views import PayAndVerifyView ...@@ -98,6 +99,7 @@ from verify_student.views import PayAndVerifyView
</ul> </ul>
</aside> </aside>
</div> </div>
% endif
</section> </section>
</div> </div>
......
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
<div class="copy"> <div class="copy">
<p> <p>
<span class="copy-super"><%- gettext( "Check your email." ) %></span> <span class="copy-super"><%- gettext( "Check your email" ) %></span>
<span class="copy-sub"><%- <span class="copy-sub"><%-
gettext( "You need to activate your account before you can enroll in courses. Check your inbox for an activation email." ) gettext( "You need to activate your account before you can enroll in courses. Check your inbox for an activation email." )
%> %>
...@@ -99,8 +99,7 @@ ...@@ -99,8 +99,7 @@
</p> </p>
</div> </div>
</li> </li>
<% } %> <% } else { %>
<% if ( requirements['photo-id-required'] ) { %> <% if ( requirements['photo-id-required'] ) { %>
<li class="req req-1 req-id"> <li class="req req-1 req-id">
<h4 class="title"><%- gettext( "Photo ID" ) %></h4> <h4 class="title"><%- gettext( "Photo ID" ) %></h4>
...@@ -127,6 +126,7 @@ ...@@ -127,6 +126,7 @@
<div class="copy"></div> <div class="copy"></div>
</li> </li>
<% } %> <% } %>
<% } %>
</ul> </ul>
</div> </div>
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<div class="copy expandable-area"> <div class="copy expandable-area">
<p><%- gettext( "You should change the name on your account to match your ID." ) %></p> <p><%- gettext( "You should change the name on your account to match your ID." ) %></p>
<input type="text" name="new-name" id="new-name" placeholder=<%= fullName %>> <input type="text" name="new-name" id="new-name" placeholder="<%= fullName %>">
</div> </div>
</div> </div>
</li> </li>
......
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