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:
Sahil Batra 2023-03-14 23:28:38 +05:30 committed by Tim Abbott
parent 8c6bf72c1f
commit 5eeef1483d
3 changed files with 3 additions and 3 deletions

View File

@ -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">

View File

@ -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.

View File

@ -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();