diff --git a/corporate/models.py b/corporate/models.py index add61ef324..b89c5ded74 100644 --- a/corporate/models.py +++ b/corporate/models.py @@ -216,6 +216,10 @@ class CustomerPlan(models.Model): ANNUAL = 1 MONTHLY = 2 + BILLING_SCHEDULES = { + ANNUAL: "Annual", + MONTHLY: "Monthly", + } billing_schedule = models.SmallIntegerField() # The next date the billing system should go through ledger diff --git a/corporate/views/billing_page.py b/corporate/views/billing_page.py index 9ef1e6ffce..898bd1cf93 100644 --- a/corporate/views/billing_page.py +++ b/corporate/views/billing_page.py @@ -189,6 +189,7 @@ def billing_home( stripe_email=stripe_customer.email, CustomerPlan=CustomerPlan, onboarding=onboarding, + billing_frequency=CustomerPlan.BILLING_SCHEDULES[plan.billing_schedule], ) return render(request, "corporate/billing.html", context=context) diff --git a/templates/corporate/billing.html b/templates/corporate/billing.html index 4af0c308fc..8f7204fdb6 100644 --- a/templates/corporate/billing.html +++ b/templates/corporate/billing.html @@ -17,7 +17,7 @@
-
+
{% if free_trial %} @@ -27,6 +27,12 @@ {% endif %}
+
+ +
+ {{ billing_frequency }} +
+

You are using {{ seat_count }} of {{ licenses }} licenses. {% if automanage_licenses %} diff --git a/web/styles/portico/portico_signin.css b/web/styles/portico/portico_signin.css index ced5464862..ed73cd14dd 100644 --- a/web/styles/portico/portico_signin.css +++ b/web/styles/portico/portico_signin.css @@ -967,6 +967,7 @@ button#register_auth_button_gitlab { } } + &.billing-page-field, &.support-form-field, &.sponsorship-form-field { width: 450px;