mirror of
https://github.com/sabazadam/Se302.git
synced 2025-12-31 20:31:22 +00:00
Added the option to export as CSV to student, classroom, course and calendar schedule views.
This commit is contained in:
@@ -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 -->
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user