-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
214 lines (206 loc) · 10.1 KB
/
index.html
File metadata and controls
214 lines (206 loc) · 10.1 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
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
<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8">
<base target="_top">
<title>Task Manager</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
<?!= include('style'); ?>
</style>
</head>
<body>
<div class="container">
<header>
<h1>Task Manager</h1>
<div class="theme-toggle">
<button id="themeToggle" aria-label="Toggle dark mode">
<svg class="sun-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
<svg class="moon-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
</button>
</div>
<div id="userInfo" class="user-info" style="display:none;">
Logged in as: <span id="loggedInUser"></span>
<button id="logoutButton">Logout</button>
</div>
</header>
<div id="loginSection">
<h2>Login</h2>
<form id="loginForm">
<input type="text" id="username" placeholder="Username" required>
<input type="password" id="password" placeholder="Password" required>
<button type="submit" id="loginButton">Login</button>
</form>
<p id="loginError" class="error-message"></p>
</div>
<div id="taskSection" style="display:none;">
<div class="task-layout">
<div class="task-creation-column">
<div class="task-creation-header">
<h2>Create New Task</h2>
<button id="toggleFormBtn" class="toggle-btn" title="Hide/Show Form">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="15 6 9 12 15 18"></polyline>
</svg>
</button>
</div>
<div id="taskFormContainer" class="task-creation-panel">
<form id="taskForm">
<div class="form-group">
<label for="videoLink">Video Link (optional)</label>
<input type="url" id="videoLink" placeholder="https://...">
</div>
<div class="form-group">
<label for="taskPriority">Priority</label>
<select id="taskPriority">
<option value="Low">Low</option>
<option value="Medium" selected>Medium</option>
<option value="High">High</option>
</select>
</div>
<div class="form-group">
<label for="taskDescription">Task Description</label>
<textarea id="taskDescription" placeholder="Describe the task..." required></textarea>
</div>
<div class="form-group">
<button type="submit" id="addTaskButton">Add Task</button>
</div>
</form>
<p id="taskFormError" class="error-message"></p>
</div>
</div>
<div class="task-list-column">
<h2>Task Board</h2>
<div class="filters">
<div class="filter-group">
<label for="statusFilter">Filter by status:</label>
<select id="statusFilter">
<option value="all">All</option>
<option value="Open">Open</option>
<option value="In Progress">In Progress</option>
<option value="Solved">Solved</option>
</select>
</div>
<div class="filter-group">
<label for="assigneeFilter">Filter by assignee:</label>
<select id="assigneeFilter">
<option value="all">All Users</option>
<option value="me">Assigned to Me</option>
<option value="unassigned">Unassigned</option>
</select>
</div>
<div class="filter-group">
<label for="priorityFilter">Filter by priority:</label>
<select id="priorityFilter">
<option value="all">All Priorities</option>
<option value="High">High</option>
<option value="Medium">Medium</option>
<option value="Low">Low</option>
</select>
</div>
<div class="filter-group">
<label for="sortBy">Sort by:</label>
<select id="sortBy">
<option value="newest">Newest First</option>
<option value="oldest">Oldest First</option>
<option value="priority">Priority</option>
</select>
</div>
</div>
<div id="taskList" class="task-list-view">
</div>
</div>
</div>
</div>
</div>
<!-- Edit Task Modal -->
<div id="editTaskModal" class="modal">
<div class="modal-content">
<span class="close-button">×</span>
<h2 id="editModalTitle">Edit Task / Add Solution</h2>
<form id="editTaskForm">
<input type="hidden" id="editTaskId">
<input type="hidden" id="editParentTaskId">
<div>
<label for="editVideoLink">Video Link:</label>
<input type="url" id="editVideoLink">
</div>
<div>
<label for="editTaskDescription">Task Description:</label>
<textarea id="editTaskDescription" required></textarea>
</div>
<div>
<label for="editSolution">Solution:</label>
<textarea id="editSolution"></textarea>
</div>
<div class="form-row">
<div class="form-group">
<label for="editStatus">Status:</label>
<select id="editStatus">
<option value="Open">Open</option>
<option value="In Progress">In Progress</option>
<option value="Solved">Solved</option>
</select>
</div>
</div>
<div>
<label for="editPriority">Priority:</label>
<select id="editPriority">
<option value="Low">Low</option>
<option value="Medium">Medium</option>
<option value="High">High</option>
</select>
</div>
<button type="submit" id="saveTaskButton">Save Changes</button>
</form>
<p id="editTaskError" class="error-message"></p>
</div>
</div>
<!-- Create Child Task Modal -->
<div id="childTaskModal" class="modal">
<div class="modal-content">
<span class="close-button child-close-button">×</span>
<h2>Create Child Task</h2>
<p class="parent-task-info">Parent Task: <span id="parentTaskDescription"></span></p>
<form id="childTaskForm">
<input type="hidden" id="parentTaskId">
<div>
<label for="childVideoLink">Video Link (optional):</label>
<input type="url" id="childVideoLink">
</div>
<div>
<label for="childTaskDescription">Task Description:</label>
<textarea id="childTaskDescription" required></textarea>
</div>
<div>
<label for="childPriority">Priority:</label>
<select id="childPriority">
<option value="Low">Low</option>
<option value="Medium" selected>Medium</option>
<option value="High">High</option>
</select>
</div>
<button type="submit" id="addChildTaskButton">Create Child Task</button>
</form>
<p id="childTaskError" class="error-message"></p>
</div>
</div>
<div class="toast-container" id="toastContainer">
</div>
<script>
<?!= include('script'); ?>
</script>
</body>
</html>