Repository navigation
Expand file tree
/
Copy pathadmin.html
More file actions
53 lines (48 loc) · 1.96 KB
/
Copy pathadmin.html
File metadata and controls
53 lines (48 loc) · 1.96 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Panel</title>
<link rel="stylesheet" href="./css/admin.css">
<script src="./js/install-prompt.js"></script>
<link rel="manifest" href="/manifest.json">
<!-- iOS Support -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon" href="images/icon-192x192.png">
</head>
<body>
<div class="header">
<h2>Admin Panel</h2>
<button id="logoutBtn" class="logout-btn">Logout</button>
</div>
<!-- Add User Section -->
<div class="user-management">
<h3>Account Management</h3>
<button id="addUserBtn" class="add-user-btn">Add User</button>
<div id="userForm" class="user-form" style="display: none;">
<input type="text" id="newUsername" placeholder="Enter Username">
<input type="text" id="newUserDomain" placeholder="Enter Domain">
<input type="password" id="newUserPassword" placeholder="Enter Password">
<select id="newUserRole">
<option value="user">User</option>
<option value="admin">Admin</option>
</select>
<button id="createUserBtn">Create User</button>
</div>
</div>
<!-- Task Creation Form -->
<div class="task-form">
<h3>Create Task</h3>
<input type="text" id="taskDomain" placeholder="Enter Domain">
<input type="text" id="taskDescription" placeholder="Task Description">
<input type="date" id="taskDeadline">
<button onclick="createTask()">Create Task</button>
</div>
<!-- Task Submissions -->
<h3>Task Submissions</h3>
<div id="submissionsList"></div>
<script src="./js/admin.js"></script>
</body>
</html>