mirror of https://github.com/zulip/zulip.git
remote_billing_login: Show different title for deactivate login.
This commit is contained in:
parent
19575b46f7
commit
c2636354a5
|
@ -771,7 +771,7 @@ class TestGenerateDeactivationLink(BouncerTestCase):
|
||||||
|
|
||||||
result = self.client_get(confirmation_url, subdomain="selfhosting")
|
result = self.client_get(confirmation_url, subdomain="selfhosting")
|
||||||
self.assert_in_success_response(
|
self.assert_in_success_response(
|
||||||
["Log in to Zulip plan management", server.contact_email], result
|
["Log in to deactivate registration for", server.contact_email], result
|
||||||
)
|
)
|
||||||
payload = {"full_name": "test", "tos_consent": "true"}
|
payload = {"full_name": "test", "tos_consent": "true"}
|
||||||
result = self.client_post(confirmation_url, payload, subdomain="selfhosting")
|
result = self.client_post(confirmation_url, payload, subdomain="selfhosting")
|
||||||
|
|
|
@ -597,6 +597,7 @@ def remote_billing_legacy_server_from_login_confirmation_link(
|
||||||
args=(confirmation_key,),
|
args=(confirmation_key,),
|
||||||
),
|
),
|
||||||
"legacy_server_confirmation_flow": True,
|
"legacy_server_confirmation_flow": True,
|
||||||
|
"next_page": prereg_object.next_page,
|
||||||
}
|
}
|
||||||
return render(
|
return render(
|
||||||
request,
|
request,
|
||||||
|
|
|
@ -2,14 +2,24 @@
|
||||||
{% set entrypoint = "upgrade" %}
|
{% set entrypoint = "upgrade" %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
<title>Log in to Zulip plan management for {{ host }} | Zulip</title>
|
<title>
|
||||||
|
{% if next_page and next_page == "deactivate" %}
|
||||||
|
Log in to deactivate registration for {{ host }} | Zulip
|
||||||
|
{% else %}
|
||||||
|
Log in to Zulip plan management for {{ host }} | Zulip
|
||||||
|
{% endif %}
|
||||||
|
</title>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block portico_content %}
|
{% block portico_content %}
|
||||||
<div id="remote-billing-confirm-login-page" class="register-account flex full-page">
|
<div id="remote-billing-confirm-login-page" class="register-account flex full-page">
|
||||||
<div class="center-block new-style">
|
<div class="center-block new-style">
|
||||||
<div class="pitch">
|
<div class="pitch">
|
||||||
|
{% if next_page and next_page == "deactivate" %}
|
||||||
|
<h1>Log in to deactivate registration for<br/>{{ host }}</h1>
|
||||||
|
{% else %}
|
||||||
<h1>Log in to Zulip plan management for<br/>{{ host }}</h1>
|
<h1>Log in to Zulip plan management for<br/>{{ host }}</h1>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="white-box">
|
<div class="white-box">
|
||||||
<form id="remote-billing-confirm-login-form" method="post" action="{{ action_url }}">
|
<form id="remote-billing-confirm-login-form" method="post" action="{{ action_url }}">
|
||||||
|
|
Loading…
Reference in New Issue