From c07badecdd75c48870236287c83604b7a2bd2891 Mon Sep 17 00:00:00 2001 From: Will Daly Date: Mon, 2 Mar 2015 12:54:45 -0500 Subject: [PATCH] Show the payment section if no contribution amount is selected --- .../make_payment_step.underscore | 121 +++++++++--------- 1 file changed, 60 insertions(+), 61 deletions(-) diff --git a/lms/templates/verify_student/make_payment_step.underscore b/lms/templates/verify_student/make_payment_step.underscore index 505429aa71..545900ea4d 100644 --- a/lms/templates/verify_student/make_payment_step.underscore +++ b/lms/templates/verify_student/make_payment_step.underscore @@ -19,7 +19,66 @@ <% } %> - <% if ( isActive && ( !hasVisibleReqs || upgrade ) ) { %> +
+ <% if ( _.some( requirements, function( isVisible ) { return isVisible; } ) ) { %> +

+ <% if ( verificationDeadline ) { %> + <%- _.sprintf( + 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 } + ) %> + <% } 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 { %> + <%- 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." ) %> + <% } %> +

+ <% } %> +
+ +
+ +
+ + <% if ( isActive && ( !hasVisibleReqs || upgrade || !contributionAmount) ) { %> <% } %> -
- <% if ( _.some( requirements, function( isVisible ) { return isVisible; } ) ) { %> -

- <% if ( verificationDeadline ) { %> - <%- _.sprintf( - 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 } - ) %> - <% } 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 { %> - <%- 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." ) %> - <% } %> -

- <% } %> -
- -
- -
- - <% if ( isActive ) { %>