remote_billing_login: Show different title for deactivate login.

This commit is contained in:
Aman Agrawal 2023-12-13 01:56:11 +00:00 committed by Tim Abbott
parent 19575b46f7
commit c2636354a5
3 changed files with 13 additions and 2 deletions

View File

@ -771,7 +771,7 @@ class TestGenerateDeactivationLink(BouncerTestCase):
result = self.client_get(confirmation_url, subdomain="selfhosting")
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"}
result = self.client_post(confirmation_url, payload, subdomain="selfhosting")

View File

@ -597,6 +597,7 @@ def remote_billing_legacy_server_from_login_confirmation_link(
args=(confirmation_key,),
),
"legacy_server_confirmation_flow": True,
"next_page": prereg_object.next_page,
}
return render(
request,

View File

@ -2,14 +2,24 @@
{% set entrypoint = "upgrade" %}
{% 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 %}
{% block portico_content %}
<div id="remote-billing-confirm-login-page" class="register-account flex full-page">
<div class="center-block new-style">
<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>
{% endif %}
</div>
<div class="white-box">
<form id="remote-billing-confirm-login-form" method="post" action="{{ action_url }}">