Commit e9e1d350 by Renzo Lucioni Committed by AlasdairSwan

ECOM-869 Update copy and hide supplementary content wrapper and requirement…

ECOM-869 Update copy and hide supplementary content wrapper and requirement blocks if user is inactive
parent 90e0a2d1
...@@ -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>
......
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