Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🛠️FIX : Sign Up section - Name field validation #1167

Merged
merged 1 commit into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion about.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ <h2 class="text-center">Signup</h2>
<div class="form-group">
<label for="name"><b>Full Name</b></label>
<input type="text" class="form-control" id="name" placeholder="Enter Full Name" name="name"
required>
required pattern="[a-zA-Z ]+"
oninvalid="this.setCustomValidity('Numbers and Symbols are not allowed')"
oninput="this.setCustomValidity('')">
</div>
<div class="form-group">
<label for="signupEmail"><b>Email</b></label>
Expand Down
5 changes: 4 additions & 1 deletion blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ <h2 class="text-center">Login</h2>
<h2 class="text-center">Signup</h2>
<div class="form-group">
<label for="name"><b>Full Name</b></label>
<input type="text" class="form-control" id="name" placeholder="Enter Full Name" name="name" required>
<input type="text" class="form-control" id="name" placeholder="Enter Full Name" name="name"
required pattern="[a-zA-Z ]+"
oninvalid="this.setCustomValidity('Numbers and Symbols are not allowed')"
oninput="this.setCustomValidity('')">
</div>
<div class="form-group">
<label for="signupEmail"><b>Email</b></label>
Expand Down
5 changes: 4 additions & 1 deletion category.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ <h2 class="text-center">Login</h2>
<h2 class="text-center">Signup</h2>
<div class="form-group">
<label for="name"><b>Full Name</b></label>
<input type="text" class="form-control" id="name" placeholder="Enter Full Name" name="name" required>
<input type="text" class="form-control" id="name" placeholder="Enter Full Name" name="name"
required pattern="[a-zA-Z ]+"
oninvalid="this.setCustomValidity('Numbers and Symbols are not allowed')"
oninput="this.setCustomValidity('')">
</div>
<div class="form-group">
<label for="signupEmail"><b>Email</b></label>
Expand Down
15 changes: 13 additions & 2 deletions contact_us.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,10 @@ <h2 class="text-center">Login</h2>
<h2 class="text-center">Signup</h2>
<div class="form-group">
<label for="name"><b>Full Name</b></label>
<input type="text" class="form-control" id="name" placeholder="Enter Full Name" name="name" required>
<input type="text" class="form-control" id="name" placeholder="Enter Full Name" name="name"
required pattern="[a-zA-Z ]+"
oninvalid="this.setCustomValidity('Numbers and Symbols are not allowed')"
oninput="this.setCustomValidity('')">
</div>
<div class="form-group">
<label for="signupEmail"><b>Email</b></label>
Expand All @@ -187,7 +190,15 @@ <h2 class="text-center">Signup</h2>
required minlength="6">
<i class="bi bi-eye eye-icon" id="toggleConfirmPassword"
onclick="togglePasswordVisibility('confirmPsw', 'toggleConfirmPassword')"></i>
main


<!-- Added missing button -->

<button type="submit" class="btn btn-primary w-100 mb-3">SIGNUP</button>
<!-- Google Sign-In Button -->
<button type="button" class="btn google-btn" onclick="handleGoogleLogin()">
<img src="./assets/google_icon.jpg" alt="Google Logo" class="google-logo">
Sign in with Google</button>
</div>
</div>

Expand Down
10 changes: 8 additions & 2 deletions give_feedback.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,10 @@ <h2 class="text-center">Login</h2>
<h2 class="text-center">Signup</h2>
<div class="form-group">
<label for="name"><b>Full Name</b></label>
<input type="text" class="form-control" id="name" placeholder="Enter Full Name" name="name" required>
<input type="text" class="form-control" id="name" placeholder="Enter Full Name" name="name"
required pattern="[a-zA-Z ]+"
oninvalid="this.setCustomValidity('Numbers and Symbols are not allowed')"
oninput="this.setCustomValidity('')">
</div>
<div class="form-group">
<label for="signupEmail"><b>Email</b></label>
Expand Down Expand Up @@ -253,7 +256,10 @@ <h2 class="text-center">Login</h2>
<h2 class="text-center">Signup</h2>
<div class="form-group">
<label for="name"><b>Full Name</b></label>
<input type="text" class="form-control" id="name" placeholder="Enter Full Name" name="name" required>
<input type="text" class="form-control" id="name" placeholder="Enter Full Name" name="name"
required pattern="[a-zA-Z ]+"
oninvalid="this.setCustomValidity('Numbers and Symbols are not allowed')"
oninput="this.setCustomValidity('')">
</div>
<div class="form-group">
<label for="signupEmail"><b>Email</b></label>
Expand Down
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ <h2 class="text-center">Login</h2>
<h2 class="text-center">Signup</h2>
<div class="form-group">
<label for="name"><b>Full Name</b></label>
<input type="text" class="form-control" id="name" placeholder="Enter Full Name" name="name" required="">
<input type="text" class="form-control" id="name" placeholder="Enter Full Name" name="name" required pattern="[a-zA-Z ]+"
oninvalid="this.setCustomValidity('Numbers and Symbols are not allowed')"
oninput="this.setCustomValidity('')">
</div>
<div class="form-group">
<label for="signupEmail"><b>Email</b></label>
Expand Down
5 changes: 4 additions & 1 deletion privacy.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ <h2 class="text-center">Login</h2>
<h2 class="text-center">Signup</h2>
<div class="form-group">
<label for="name"><b>Full Name</b></label>
<input type="text" class="form-control" id="name" placeholder="Enter Full Name" name="name" required>
<input type="text" class="form-control" id="name" placeholder="Enter Full Name" name="name"
required pattern="[a-zA-Z ]+"
oninvalid="this.setCustomValidity('Numbers and Symbols are not allowed')"
oninput="this.setCustomValidity('')">
</div>
<div class="form-group">
<label for="signupEmail"><b>Email</b></label>
Expand Down
5 changes: 4 additions & 1 deletion start_writing.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,10 @@ <h2 class="text-center">Login</h2>
<h2 class="text-center">Signup</h2>
<div class="form-group">
<label for="name"><b>Full Name</b></label>
<input type="text" class="form-control" id="name" placeholder="Enter Full Name" name="name" required>
<input type="text" class="form-control" id="name" placeholder="Enter Full Name" name="name"
required pattern="[a-zA-Z ]+"
oninvalid="this.setCustomValidity('Numbers and Symbols are not allowed')"
oninput="this.setCustomValidity('')">
</div>
<div class="form-group">
<label for="signupEmail"><b>Email</b></label>
Expand Down
Loading