From 108a854ef8a404a181d4432f2a453c872fb869f5 Mon Sep 17 00:00:00 2001 From: Preston Doman Date: Sat, 19 Jan 2019 00:09:27 -0800 Subject: [PATCH] Add collapsible navbar to all pages --- front/static/dashboard.html | 19 ++++++++++++++++++- front/static/index.html | 25 ++++++++++++++++++++++++- front/static/login.html | 26 +++++++++++++++----------- front/static/logout.js | 5 +++-- front/static/signup.html | 20 ++++++++++++-------- 5 files changed, 72 insertions(+), 23 deletions(-) diff --git a/front/static/dashboard.html b/front/static/dashboard.html index 44506e6..a8b588e 100644 --- a/front/static/dashboard.html +++ b/front/static/dashboard.html @@ -3,6 +3,7 @@ + @@ -10,6 +11,22 @@ Reimbursinator +

Reimbursinator Report

@@ -31,7 +48,7 @@ diff --git a/front/static/index.html b/front/static/index.html index c55dda5..ff26455 100644 --- a/front/static/index.html +++ b/front/static/index.html @@ -3,6 +3,7 @@ + @@ -10,6 +11,28 @@ Reimbursinator +

Reimbursinator

@@ -19,7 +42,7 @@ Sign up
diff --git a/front/static/login.html b/front/static/login.html index 75f3087..5f44283 100644 --- a/front/static/login.html +++ b/front/static/login.html @@ -3,20 +3,24 @@ + - Login + Log in - -

Login Page

-
- username:
- password:
- -
-

- - + +

+

Log in

+
+ username:
+ password:
+ +
+

+ + diff --git a/front/static/logout.js b/front/static/logout.js index 181372e..e7a3a21 100644 --- a/front/static/logout.js +++ b/front/static/logout.js @@ -29,5 +29,6 @@ function postToLogoutEndpoint(event) { xhr.send(); } -const logoutLink = document.querySelector("#logoutLink"); -logoutLink.addEventListener("click", postToLogoutEndpoint); +const logoutLinks = document.querySelectorAll(".log-out-link"); +logoutLinks[0].addEventListener("click", postToLogoutEndpoint); +logoutLinks[1].addEventListener("click", postToLogoutEndpoint); diff --git a/front/static/signup.html b/front/static/signup.html index d8e66fa..7635b4e 100644 --- a/front/static/signup.html +++ b/front/static/signup.html @@ -3,6 +3,7 @@ + @@ -10,14 +11,17 @@ Sign up -

Sign up page

-
- User Name:
- Password:
- Confirm Password:
- - Return to main menu -
+ +

Sign up page

+
+ User Name:
+ Password:
+ Confirm Password:
+ + Return to main menu +