Skip to content

Commit

Permalink
added tasks page
Browse files Browse the repository at this point in the history
  • Loading branch information
fawzi-iit committed Dec 4, 2023
1 parent 2f6513a commit fb6207c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ <h1><a href="#" id="dashboardLink" title="Home">Project Dashboard</a></h1>

<!-- Project List Link -->
<a href="projects.html" id="projectListButton" class="button-like">Project List</a>

<!-- Task List Link -->
<a href="tasks.html" id="tasksPageButton" class="button-like">Tasks List</a>
</div>


Expand Down
8 changes: 8 additions & 0 deletions public/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ document.addEventListener('DOMContentLoaded', function() {
});
});

// Event listener for navigating to the tasks page
const tasksPageButton = document.getElementById('tasksPageButton'); // Replace with your actual button ID
if (tasksPageButton) {
tasksPageButton.addEventListener('click', function() {
window.location.href = '/tasks.html';
});
}

// Add event listener for task update form
document.addEventListener('DOMContentLoaded', function() {
const updateForms = document.querySelectorAll('.task-update-form'); // Adjust selector as needed
Expand Down
25 changes: 25 additions & 0 deletions public/tasks.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Task List</title>
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<header>
<h1>Task List</h1>
<a href="index.html" class="button-like">Dashboard</a>
</header>

<div id="tasks" class="main">
<!-- Tasks will be loaded here -->
</div>

<footer>
<p>© 2023 Project Management Tool by Fawzi Mahmoud</p>
</footer>

<script src="/js/tasks.js"></script> <!-- You might need to create this -->
</body>
</html>

0 comments on commit fb6207c

Please sign in to comment.