-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin-modules.html
More file actions
129 lines (122 loc) · 5.78 KB
/
admin-modules.html
File metadata and controls
129 lines (122 loc) · 5.78 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<title>TutorPal - Admin Dashboard</title>
<link rel="stylesheet" href="styles/admin-modules.css">
<link rel="stylesheet" href="styles/admin-base.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<script src="https://www.gstatic.com/firebasejs/11.6.1/firebase-app-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/11.6.1/firebase-firestore-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/11.6.1/firebase-auth-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/11.6.1/firebase-storage-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/11.6.1/firebase-analytics-compat.js"></script>
</head>
<body>
<div class="dashboard-container">
<aside class="sidebar">
<div class="sidebar-header">
<img width="100" height="90" src="https://img.icons8.com/bubbles/100/training.png" alt="training" />
<h2>TutorPal Admin</h2>
</div>
<nav>
<ul>
<li data-tab="dashboard">
<a href="admin-dashboard.html"><i class="fas fa-tachometer-alt"></i> Dashboard</a>
</li>
<li data-tab="students">
<a href="admin-students.html"><i class="fas fa-user-graduate"></i> Students</a>
</li>
<li data-tab="tutors">
<a href="admin-tutors.html"><i class="fas fa-chalkboard-teacher"></i> Tutors</a>
</li>
<li class="active" data-tab="modules">
<a href="admin-modules.html"><i class="fas fa-book"></i> Modules</a>
</li>
<li data-tab="settings">
<a href="admin-settings.html"><i class="fas fa-cog"></i> Settings</a>
</li>
</ul>
</nav>
<div class="sidebar-footer">
<a href="index.html" class="logout-btn"><i class="fas fa-sign-out-alt"></i> Logout</a>
</div>
</aside>
<main class="main-content">
<header class="top-bar">
<div class="user-profile">
<span>Welcome, <strong>Admin</strong></span>
<img width="" height="29" src="https://img.icons8.com/material-rounded/24/user-male-circle.png"
alt="user-male-circle" />
</div>
</header>
<div class="content-wrapper">
<div class="tab-content active" id="modules-tab">
<section class="modules-section">
<h2><i class="fas fa-book"></i> Module Management</h2>
<div class="management-controls">
<button id="add-module-btn"><i class="fas fa-plus"></i> Add Module</button>
</div>
<div class="table-container">
<table id="modules-table">
<thead>
<tr>
<th>Module Code</th>
<th>Module Name</th>
<th>Credits</th>
<th>Assigned Tutor</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<!-- Will be populated by JavaScript -->
</tbody>
</table>
</div>
</section>
</div>
</div>
</main>
</div>
<!-- Module Modal -->
<div class="modal" id="module-modal">
<div class="modal-content">
<span class="close-modal">×</span>
<h3 id="module-modal-title">Add New Module</h3>
<form id="module-form">
<input type="hidden" id="module-id">
<div class="form-group">
<label for="module-code">Module Code</label>
<input type="text" id="module-code" required>
</div>
<div class="form-group">
<label for="module-name">Module Name</label>
<input type="text" id="module-name" required>
</div>
<div class="form-group">
<label for="module-credits">Credits</label>
<input type="number" id="module-credits" required>
</div>
<div class="form-group">
<label for="module-course-code">Course Code</label>
<select id="module-course-code" required>
<option value="" disabled selected>Select course code</option>
</select>
</div>
<div class="form-group">
<label for="module-tutor">Assigned Tutor</label>
<select id="module-tutor" required>
<option value="">Select Tutor</option>
</select>
</div>
<button type="submit" class="btn">Save</button>
</form>
</div>
</div>
<script type="module" src="scripts/admin-modules.js"></script>
</body>
</html>