-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboard.html
More file actions
289 lines (269 loc) · 11.2 KB
/
dashboard.html
File metadata and controls
289 lines (269 loc) · 11.2 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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
<!DOCTYPE html>
<html>
<head>
<base target="_top">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Falcon AutoRoster</title>
<!-- Google Fonts: Roboto -->
<link
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
rel="stylesheet">
<!-- Bootstrap Icons v1.11.3 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css">
<!-- PDF Make v0.3.4 -->
<script src='https://cdn.jsdelivr.net/npm/pdfmake@0.3.4/build/pdfmake.min.js'></script>
<script src='https://cdn.jsdelivr.net/npm/pdfmake@0.3.4/build/vfs_fonts.js'></script>
<!-- Custom libraries -->
<?!= include('falcon-ui.lib'); ?>
<?!= include('falcon-themes.lib'); ?>
<?!= include('falcon-sounds.lib'); ?>
<?!= include('falcon-pdf.lib'); ?>
<!-- Import user settings from properties service -->
<script>
let USER_SETTINGS = JSON.parse('<?= userSettings ?>'); // Inject user settings
</script>
</head>
<body>
<div id="loading-indicator"></div>
{{NAVBAR}}
<div class="tool-bar" id="toolbar">
<button class="tool-bar-button" id="syncButton"><i class="bi bi-arrow-repeat"></i>Sync</button>
<button class="tool-bar-button" id="schoolInfoButton"><i class="bi bi-info-circle"></i>School</button>
<button class="tool-bar-button" id="rostersButton"><i class="bi bi-card-list"></i>Rosters</button>
<button class="tool-bar-button" id="labelsButton"><i class="bi bi-tag"></i>Labels</button>
<button class="tool-bar-button" id="exportDataButton"><i class="bi bi-box-arrow-up"></i>Export</button>
</div>
<div id="toast-container"></div>
<div class="page-container" id="page">
<div class="column-container">
<div class="column">
<div class="column-header" id="rosterHeader">
<!-- Header will be inserted here -->
</div>
<div class="column-body">
<div class="column-toolbar" style="margin-bottom: 20px">
<div class="search-container" style="margin-bottom: 0; margin-right: 5px;">
<i class="bi bi-search search-icon"></i>
<input type="text" id="studentSearch" placeholder="Search...">
</div>
<div>
<button id="toggleFilterButton"><i class="bi-filter-circle"></i></button>
</div>
</div>
<div style="margin-bottom: 10px" id="searchResults"></div>
<div class="table-wrapper">
<table style="table-layout: fixed" id="schoolRoster">
<thead>
<tr>
<th>Last Name</th>
<th>First Name</th>
<th>Grade</th>
<th>Classroom</th>
<th>Teacher</th>
<th>Emergency Group</th>
</tr>
</thead>
<tbody>
<!-- Rows will be inserted here -->
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="sidebar-container" id="sidebarContainer">
<div class="sidebar">
<div class="sidebar-header">
<div id="sidebarTitle"></div>
<button class="sidebar-close-btn"><i class="bi-close bi-x-circle-fill"></i></button>
</div>
<div class="sidebar-content-container">
<!-- TOGGLE FILTER SIDEBAR -->
<div class="sidebar-content" id="toggleFilterSidebar">
<div class="switch-container">
<div>
<label class="switch" for="filterLastName">
<input type="checkbox" class="search-filter" id="filterLastName" data-column="0">
<span class="slider round"></span>
</label>Last Name
</div>
<div>
<label class="switch" for="filterFirstName">
<input type="checkbox" class="search-filter" id="filterFirstName" data-column="1">
<span class="slider"></span>
</label>First Name
</div>
<div>
<label class="switch" for="filterGrade">
<input type="checkbox" class="search-filter" id="filterGrade" data-column="2">
<span class="slider"></span>
</label>Grade
</div>
<div>
<label class="switch" for="filterClassroom">
<input type="checkbox" class="search-filter" id="filterClassroom" data-column="3">
<span class="slider"></span>
</label>Classroom
</div>
<div>
<label class="switch" for="filterTeacher">
<input type="checkbox" class="search-filter" id="filterTeacher" data-column="4">
<span class="slider"></span>
</label>Teacher
</div>
<div>
<label class="switch" for="filterEmergencyGroup">
<input type="checkbox" class="search-filter" id="filterEmergencyGroup" data-column="5">
<span class="slider"></span>
</label>Emergency Group
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- MODALS -->
<!-- SCHOOL INFO MODAL -->
<dialog class="action-modal" id="schoolInfoModal">
<div class="action-header">School Information
<button class="action-close-btn"><i class="bi-close bi-x-circle-fill"></i></button>
</div>
<div class="action-container">
<div class="action-content">
<h2 class="rounded-top">School Information</h2>
<div class="no-header-table-wrapper">
<table class="no-header-table" id="schoolData">
<tr>
<td>School name:</td>
<td id="schoolInfoSchoolName">
</tr>
<tr>
<td>School year:</td>
<td id="schoolInfoSchoolYear">
</tr>
<tr>
<td>Total students:</td>
<td id="schoolInfoTotalStudents">
</tr>
<tr>
<td>Last sync:</td>
<td id="schoolInfoLastSync">
</tr>
</table>
</div>
<div class="table-wrapper-fixed">
<table class="table-fixed" id="schoolInfoClassData">
<thead>
<tr>
<th>Grade</th>
<th>Classroom</th>
<th>Teacher</th>
<th>Students</th>
</tr>
</thead>
<tbody>
<!-- Rows will be inserted here -->
</tbody>
</table>
</div>
</div>
</div>
</dialog>
<!-- EXPORT ROSTERS MODAL -->
<dialog class="action-modal" id="exportRostersModal">
<div class="action-header">Export Rosters
<button class="action-close-btn"><i class="bi-close bi-x-circle-fill"></i></button>
</div>
<div class="action-container">
<div class="action-content">
<h2 class="rounded-full">Roster Type</h2>
<label class="input-label" for="rosterTypeSelect"><b>Select roster type:</b></label>
<select class="column-select" style="margin-bottom: 10px;" id="rosterTypeSelect">
<option value="classRoster">Class roster</option>
<option value="emergencyClassRoster">Emergency class roster</option>
<option value="emergencyGroupRoster">Emergency group roster</option>
<option value="emergencySchoolRoster">Emergency school roster</option>
<option value="schoolRoster">School roster</option>
</select>
<div id="classroomSelect">
<label class="input-label" for="classRosterSelect"><b>Select classroom:</b></label>
<select class="column-select" id="classRosterSelect">
<!-- Classrooms will be inserted here -->
</select>
</div>
<div id="emergencyGroupSelect" style="display: none">
<label class="input-label" for="emergencyRosterSelect"><b>Select emergency group:</b></label>
<select class="column-select" id="emergencyRosterSelect">
<!-- Emergency groups will be inserted here -->
</select>
</div>
<div class="action-btn" style="margin-top: 20px">
<button id="downloadRosterModalButton">Download Roster</button>
</div>
</div>
</div>
</dialog>
<!-- EXPORT LABELS MODAL -->
<dialog class="action-modal" id="exportLabelsModal">
<div class="action-header">Export Labels
<button class="action-close-btn"><i class="bi-close bi-x-circle-fill"></i></button>
</div>
<div class="action-container">
<div class="action-content">
<h2 class="rounded-full">Label Formatting</h2>
<label class="input-label" for="labelTemplateSelect"><b>Select label template:</b></label>
<select class="column-select" style="margin-bottom: 10px;" id="labelTemplateSelect">
<option value="avery5160">Avery 5160</option>
<option value="avery8167">Avery 8167</option>
<option value="avery95945">Avery 95945</option>
</select>
<label class="input-label" for="labelClassroomSelect"><b>Select classroom:</b></label>
<select class="column-select" style="margin-bottom: 10px;" id="labelClassroomSelect">
<!-- Classrooms will be inserted here -->
</select>
<label class="input-label" for="labelFormatSelect"><b>Select label text format:</b></label>
<select class="column-select" style="margin-bottom: 20px" id="labelFormatSelect">
<option value="labelStudent">Student name</option>
<option value="labelTeacher">Teacher name
<option value="labelStudentGrade">Student name and grade</option>
<option value="labelStudentTeacher">Student name and teacher</option>
<option value="labelEmergency">Student name and emergency group
</select>
<h2 class="rounded-full">Label Preview</h2>
<div id="labelPreview" class="rectangle">
<div id="labelRow1" style="font-size: 18px"><b>Student Name</b></div>
<div id="labelRow2" style="font-size: 18px"></div>
</div>
<div class="action-btn">
<button id="downloadLabelsModalButton">Download Labels</button>
</div>
</div>
</div>
</dialog>
<!-- EXPORT DATA MODAL -->
<dialog class="action-modal" id="exportDataModal">
<div class="action-header">Export Data
<button class="action-close-btn"><i class="bi-close bi-x-circle-fill"></i></button>
</div>
<div class="action-container">
<div class="action-content">
</label>
<h2 class="rounded-full">File Type</h2>
<label class="input-label" for="fileTypeSelect"><b>Select file type:</b></label>
<select class="column-select" style="margin-bottom: 20px" id="fileTypeSelect">
<option value="csv">Comma Separated Values (.csv)</option>
<option value="xlsx">Microsoft Excel (.xlsx)</option>
</select>
<div class="action-btn">
<button id="exportDataModalButton">Download Data</button>
</div>
</div>
</div>
</div>
<div class="javascript-code">
<?!= include('dashboard.js'); ?>
</div>
</body>
</html>