-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
254 lines (233 loc) · 9.91 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>T6 - Task Planner</title>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
crossorigin="anonymous">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="stylesheet" href="./css/style.css">
</head>
<body>
<!-- Navbar -->
<nav class="navbar fixed-top bg-primary">
<div class="container-fluid">
<a class="navbar-brand navbar-logo"
href="https://ghana.generation.org/"><img
src="./gen_logo_white.svg"
alt="Generation logo"
style="height: 28px" /></a>
<button class="navbar-toggler" type="button" data-bs-toggle="offcanvas"
data-bs-target="#offcanvasNavbar" aria-controls="offcanvasNavbar"
aria-label="Toggle navigation">
<i class="fas fa-bars" style="color: #ffffff; font-size:28px;"></i>
</button>
<div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasNavbar"
aria-labelledby="offcanvasNavbarLabel">
<div class="offcanvas-header">
<h4 class="offcanvas-title" id="offcanvasNavbarLabel">Task Planner
Navigation</h4>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas"
aria-label="Close"></button>
</div>
<hr>
<div class="offcanvas-body">
<ul class="navbar-nav justify-content-end flex-grow-1 pe-3">
<li class="nav-item text-center">
<a class="nav-link active" aria-current="page"
href="https://ghana.generation.org/"><img
src="./gen_logo_blue.svg"
alt="Generation logo"
style="height: 32px" /></a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
Task Category
</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#toDoTasks">To Do</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#inProgressTasks">In
Progress</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#doneTasks">Done</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
Developers
</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item"
href="https://github.com/reuben-idan">Reuben</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item"
href="https://github.com/Amankwaa97">Jessica</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item"
href="https://github.com/atok624">Nicholas</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item"
href="https://github.com/FranObaze">Frances</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item"
href="https://github.com/Godwinkay">Godwin</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item"
href="https://github.com/gideonagyage">Gideon</a></li>
</ul>
</li>
</ul>
<div class="d-flex mt-3 input-group mb-3" role="search">
<input type="search" class="form-control search-input"
placeholder="Search task..." aria-label="Search"
id="searchInput">
<button class="btn search-btn" type="button" id="searchBtn">
<img
src="./search.svg"
alt="search"
style="height: 22px; width: auto;" />
</button>
</div>
<!-- Github Link -->
<div class="offcanvas-body text-center mb-4">
<a class="text-decoration-none text-black"
href="https://github.com/reuben-idan/Team-6-Task-Planner-App"
class="text-white"><h5><img
src="./github_black.svg"
alt="github"
style="height: 30px; margin-right: 10px;" />Discover This Project</h5></a>
</div>
</div>
</div>
</div>
</nav>
<!-- Main Content -->
<main class="mt-3">
<!-- The Form -->
<div id="form-top"></div>
<div class="contain justify-content-center">
<div class="card corner m-5 mb-2">
<!-- Title of card -->
<div class="card-header">
<div class="card-title">
<h3 class="text-center">Task Planner</h3>
</div>
</div>
<!-- Main Form -->
<div class="card-body">
<form id="taskForm">
<div class="form-group">
<label for="name">Task Name:</label>
<input type="text" class="form-control" id="name" required>
</div>
<div class="form-group">
<label for="description">Task Description:</label>
<textarea class="form-control" id="description"
required></textarea>
</div>
<div class="form-group">
<label for="assignedTo">Assigned To:</label>
<input type="text" class="form-control" id="assignedTo"
required>
</div>
<div class="form-group">
<label for="dueDate">Due Date:</label>
<input type="date" class="form-control" id="dueDate" required>
</div>
<div class="form-group">
<label for="status">Status:</label>
<select class="form-control" id="status" required>
<option value>Select Status</option>
<option value="To Do">To Do</option>
<option value="In Progress">In Progress</option>
<option value="Done">Done</option>
</select>
</div>
<div class="d-flex flex-row mt-3">
<button type="submit" class="btn btn-primary" id="saveBtn">Add
Task</button>
<button type="submit" class="btn btn-primary me-3"
id="updateBtn"
style="display: none;">Update</button>
<button class="btn btn-danger" id="cancelBtn"
style="display: none;">Cancel</button>
</div>
</form>
</div>
</div>
</div>
<hr>
<!-- Display of Tasks -->
<div class="row col-12 mt-2" id="taskCards">
<div class="col-md-4">
<h3 class="text-center text-uppercase m-3">To Do</h3>
<div id="toDoTasks"></div>
</div>
<div class="col-md-4">
<h3 class="text-center text-uppercase m-3">In Progress</h3>
<div id="inProgressTasks"></div>
</div>
<div class="col-md-4">
<h3 class="text-center text-uppercase m-3 text-">Done</h3>
<div id="doneTasks"></div>
</div>
</div>
<!-- Modal to confirm Deleting of Task -->
<div class="modal fade" id="modalDeleteTask" tabindex="-1"
aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="exampleModalLabel">Confirm
Deletion of Task</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal"
aria-label="Close"></button>
</div>
<div class="modal-body">
Are you sure you want to delete this task?
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary"
data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-danger" data-bs-dismiss="modal"
id="confirm-delete" href="#form-top">Delete</button>
</div>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer class="footer bg-dark text-white py-3 mt-5">
<div class="container">
<div class="row d-flex align-items-center">
<div class="col-md-6 text-md-start">
<p>©<span id="year"></span> T6 - Task Planner. All rights
reserved.</p>
</div>
<div class="col-md-6 text-md-end">
<a class="text-decoration-none text-white"
href="https://github.com/reuben-idan/Team-6-Task-Planner-App"
class="text-white"><img
src="./github_white.svg"
alt="github"
style="height: 28px; margin-right: 10px;" />Discover This Project</a>
</div>
</div>
</div>
</footer>
<script src="js/index.js"></script>
<script src="js/taskManager.js"></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
</body>
</html>