diff --git a/static/css/billing.css b/static/css/billing.css index 390f7e54..33225123 100644 --- a/static/css/billing.css +++ b/static/css/billing.css @@ -39,11 +39,6 @@ #payment-method-modal .modal-header { border-bottom: 0; - padding: 30px 30px 0 30px; -} - -#payment-method-modal .modal-body { - padding: 15px 30px; } #payment-method-modal .modal-footer { diff --git a/static/js/billing.js b/static/js/billing.js index 6ea78cde..79f1c208 100644 --- a/static/js/billing.js +++ b/static/js/billing.js @@ -76,6 +76,11 @@ $(function () { }); $("#update-payment-method").click(function() { + if ($("#no-billing-address-modal").length) { + $("#no-billing-address-modal").modal("show"); + return; + } + showPaymentMethodForm($("#old-plan-id").val()); }); diff --git a/templates/accounts/billing.html b/templates/accounts/billing.html index 564b0e2f..51b6800c 100644 --- a/templates/accounts/billing.html +++ b/templates/accounts/billing.html @@ -66,7 +66,11 @@ @@ -88,7 +92,8 @@ + Change Payment Method + {% if payment_method_status == "success" %}
+{% if sub.address_id %}