-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
243 lines (234 loc) · 8.93 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
<!DOCTYPE html>
<html lang="en-Au">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=yes"
/>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="./style.css" type="text/css" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2"
crossorigin="anonymous"
/>
<!-- CSS Stylesheet-->
<link rel="stylesheet" href="./style.css" type="text/css" />
<title>Task Planner</title>
</head>
<body>
<div class="container">
<header id="pageTitle">
<h1>Task Planner</h1>
</header>
<!-- Row for header button & filter START -->
<div class="row header-buttons">
<!-- Create Task button triggers Task modal -->
<button
type="button"
class="btn btn-primary"
data-toggle="modal"
data-target="#createTaskModal"
id="createTaskButton"
>
Create Task
</button>
<!--Dropdown filter to select tasks by status-->
<div class="dropdown">
<button
class="btn btn-default dropdown-toggle"
type="button"
id="statusFilter"
data-toggle="dropdown"
>
Filter tasks by status
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu" aria-labelledby="statusFilter">
<li role="presentation">
<a role="menuitem" tabindex="-1" href="#">To do</a>
</li>
<li role="presentation">
<a role="menuitem" tabindex="-1" href="#">In progress</a>
</li>
<li role="presentation">
<a role="menuitem" tabindex="-1" href="#">Review</a>
</li>
<li role="presentation" class="divider"></li>
<li role="presentation">
<a role="menuitem" tabindex="-1" href="#">Done</a>
</li>
</ul>
</div>
</div>
<!--Row for button and filter END-->
<!--Modal (to open on click of Create Task Button) START-->
<div
class="modal fade"
id="createTaskModal"
tabindex="-1"
aria-labelledby="createTaskModalLabel"
aria-hidden="true"
>
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="createTaskModalLabel">Create Task</h5>
<button
type="button"
class="close"
data-dismiss="modal"
aria-label="Close"
>
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<!--FORM CONTENT START-->
<section class="task-input-form">
<!--DOES THIS ^^^ BELONG HERE? moved from before modal opened-->
<form id="newTaskForm">
<!--Task name input-->
<div class="form-group row">
<label
for="newTaskNameInput"
class="col-sm-3 col-form-label"
>
Task name
</label>
<div class="col-sm-9">
<input
type="text"
class="form-control"
id="newTaskNameInput"
autofocus
/>
</div>
</div>
<!--assignedTo input-->
<div class="form-group row">
<label
for="newTaskAssignedTo"
class="col-sm-3 col-form-label"
>
Assigned to
</label>
<div class="col-sm-9">
<input
type="text"
class="form-control"
id="newTaskAssignedTo"
/>
</div>
</div>
<!--Description textarea input-->
<div class="form-group row">
<label
for="newTaskDescription"
class="col-sm-3 col-form-label"
>
Description
</label>
<div class="col-sm-9">
<textarea
class="form-control"
rows="5"
id="newTaskDescription"
></textarea>
</div>
</div>
<!--Status dropdown input-->
<div class="form-group row">
<label for="newTaskStatus" class="col-sm-3 col-form-label">
Status:
</label>
<div class="col-sm-9">
<select class="form-control" id="newTaskStatus">
<option selected value="TO DO">To do</option>
<option value="IN PROGRESS">In progress</option>
<option value="REVIEW">Review</option>
<option value="DONE">Done</option>
</select>
</div>
</div>
<!--dueDate input-->
<div class="form-group row">
<label for="newTaskDueDate" class="col-sm-3 col-form-label">
Due date
</label>
<div class="col-sm-9 date">
<input
type="date"
class="form-control"
id="newTaskDueDate"
min="2021-01-15"
/>
</div>
</div>
<!-- <div class="modal-footer"> if we want a footer-->
<!-- Close button-->
<div class="form-group" id="modal-footer">
<button
type="button"
class="btn btn-danger"
data-dismiss="modal"
>
Close
</button>
<!-- Submit button-->
<button
type="submit"
class="btn btn-success"
data-dismiss=""
>
Save
</button>
</div>
<!-- Form Validation Error Message-->
<div
id="formErrorMessage"
style="display: none"
class="alert alert-danger text-center"
role="alert"
>
Error
</div>
</form>
</section>
<!-- FORM CONTENT END-->
</div>
</div>
</div>
</div>
<!--Modal END-->
<!--Task cards container START-->
<div class="d-flex flex-wrap justify-content-center" id="card-container">
<!-- Task cards are pushed from JS into the card container here. https://getbootstrap.com/docs/4.0/components/card/ -->
<!-- Task Card Container END-->
</div>
<!--Footer-->
</div>
<!-- Optional JavaScript; choose one of the two! -->
<!-- Option 1: jQuery and Bootstrap Bundle (includes Popper) -->
<script
src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx"
crossorigin="anonymous"
></script>
<!-- Option 2: jQuery, Popper.js, and Bootstrap JS -->
<!-- <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-w1Q4orYjBQndcko6MimVbzY0tgp4pWB4lZ7lr30WKz0vr/aWKhXdBNmNb5D92v7s" crossorigin="anonymous"></script> -->
<!-- JS page link -->
<script src="js/taskManager.js"></script>
<script src="js/index.js"></script>
</body>
</html>