-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
145 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<% layout("/layouts/boilerplate") -%> | ||
<div class="row justify-content-center my-5"> | ||
<div class="col-md-6 col-lg-5"> | ||
<div class="card shadow-lg border-0 rounded"> | ||
<div class="card-body p-4"> | ||
<h1 class="text-center mb-4 display-6" style="color: black; font-weight: bold;">Forgot Password</h1> | ||
<form action="/forgot" method="POST" class="needs-validation" novalidate> | ||
<div class="mb-3"> | ||
<label for="email" class="form-label">Email</label> | ||
<input name="email" id="email" placeholder="Enter your email" type="email" | ||
class="form-control form-control-lg rounded-pill" required> | ||
<div class="valid-feedback"> | ||
Looks good! | ||
</div> | ||
<div class="invalid-feedback"> | ||
Please enter a valid email. | ||
</div> | ||
</div> | ||
|
||
<button type="submit" class="btn btn-success w-100 btn-lg rounded-pill mt-3">Reset | ||
Password</button> | ||
</form> | ||
<div class="text-center mt-3"> | ||
<a href="/login" class="text-decoration-none" style="color: black; font-weight: bold;">Back to | ||
Login</a> | ||
</div> | ||
<p class="text-center mt-4"> | ||
Don't have an account? <a href="/signup" class="text-decoration-none">Sign Up</a> | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<!-- Bootstrap form validation --> | ||
<script> | ||
// Example starter JavaScript for disabling form submissions if there are invalid fields | ||
(function () { | ||
'use strict' | ||
var forms = document.querySelectorAll('.needs-validation') | ||
Array.prototype.slice.call(forms).forEach(function (form) { | ||
form.addEventListener('submit', function (event) { | ||
if (!form.checkValidity()) { | ||
event.preventDefault() | ||
event.stopPropagation() | ||
} | ||
form.classList.add('was-validated') | ||
}, false) | ||
}) | ||
})() | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,61 @@ | ||
<% layout("/layouts/boilerplate") -%> | ||
<div class="row justify-content-center my-5"> | ||
<div class="col-md-6 col-lg-5"> | ||
<div class="card shadow-lg border-0 rounded"> | ||
<div class="card-body p-4"> | ||
<h1 class="text-center mb-4 display-6" style="color: black; font-weight: bold;">Log In</h1> | ||
<form action="/login" method="POST" class="needs-validation" novalidate> | ||
<div class="mb-3"> | ||
<label for="email" class="form-label">Email</label> | ||
<input name="email" id="email" placeholder="Enter your email" type="email" class="form-control form-control-lg rounded-pill" required> | ||
<div class="valid-feedback"> | ||
Looks good! | ||
<div class="row justify-content-center my-5"> | ||
<div class="col-md-6 col-lg-5"> | ||
<div class="card shadow-lg border-0 rounded"> | ||
<div class="card-body p-4"> | ||
<h1 class="text-center mb-4 display-6" style="color: black; font-weight: bold;">Log In</h1> | ||
<form action="/login" method="POST" class="needs-validation" novalidate> | ||
<div class="mb-3"> | ||
<label for="email" class="form-label">Email</label> | ||
<input name="email" id="email" placeholder="Enter your email" type="email" | ||
class="form-control form-control-lg rounded-pill" required> | ||
<div class="valid-feedback"> | ||
Looks good! | ||
</div> | ||
<div class="invalid-feedback"> | ||
Please enter a valid email. | ||
</div> | ||
</div> | ||
<div class="invalid-feedback"> | ||
Please enter a valid email. | ||
</div> | ||
</div> | ||
|
||
<div class="mb-3"> | ||
<label for="password" class="form-label">Password</label> | ||
<input name="password" id="password" placeholder="Enter your password" type="password" class="form-control form-control-lg rounded-pill" required> | ||
<div class="valid-feedback"> | ||
Looks good! | ||
</div> | ||
<div class="invalid-feedback"> | ||
Please enter a valid password. | ||
<div class="mb-3"> | ||
<label for="password" class="form-label">Password</label> | ||
<input name="password" id="password" placeholder="Enter your password" type="password" | ||
class="form-control form-control-lg rounded-pill" required> | ||
<div class="valid-feedback"> | ||
Looks good! | ||
</div> | ||
<div class="invalid-feedback"> | ||
Please enter a valid password. | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<button type="submit" class="btn btn-success w-100 btn-lg rounded-pill mt-3">Log In</button> | ||
</form> | ||
<p class="text-center mt-4"> | ||
Don't have an account? <a href="/signup" class="text-decoration-none">Sign Up</a> | ||
</p> | ||
<button type="submit" class="btn btn-success w-100 btn-lg rounded-pill mt-3">Log In</button> | ||
</form> | ||
<div class="text-center mt-3"> | ||
<a href="/forgot" class="text-decoration-none" style="color: black; font-weight: bold;">Forgot Password?</a> | ||
</div> | ||
<p class="text-center mt-4"> | ||
Don't have an account? <a href="/signup" class="text-decoration-none">Sign Up</a> | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<!-- Bootstrap form validation --> | ||
<script> | ||
// Example starter JavaScript for disabling form submissions if there are invalid fields | ||
(function () { | ||
'use strict' | ||
var forms = document.querySelectorAll('.needs-validation') | ||
Array.prototype.slice.call(forms).forEach(function (form) { | ||
form.addEventListener('submit', function (event) { | ||
if (!form.checkValidity()) { | ||
event.preventDefault() | ||
event.stopPropagation() | ||
} | ||
form.classList.add('was-validated') | ||
}, false) | ||
}) | ||
})() | ||
</script> | ||
<!-- Bootstrap form validation --> | ||
<script> | ||
// Example starter JavaScript for disabling form submissions if there are invalid fields | ||
(function () { | ||
'use strict' | ||
var forms = document.querySelectorAll('.needs-validation') | ||
Array.prototype.slice.call(forms).forEach(function (form) { | ||
form.addEventListener('submit', function (event) { | ||
if (!form.checkValidity()) { | ||
event.preventDefault() | ||
event.stopPropagation() | ||
} | ||
form.classList.add('was-validated') | ||
}, false) | ||
}) | ||
})() | ||
</script> |