-
Notifications
You must be signed in to change notification settings - Fork 0
/
tasks.html
61 lines (55 loc) · 1.94 KB
/
tasks.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="static/style.css">
<script src="../base1/cockpit.js"></script>
</head>
<body>
<div id="main-container" class="container">
<div id="header" class="header-hidden">
<p id="title">Task Manager</p>
<div id="header-actions">
<button title="Add New Task" id="add-task-btn" onclick="showForm(this)"></button>
<button title="Refresh Tasks" id="refresh-tasks-btn" onclick="refreshTasks()"></button>
</div>
</div>
<!-- Add New Task -->
<div>
<form id="add-task-form" class="form-hidden">
<input id="owner" type="text" placeholder="Owner" required>
<input id="t-title" type="text" placeholder="Title" required>
<input id="description" type="text" placeholder="Description" required>
<button title="Submit Task" id="submit-task" type="submit"> </button>
</form>
</div>
<!-- Edit Existing Task -->
<div>
<form id="edit-task-form" class="form-hidden">
<label id="task-id-edit">x</label>
<input id="edit-owner" type="text" placeholder="Owner">
<input id="edit-title" type="text" placeholder="Title">
<input id="edit-description" type="text" placeholder="Description">
<select id="edit-select-status">
</select>
<button title="Apply Changes" id="submit-task" type="submit"> </button>
<button title="Cancel Changes" id="cancel-edit" onclick="hideEditForm()" type="button"> </button>
</form>
</div>
<!-- Tasks Table -->
<table id="tasks-table">
<tr>
<td>ID</td>
<td>Owner</td>
<td>Title</td>
<td>Description</td>
<td>Status</td>
<td id="actions">Actions</td>
</tr>
</table>
</div>
<script src="static/main.js"></script>
</body>
</html>