-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanager.html
More file actions
93 lines (84 loc) · 2.67 KB
/
Copy pathmanager.html
File metadata and controls
93 lines (84 loc) · 2.67 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Manager Dashboard</title>
<style>
body {
margin: 0;
font-family: Arial, sans-serif;
background-color: #f4f7f6;
padding: 20px;
}
h2, h3 {
color: #333;
}
.task-form, .task-list {
background-color: white;
padding: 20px;
margin: 10px 0;
border-radius: 10px;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
input, textarea, select {
width: 100%;
padding: 10px;
margin: 10px 0;
border: 1px solid #ddd;
border-radius: 5px;
}
button {
padding: 10px;
background-color: #007BFF;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background-color: #0056b3;
}
.task-card {
padding: 15px;
margin: 10px 0;
border: 1px solid #ddd;
border-radius: 5px;
}
</style>
</head>
<body>
<div class="dashboard-container">
<h2>Manager Dashboard</h2>
<div class="task-form">
<h3>Assign Task</h3>
<form method="POST" action="/manager">
<input type="text" name="task_title" placeholder="Task Title" required>
<textarea name="task_description" placeholder="Task Description" required></textarea>
<!-- Dropdown for employees -->
<select name="assigned_to" required>
<option value="" disabled selected>Select Employee</option>
{% for employee in employees %}
<option value="{{ employee.username }}">{{ employee.username }}</option>
{% endfor %}
</select>
<button type="submit">Assign Task</button>
</form>
</div>
<div class="task-list">
<h3>Assigned Tasks</h3>
{% if tasks %}
{% for task in tasks %}
<div class="task-card">
<p><strong>Task:</strong> {{ task.title }}</p>
<p><strong>Assigned to:</strong> {{ task.assigned_to }}</p>
<p><strong>Status:</strong> {{ task.status }}</p>
</div>
{% endfor %}
{% else %}
<p>No tasks assigned yet.</p>
{% endif %}
</div>
</div>
</body>
</html>