-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: added forms for user handling
- Loading branch information
1 parent
20b5367
commit cc53aa3
Showing
18 changed files
with
221 additions
and
6 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
Empty file.
Empty file.
Empty file.
Empty file.
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,24 @@ | ||
import {html} from "../../packages/arrow.js" | ||
|
||
const contactForm = html` | ||
<form> | ||
<div class="formGroup"> | ||
<label for="CurrentPassword">Current Password</label> | ||
<input type="password" name="CurrentPassword" id="inputCurrentPassword"/> | ||
</div> | ||
<div class="formGroup"> | ||
<label for="NewPassword">New Password</label> | ||
<input type="password" name="NewPassword" id="inputNewPassword"> | ||
</div> | ||
<div class="formGroup"> | ||
<label for="VerifyNewPassword">Verify New Password</label> | ||
<input type="password" name="VerifyNewPassword" id="inputVerifyNewPassword"> | ||
</div> | ||
<div class="formGroup"> | ||
<button type="submit">Send</button> | ||
<button type="reset">Clear</button> | ||
</div> | ||
</form> | ||
` | ||
|
||
export default contactForm; |
2 changes: 1 addition & 1 deletion
2
app/static/js/components/contactForm.js → ...static/js/components/forms/contactForm.js
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,4 +1,4 @@ | ||
import {html} from "../packages/arrow.js" | ||
import {html} from "../../packages/arrow.js" | ||
|
||
|
||
|
||
|
2 changes: 1 addition & 1 deletion
2
app/static/js/components/contentForm.js → ...static/js/components/forms/contentForm.js
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,16 @@ | ||
import {html} from "../../packages/arrow.js" | ||
|
||
const contactForm = html` | ||
<form> | ||
<div class="formGroup"> | ||
<label for="Email">Email</label> | ||
<input type="password" name="VerifyNewPassword" id="inputVerifyNewPassword"> | ||
</div> | ||
<div class="formGroup"> | ||
<button type="submit">Send</button> | ||
<button type="reset">Clear</button> | ||
</div> | ||
</form> | ||
` | ||
|
||
export default contactForm; |
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,20 @@ | ||
import {html} from "../../packages/arrow.js" | ||
|
||
const loginForm = html` | ||
<form> | ||
<div class="formGroup"> | ||
<label for="Username">Username</label> | ||
<input type="text" name="Username" id="inputUsername" required/> | ||
</div> | ||
<div class="formGroup"> | ||
<label for="Pasword">Email</label> | ||
<input type="password" name="Password" id="inputPassword" required> | ||
</div> | ||
<div class="formGroup"> | ||
<button type="submit">Send</button> | ||
<button type="reset">Clear</button> | ||
</div> | ||
</form> | ||
` | ||
|
||
export default loginForm; |
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,28 @@ | ||
import {html} from "../../packages/arrow.js" | ||
|
||
const loginForm = html` | ||
<form id="registerForm"> | ||
<div class="formGroup"> | ||
<label for="Username">Username</label> | ||
<input type="text" name="Username" id="inputUsername" required/> | ||
</div> | ||
<div class="formGroup"> | ||
<label for="Email">Email</label> | ||
<input type="email" name="Email" id="inputEmail" required> | ||
</div> | ||
<div class="formGroup"> | ||
<label for="Pasword">Password</label> | ||
<input type="password" name="Password" id="inputPassword" required> | ||
</div> | ||
<div class="formGroup"> | ||
<label for="VerifyPasword">Verify Password</label> | ||
<input type="password" name="VerifyPassword" id="inputVarifyPassword" required> | ||
</div> | ||
<div class="formGroup"> | ||
<button type="submit">Send</button> | ||
<button type="reset">Clear</button> | ||
</div> | ||
</form> | ||
` | ||
|
||
export default loginForm; |
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
Empty file.
Empty file.
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,34 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Login</title> | ||
<script src="{{ url_for('static', filename='js/packages/htmx.min.js') }}"></script> | ||
<link rel="stylesheet" href="{{ url_for('static', filename='css/animations.css') }}"> | ||
<link rel="stylesheet" href= "{{ url_for('static', filename='css/style.css') }}"></link> | ||
<link rel="stylesheet" href= "{{ url_for('static', filename='css/inputStyling.css') }}"></link> | ||
<link rel="stylesheet" href= "{{ url_for('static', filename='css/forms/formsGeneralStyling.css') }}"></link> | ||
<link rel="stylesheet" href= "{{ url_for('static', filename='css/pages/contactme/contactMeLayout.css') }}"></link> | ||
</head> | ||
<body> | ||
<div id="navbar-root"> | ||
</div> | ||
<hr class="nav-line-break"> | ||
<div id="content-root"> | ||
</div> | ||
<script type="module"> | ||
//Imports | ||
import navbar from "{{ url_for('static', filename='js/components/navbar.js') }}" | ||
import loginForm from "{{ url_for('static', filename='js/components/loginForm.js') }}" | ||
|
||
//Grabs elements in DOM to attach to | ||
const headerRoot = document.getElementById("navbar-root") | ||
const contentRoot = document.getElementById("content-root") | ||
|
||
//attaches content to DOM | ||
navbar(headerRoot) | ||
loginForm(contentRoot) | ||
</script> | ||
</body> | ||
</html> |
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,33 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Register</title> | ||
<script src="{{ url_for('static', filename='js/packages/htmx.min.js') }}"></script> | ||
<link rel="stylesheet" href="{{ url_for('static', filename='css/animations.css') }}"> | ||
<link rel="stylesheet" href= "{{ url_for('static', filename='css/style.css') }}"></link> | ||
<link rel="stylesheet" href= "{{ url_for('static', filename='css/inputStyling.css') }}"></link> | ||
<link rel="stylesheet" href= "{{ url_for('static', filename='css/forms/formsGeneralStyling.css') }}"></link> | ||
</head> | ||
<body> | ||
<div id="navbar-root"> | ||
</div> | ||
<hr class="nav-line-break"> | ||
<div id="content-root"> | ||
</div> | ||
<script type="module"> | ||
//Imports | ||
import navbar from "{{ url_for('static', filename='js/components/navbar.js') }}" | ||
import registerForm from "{{ url_for('static', filename='js/components/registerForm.js') }}" | ||
|
||
//Grabs elements in DOM to attach to | ||
const headerRoot = document.getElementById("navbar-root") | ||
const contentRoot = document.getElementById("content-root") | ||
|
||
//attaches content to DOM | ||
navbar(headerRoot) | ||
registerForm(contentRoot) | ||
</script> | ||
</body> | ||
</html> |
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