-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtasks.html
More file actions
32 lines (32 loc) · 1.03 KB
/
tasks.html
File metadata and controls
32 lines (32 loc) · 1.03 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Task Manager</title>
</head>
<body>
<h1>Task Manager</h1>
<h2>Welcome, User!</h2>
<form method="post" action="{{ url_for('tasks') }}">
<label for="title">Task Title:</label>
<input type="text" id="title" name="title" placeholder="Enter Task Title" required>
<br>
<label for="description">Task Description:</label>
<input type="text" id="description" name="description" placeholder="Enter Task Description">
<br>
<button type="submit">Add Task</button>
</form>
<h3>Your Tasks</h3>
<ul>
{% for task in tasks %}
<li>
<strong>{{ task.title }}</strong>: {{ task.description }}
<a href="{{ url_for('delete_task', id=task.id) }}">Delete</a>
</li>
{% endfor %}
</ul>
<br>
<a href="{{ url_for('logout') }}">Logout</a>
</body>
</html>