Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
legacy_server_login: Restyle page.
Aman Agrawal00b7424d115f
diff --git a/templates/corporate/legacy_server_login.html b/templates/corporate/legacy_server_login.htmlindex 28cebc9ca71..d7c5e38d0d6 100644--- a/templates/corporate/legacy_server_login.html+++ b/templates/corporate/legacy_server_login.html@@ -5,41 +5,48 @@{% block portico_content %}-<div class="register-account flex full-page server-login-page">+<div id="server-login-page" class="register-account flex full-page"><div class="center-block new-style"><div class="pitch">- <h1>Zulip server billing management</h1>+ <h1>Authenticate server for Zulip billing management</h1></div><div class="white-box">- {% if error_message %}- <div id="server-login-error" class="alert alert-danger">{{ error_message }}</div>- {% endif %}- <div id="server-login-input-section">- <form id="server-login-form" method="post" action="/serverlogin/">- {{ csrf_input }}- {% if next_page %}- <input type="hidden" name="next_page" value="{{ next_page }}" />- {% endif %}- <div class="input-box server-login-form-field">- <label for="username" class="inline-block label-title">- server_org_id- <a href="https://zulip.readthedocs.io/en/stable/production/mobile-push-notifications.html" target="_blank">- <i class="fa fa-question-circle-o" aria-hidden="true"></i>- </a>- </label>- <input id="username" name="server_org_id" class="required" type="text"/>- </div>- <div class="input-box server-login-form-field">- <label for="password" class="inline-block label-title">server_org_key</label>- <input id="password" name="server_org_secret" class="required" type="password"/>- </div>- <div class="upgrade-button-container">- <button type="submit" id="server-login-button" class="stripe-button-el invoice-button">- <span class="server-login-button-text">Login</span>- <img class="loader server-login-button-loader" src="{{ static('images/loading/loader-white.svg') }}" alt="" />- </button>- </div>- </form>+ <div id="server-login-page-details">+ {% if error_message %}+ <div id="server-login-error" class="alert alert-danger">{{ error_message }}</div>+ {% endif %}+ <div id="server-login-input-section">+ <form id="server-login-form" method="post" action="/serverlogin/">+ {{ csrf_input }}+ {% if next_page %}+ <input type="hidden" name="next_page" value="{{ next_page }}" />+ {% endif %}+ <div id="server-login-form-title" class="input-box server-login-form no-validation">+ <div class="not-editable-realm-field">+ Authenticate your server with Zulip's billing management system.+ </div>+ </div>+ <div class="input-box server-login-form-field">+ <label for="username" class="inline-block label-title">+ server_org_id+ <a href="https://zulip.readthedocs.io/en/stable/production/mobile-push-notifications.html" target="_blank">+ <i class="fa fa-question-circle-o" aria-hidden="true"></i>+ </a>+ </label>+ <input id="username" name="server_org_id" class="required" type="text"/>+ </div>+ <div class="input-box server-login-form-field">+ <label for="password" class="inline-block label-title">server_org_key</label>+ <input id="password" name="server_org_secret" class="required" type="password"/>+ </div>+ <div id="server-login-page-button-container">+ <button type="submit" id="server-login-button" class="stripe-button-el invoice-button">+ <span class="server-login-button-text">Continue</span>+ <img class="loader server-login-button-loader" src="{{ static('images/loading/loader-white.svg') }}" alt="" />+ </button>+ </div>+ </form>+ </div></div></div></div>diff --git a/web/styles/portico/billing.css b/web/styles/portico/billing.cssindex 295797c2803..b9accd6b6a0 100644--- a/web/styles/portico/billing.css+++ b/web/styles/portico/billing.css@@ -354,13 +354,15 @@ input[name="licenses"] {background-color: hsl(240deg 96% 68%);}+#server-login-page .white-box,#upgrade-page .white-box,#billing-page .white-box,.sponsorship-page .white-box {margin: 30px;}-#upgrade-page #billing-page-details,+#server-login-page #server-login-page-details,+#upgrade-page #upgrade-page-details,#billing-page #billing-page-details,.sponsorship-page #sponsorship-form {margin: 0;@@ -376,6 +378,7 @@ input[name="licenses"] {}@media (width < 600px) {+ #server-login-page,#billing-page,.sponsorship-page {transform: scale(0.8);@@ -401,6 +404,7 @@ input[name="licenses"] {margin: -150px -100px;}+ #server-login-page,.sponsorship-status-page {transform: scale(0.6);margin: -50px -150px -100px;@@ -449,6 +453,7 @@ input[name="licenses"] {text-align: left;}+#server-login-page .pitch,.sponsorship-page .pitch,.sponsorship-status-page .pitch,#upgrade-page .pitch,@@ -518,6 +523,7 @@ input[name="licenses"] {background-color: hsl(0deg 70% 40%);}+#server-login-button,#org-upgrade-button {margin: 0;width: 100%;@@ -538,6 +544,12 @@ input[name="licenses"] {width: 150px;}+#server-login-page-details #server-login-form-title .not-editable-realm-field {+ font-weight: 500;+ padding-top: 0;+}++#server-login-page-details #server-login-form-title,#billing-page-details #legacy-server-push-notification-notice,#billing-page-details .next-payment-info {width: 450px;@@ -574,10 +586,6 @@ input[name="licenses"] {padding-top: 0;}-#upgrade-page-details {- margin: 0;-}-#free-trial-alert-message,#free-trial-top-banner {text-align: left;@@ -640,6 +648,7 @@ input[name="licenses"] {text-align: left;}+#server-login-error,#autopay-error {font-weight: 400;margin-left: 0;@@ -678,3 +687,8 @@ input[name="licenses"] {#remote-realm-confirm-login-form .text-error {margin-bottom: 15px;}++#server-login-page-button-container {+ width: 450px;+ margin: 30px auto 0;+}diff --git a/web/styles/portico/portico_signin.css b/web/styles/portico/portico_signin.cssindex 04809f79a8a..1c6886e71f7 100644--- a/web/styles/portico/portico_signin.css+++ b/web/styles/portico/portico_signin.css@@ -479,6 +479,7 @@ html {.alert {&:not(+ #server-login-error,.alert-info,.billing-page-success,.upgrade-page-success,@@ -923,6 +924,7 @@ button#register_auth_button_gitlab {}}+#server-login-page-details,#upgrade-page-details,#billing-page-details,#sponsorship-form,@@ -976,6 +978,7 @@ button#register_auth_button_gitlab {}}+ &.server-login-form-field,&.upgrade-page-field,&.billing-page-field,&.support-form-field,