-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtodo.html
55 lines (49 loc) · 1.88 KB
/
todo.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Todo</title>
<!-- Bootstrap -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="js/todo.js"></script>
</head>
<body>
<div class="container">
<h1 class="header">Todo List</h1>
<div class="row">
<div class="col-8">
<form id="todo-form" class="m-4">
<h3 class="form-title">Add Todo</h3>
<div class="form-group">
<input type="text" class="form-control" id="todo" placeholder="Enter Todo" required>
</div>
<div class="form-group">
<input type="text" class="form-control" id="desc" placeholder="Description" required>
</div>
<button type="submit" class="btn btn-success" onclick="addTodoFormHandler(event)">Submit</button>
</form>
</div>
<div class="col-4">
<h3 class="form-title">List Todo</h3>
<button type="submit" class="btn btn-success" onclick="listAllTodoFormHandler(event)">List
All</button>
<button type="submit" class="btn btn-success" onclick="listCompletedTodoFormHandler(event)">List
Completed</button>
</div>
</div>
<table class="m-4 table table-striped">
<thead>
<tr>
<th>#</th>
<th>Title</th>
<th>Description</th>
<th>Completed</th>
<th>Delete</th>
</tr>
</thead>
<tbody id="todo-table"></tbody>
</table>
</div>
</body>
</html>