diff --git a/hosting/static/hosting/css/commons.css b/hosting/static/hosting/css/commons.css index ca320afa..33381370 100644 --- a/hosting/static/hosting/css/commons.css +++ b/hosting/static/hosting/css/commons.css @@ -294,6 +294,26 @@ font-size: 16px; } +.payment-container .credit-card-info { + padding-bottom: 15px; + border-bottom: 1px solid #eee; +} + +.credit-card-info { + display: flex; +} + +.credit-card-info .align-bottom{ + align-self: flex-end; + padding-right: 0 !important; +} + +.another-card-text { + padding: 20px 0; + font-size: 18px; + font-weight: 700; +} + .credit-card-form { max-width: 360px; } diff --git a/hosting/templates/hosting/payment.html b/hosting/templates/hosting/payment.html index a10cfbca..7cadb530 100644 --- a/hosting/templates/hosting/payment.html +++ b/hosting/templates/hosting/payment.html @@ -66,49 +66,37 @@
+ {% if card_list_len > 0 %} + {% blocktrans %}Please select one of the previous cards that you used or fill in your credit card information below. We are using Stripe for payment and do not store your information in our database.{% endblocktrans %} + {% else %} {% blocktrans %}Please fill in your credit card information below. We are using Stripe for payment and do not store your information in our database.{% endblocktrans %} + {% endif %}
- {% trans "You are not making any payment yet. After submitting your card information, you will be taken to the Confirm Order Page." %} -
- {% endif %} -{{ message|safe }}
-- {{ error|escape }} -
- {% endfor %} + {% for card in cards_list %} +