From ff3233fdf167a21313412f50738237b952dd9368 Mon Sep 17 00:00:00 2001 From: Sahil Batra Date: Wed, 3 May 2023 17:02:26 +0530 Subject: [PATCH] templates: Extract html for email address visibility modal. This commit extracts html for modal used for changing email address visibility during registration to a separate file so that we can avoid code duplication when we add commits to allow changing email address visibility for imported users during login. --- ...change_email_address_visibility_modal.html | 33 ++++++++++++++++++ templates/zerver/register.html | 34 +------------------ 2 files changed, 34 insertions(+), 33 deletions(-) create mode 100644 templates/zerver/change_email_address_visibility_modal.html diff --git a/templates/zerver/change_email_address_visibility_modal.html b/templates/zerver/change_email_address_visibility_modal.html new file mode 100644 index 0000000000..8d147378ca --- /dev/null +++ b/templates/zerver/change_email_address_visibility_modal.html @@ -0,0 +1,33 @@ + diff --git a/templates/zerver/register.html b/templates/zerver/register.html index 99aca3808f..c6834e3fb7 100644 --- a/templates/zerver/register.html +++ b/templates/zerver/register.html @@ -257,39 +257,7 @@ Form is validated both client-side using jquery-validation (see signup.js) and s {% if not creating_new_realm %} - +{% include 'zerver/change_email_address_visibility_modal.html' %} {% endif %} {% endblock %}