Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

billing: Make payment method look nice.

Aman Agrawald79b59d3b18b
diff --git a/templates/corporate/billing.html b/templates/corporate/billing.html
index 57e5bfa07d0..f59c2e8d702 100644
--- a/templates/corporate/billing.html
+++ b/templates/corporate/billing.html
@@ -92,18 +92,18 @@
<div id="cardchange-error" class="alert alert-danger"></div>
<div class="input-box billing-page-field no-validation">
<label for="customer-payment-method" class="inline-block label-title">Payment method</label>
- <div id="customer-payment-method" class="">
+ <div id="customer-payment-method" class="not-editable-realm-field">
{{ payment_method }}
</div>
- {% if charge_automatically %}
- <div class="user-stripe-card-update">
- <button class="user-stripe-card-update-button">
- <span class="billing-button-text">Update card</span>
- <object class="loader billing-button-loader" type="image/svg+xml" data="{{ static('images/loading/loader-white.svg') }}"></object>
- </button>
- </div>
- {% endif %}
</div>
+ {% if charge_automatically %}
+ <div class="user-stripe-card-update input-box billing-page-field no-validation">
+ <button class="user-stripe-card-update-button">
+ <span class="billing-button-text">Update card</span>
+ <object class="loader billing-button-loader" type="image/svg+xml" data="{{ static('images/loading/loader-white.svg') }}"></object>
+ </button>
+ </div>
+ {% endif %}
<div id="cardchange-success" class="alert alert-success billing-page-success">
Redirecting to Stripe checkout page for updating Card details.
</div>
diff --git a/web/styles/portico/billing.css b/web/styles/portico/billing.css
index 97bd847ed8c..bf2ca3a8efe 100644
--- a/web/styles/portico/billing.css
+++ b/web/styles/portico/billing.css
@@ -443,3 +443,12 @@ input[name="licenses"] {
.billing-page-success {
display: none;
}
+
+#billing-page-details .input-box.billing-page-field.user-stripe-card-update {
+ margin-top: 10px;
+ text-align: left;
+}
+
+#billing-page-details .user-stripe-card-update .user-stripe-card-update-button {
+ margin: 0;
+}