From 82fc82b7e21a5dbb0edd96d94721ec4b75836eb4 Mon Sep 17 00:00:00 2001 From: Vishnu Ks Date: Fri, 13 Jul 2018 11:33:05 +0000 Subject: [PATCH] billing: Sign and verify the seat count during upgrade. --- static/styles/landing-page.scss | 5 ++++ templates/zilencer/upgrade.html | 7 +++++ zilencer/tests/test_stripe.py | 24 ++++++++++++++--- zilencer/views.py | 47 ++++++++++++++++++++++----------- 4 files changed, 64 insertions(+), 19 deletions(-) diff --git a/static/styles/landing-page.scss b/static/styles/landing-page.scss index eeaeb968f0..6e68799b4e 100644 --- a/static/styles/landing-page.scss +++ b/static/styles/landing-page.scss @@ -3178,6 +3178,11 @@ nav ul li.active::after { -webkit-box-shadow: none; } } + + #error-message-box { + margin-top: 10px; + font-weight: 600; + } } @keyframes box-shadow-pulse { diff --git a/templates/zilencer/upgrade.html b/templates/zilencer/upgrade.html index 0d0746a356..3b44eed111 100644 --- a/templates/zilencer/upgrade.html +++ b/templates/zilencer/upgrade.html @@ -17,10 +17,17 @@
+ {% if error_message %} +
+ {{ error_message }} +
+ {% endif %}

{% trans %}Upgrade to {{ plan }}{% endtrans %}

{{ csrf_input }} + +

{{ _("Payment schedule") }}