optionally save student schedules to docx
This commit is contained in:
4 files changed
+32
-11
No files matched your search
@@ -30,6 +30,15 @@
|
||||
accept=".csv"
|
||||
>
|
||||
|
||||
<label style="display: inline-block" for="save_student_schedules">Save Student Schedules to .docx</label>
|
||||
<input
|
||||
style="margin-left: 5px;transform:scale(1.5)"
|
||||
type="checkbox"
|
||||
id="save_student_schedules"
|
||||
name="save_student_schedules"
|
||||
value="save_student_schedules"
|
||||
>
|
||||
|
||||
<label for="classrooms">Number of classrooms (20-100)</label>
|
||||
<input
|
||||
required
|
||||
|
||||
+9
-1
@@ -6,6 +6,7 @@ function start() {
|
||||
let classCap = document.getElementById("class_cap").value;
|
||||
let blockClassLimit = document.getElementById("classrooms").value;
|
||||
let totalBlocks = document.getElementById("total_blocks").value;
|
||||
let saveStudentSchedules = document.getElementById("save_student_schedules").checked;
|
||||
|
||||
// ensure data is passed before continuing
|
||||
if (!e(file) || !e(minReq) || !e(classCap) || !e(blockClassLimit) || !e(totalBlocks)) return alert('Please ensure all fields aren\'t empty.');
|
||||
@@ -17,7 +18,14 @@ function start() {
|
||||
let reader = new FileReader()
|
||||
reader.addEventListener("load", () => {
|
||||
let raw = reader.result;
|
||||
eel.start(raw, minReq, classCap, blockClassLimit, totalBlocks)(finish_callback);
|
||||
eel.start(
|
||||
raw,
|
||||
minReq,
|
||||
classCap,
|
||||
blockClassLimit,
|
||||
totalBlocks,
|
||||
saveStudentSchedules
|
||||
)(finish_callback);
|
||||
}, false);
|
||||
|
||||
if (file) {
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ body{
|
||||
bottom: -80px;
|
||||
}
|
||||
.main{
|
||||
height: 600px;
|
||||
height: 640px;
|
||||
width: 400px;
|
||||
background-color: rgba(255,255,255,0.13);
|
||||
position: absolute;
|
||||
|
||||
Reference in new issue
Block a user