Added the option to export as CSV to student, classroom, course and calendar schedule views.

This commit is contained in:
haxala1r
2025-12-18 15:47:42 +03:00
parent e53754d2a8
commit 93ac7d55a6
8 changed files with 239 additions and 2 deletions

View File

@@ -123,7 +123,7 @@
<HBox spacing="12" alignment="CENTER_LEFT">
<Label text="📆 Generated Schedule" styleClass="subsection-title"/>
<Region HBox.hgrow="ALWAYS"/>
<Button text="📥 Export PDF" styleClass="small-button"/>
<Button fx:id="exportButton" text="📥 Export CSV" onAction="#onExportCSV" styleClass="small-button"/>
</HBox>
<!-- Schedule Grid -->

View File

@@ -19,6 +19,7 @@
<Label text="Select Classroom:"/>
<ComboBox fx:id="classroomComboBox" promptText="Choose a classroom..." prefWidth="200"/>
<Button text="Show Schedule" onAction="#onShowSchedule" styleClass="primary-button"/>
<Button text="📥 Export CSV" onAction="#onExportCSV"/>
</HBox>
</VBox>
</top>

View File

@@ -14,7 +14,11 @@
<padding>
<Insets top="20" right="20" bottom="20" left="20"/>
</padding>
<Label text="Course Schedule View" styleClass="section-title"/>
<HBox spacing="10" alignment="CENTER_LEFT">
<Label text="Course Schedule View" styleClass="section-title"/>
<Region HBox.hgrow="ALWAYS"/>
<Button text="📥 Export CSV" onAction="#onExportCSV"/>
</HBox>
<Label text="All courses and their exam assignments" wrapText="true"/>
<Separator/>
<TableView fx:id="courseScheduleTable" VBox.vgrow="ALWAYS">

View File

@@ -19,6 +19,7 @@
<Label text="Select Student:"/>
<ComboBox fx:id="studentComboBox" promptText="Choose a student..." prefWidth="200"/>
<Button text="Show Schedule" onAction="#onShowSchedule" styleClass="primary-button"/>
<Button text="📥 Export CSV" onAction="#onExportCSV"/>
</HBox>
</VBox>
</top>