mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	templates: Rename ID for form element in create_realm.html.
This commit updates the ID for form element in create_realm.html to "create_realm" as we would need to update the error handling for this page in further commits and we do not want to break it for other forms using "send_confirm" as ID.
This commit is contained in:
		@@ -16,7 +16,7 @@
 | 
			
		||||
                <h1 class="get-started">{{ _("Create a new Zulip organization") }}</h1>
 | 
			
		||||
            </div>
 | 
			
		||||
            <div class="white-box">
 | 
			
		||||
                <form class="form-inline" id="send_confirm" name="email_form"
 | 
			
		||||
                <form class="form-inline" id="create_realm" name="email_form"
 | 
			
		||||
                  action="{{ current_url() }}" method="post">
 | 
			
		||||
                    {{ csrf_input }}
 | 
			
		||||
                    <div class="input-box horizontal">
 | 
			
		||||
 
 | 
			
		||||
@@ -17,7 +17,7 @@ async function realm_creation_tests(page: Page): Promise<void> {
 | 
			
		||||
    await page.type("#email", email);
 | 
			
		||||
    await Promise.all([
 | 
			
		||||
        page.waitForNavigation(),
 | 
			
		||||
        page.$eval("#send_confirm", (form) => (form as HTMLFormElement).submit()),
 | 
			
		||||
        page.$eval("#create_realm", (form) => (form as HTMLFormElement).submit()),
 | 
			
		||||
    ]);
 | 
			
		||||
 | 
			
		||||
    // Make sure confirmation email is sent.
 | 
			
		||||
 
 | 
			
		||||
@@ -133,7 +133,7 @@ $(() => {
 | 
			
		||||
        $("input[name='next']").attr("value", next_value + window.location.hash);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    $("#send_confirm").validate({
 | 
			
		||||
    $("#send_confirm", "#create_realm").validate({
 | 
			
		||||
        errorElement: "div",
 | 
			
		||||
        errorPlacement($error) {
 | 
			
		||||
            $(".email-frontend-error").empty();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user