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: Apply common styles to billing pages.

Aman Agrawalda74b9ade745
diff --git a/templates/corporate/remote_billing_server_deactivate.html b/templates/corporate/remote_billing_server_deactivate.html
index 55a7d295c0e..743cabf08f3 100644
--- a/templates/corporate/remote_billing_server_deactivate.html
+++ b/templates/corporate/remote_billing_server_deactivate.html
@@ -17,15 +17,17 @@
<div id="server-deactivate-details">
<form id="server-deactivate-form" method="post" action="{{ action_url }}">
{{ csrf_input }}
- <p class="not-editable-realm-field">
- You are about to deactivate this server's
- registration with
- the <a href="https://zulip.readthedocs.io/en/stable/production/mobile-push-notifications.html">Zulip
+ <div id="server-deactivate-form-top-description" class="input-box server-deactivate-form-field no-validation">
+ <div class="not-editable-realm-field">
+ You are about to deactivate this server's
+ registration with
+ the <a href="https://zulip.readthedocs.io/en/stable/production/mobile-push-notifications.html">Zulip
Mobile Push Notification Service</a>. This
will disable delivery of mobile push
notifications for all organizations hosted
on <b>{{ server_hostname }}</b>.
- </p>
+ </div>
+ </div>
<input type="hidden" name="confirmed" value="true" />
<div class="upgrade-button-container">
<button type="submit" id="server-deactivate-button" class="stripe-button-el invoice-button">
diff --git a/templates/corporate/remote_billing_server_deactivated_success.html b/templates/corporate/remote_billing_server_deactivated_success.html
index 1f59c5fb164..4bb5dda3aaf 100644
--- a/templates/corporate/remote_billing_server_deactivated_success.html
+++ b/templates/corporate/remote_billing_server_deactivated_success.html
@@ -6,18 +6,25 @@
{% endblock %}
{% block portico_content %}
-<div class="app portico-page">
- <div class="app-main portico-page-container flex full-page account-deactivation account-email-confirm-container new-style">
+<div class="register-account flex full-page" id="account-deactivated-success-page">
+ <div class="center-block new-style">
<div class="pitch">
<h1>
Registration deactivated for<br />{{ server_hostname }}
</h1>
</div>
<div class="white-box">
- <p>Your server's registration has been deactivated.</p>
+ <div id="account-deactivated-success-page-details">
+ <div class="input-box account-deactivated-success-page-field no-validation" id="account-deactivated-success-page-top-message">
+ <div class="not-editable-realm-field">
+ Your server's registration has been deactivated.
+ </div>
+ </div>
+ </div>
</div>
</div>
</div>
+
{% endblock %}
{% block customhead %}
diff --git a/web/styles/portico/billing.css b/web/styles/portico/billing.css
index d678824fbce..bafb377ca32 100644
--- a/web/styles/portico/billing.css
+++ b/web/styles/portico/billing.css
@@ -354,6 +354,8 @@ input[name="licenses"] {
background-color: hsl(240deg 96% 68%);
}
+#account-deactivated-success-page .white-box,
+#server-deactivate-page .white-box,
#remote-billing-confirm-login-page .white-box,
#remote-billing-confirm-email .white-box,
#server-login-page .white-box,
@@ -363,6 +365,8 @@ input[name="licenses"] {
margin: 30px;
}
+#account-deactivated-success-page #account-deactivated-success-page-details,
+#server-deactivate-page #server-deactivate-details,
#server-login-page #server-login-page-details,
#upgrade-page #upgrade-page-details,
#billing-page #billing-page-details,
@@ -457,6 +461,8 @@ input[name="licenses"] {
text-align: left;
}
+#account-deactivated-success-page .pitch,
+#server-deactivate-details .pitch,
#remote-billing-confirm-login-page .pitch,
#server-login-page .pitch,
.sponsorship-page .pitch,
@@ -528,6 +534,7 @@ input[name="licenses"] {
background-color: hsl(0deg 70% 40%);
}
+#server-deactivate-button,
#remote-billing-confirm-login-button,
#remote-billing-confirm-email-button,
#server-login-button,
@@ -587,6 +594,10 @@ input[name="licenses"] {
margin-top: 10px;
}
+#account-deactivated-success-page-details .not-editable-realm-field,
+#server-deactivate-details
+ #server-deactivate-form-top-description
+ .not-editable-realm-field,
#remote-billing-confirm-email-intro .not-editable-realm-field,
#billing-page-details .billing-frequency-message.not-editable-realm-field,
#free-trial-top-banner .not-editable-realm-field,
@@ -701,6 +712,7 @@ input[name="licenses"] {
margin-bottom: 15px;
}
+#server-deactivate-details .upgrade-button-container,
#server-login-page-button-container {
width: 450px;
margin: 30px auto 0;
@@ -719,3 +731,8 @@ input[name="licenses"] {
#remote-billing-confirm-login-form #remote-billing-confirm-login-tos-wrapper {
margin: 25px auto 10px;
}
+
+#account-deactivated-success-page-details
+ #account-deactivated-success-page-top-message {
+ margin-top: 10px;
+}
diff --git a/web/styles/portico/portico_signin.css b/web/styles/portico/portico_signin.css
index 5036700b852..7c69b278a45 100644
--- a/web/styles/portico/portico_signin.css
+++ b/web/styles/portico/portico_signin.css
@@ -924,6 +924,8 @@ button#register_auth_button_gitlab {
}
}
+#account-deactivated-success-page-details,
+#server-deactivate-details,
#remote-billing-confirm-login-form,
#remote-billing-confirm-email-form,
#server-login-page-details,
@@ -980,6 +982,8 @@ button#register_auth_button_gitlab {
}
}
+ &.account-deactivated-success-page-field,
+ &.server-deactivate-form-field,
&.remote-billing-confirm-login-form-field,
&.server-login-form-field,
&.upgrade-page-field,