diff --git a/lms/static/js/dashboard/credit.js b/lms/static/js/dashboard/credit.js index 2173ffc792..71c7733671 100644 --- a/lms/static/js/dashboard/credit.js +++ b/lms/static/js/dashboard/credit.js @@ -31,7 +31,7 @@ 'username': username }; $.ajax({ - url: 'api/credit/v1/provider/' + provider_id + '/request/', + url: 'api/credit/v1/providers/' + provider_id + '/request/', type: 'POST', headers: { 'X-CSRFToken': $.cookie('csrftoken') diff --git a/lms/static/sass/multicourse/_dashboard.scss b/lms/static/sass/multicourse/_dashboard.scss index cafc33646a..3066cc570c 100644 --- a/lms/static/sass/multicourse/_dashboard.scss +++ b/lms/static/sass/multicourse/_dashboard.scss @@ -548,16 +548,7 @@ padding: 0; } - .credit-eligibility-msg { - @include float(left); - margin-top: 10px; - } - - .purchase_credit { - @include float(right); - } - - .pending-credit-btn{ + .credit-btn{ @include float(right); } @@ -758,6 +749,20 @@ font-weight: bold; } } + .credit-eligibility-msg { + @include float(left); + margin-top: 10px; + } + + .credit-request-pending-msg { + @include float(left); + margin-top: 10px; + } + + .credit-request-approved-msg{ + width: flex-grid(10, 12); + @include float(left); + } .actions { diff --git a/lms/templates/dashboard/_dashboard_credit_info.html b/lms/templates/dashboard/_dashboard_credit_info.html index 2b47712de7..9eceea6daa 100644 --- a/lms/templates/dashboard/_dashboard_credit_info.html +++ b/lms/templates/dashboard/_dashboard_credit_info.html @@ -22,6 +22,7 @@ % if not credit_status["purchased"] and not credit_status["error"] :