[chore:] added gui for course overview

This commit is contained in:
2026-02-27 11:04:29 +01:00
parent 8b0703f25e
commit 6b769f413c

View File

@@ -100,9 +100,97 @@
<Label FontSize="20" Content="Kurse" VerticalContentAlignment="Center" />
</StackPanel>
</TabItem.Header>
<Grid RowDefinitions="2*,*,*">
<Grid ColumnDefinitions="*,2*">
<StackPanel Grid.ColumnSpan="2" Orientation="Horizontal">
<Button Margin="0,10,0,0" x:Name="BtnImportDefaultCourses" VerticalAlignment="Top" Height="30" HorizontalAlignment="Stretch" Click="BtnImportDefaultCourses_OnClick" HorizontalContentAlignment="Center">
<StackPanel Orientation="Horizontal">
<LucideIcon Kind="Import" Width="24" Height="24" />
<Label Content="Standardkurse importieren..." VerticalContentAlignment="Center" FontSize="12"
FontWeight="Bold" />
</StackPanel>
</Button>
</StackPanel>
<ListBox Grid.Column="0" x:Name="LbSportCourses" SelectionChanged="LbSportCourses_OnSelectionChanged" Margin="0,50,0,0" />
<StackPanel Grid.Column="1" Grid.Row="0" Margin="10,10,10,10" Orientation="Vertical" Spacing="10">
<Grid ColumnDefinitions="*,3*">
<Label Content="ID"></Label>
<Label Grid.Column="1" x:Name="LblSportID"></Label>
</Grid>
<Grid ColumnDefinitions="*,3*">
<Label Content="Name"></Label>
<TextBox Grid.Column="1" x:Name="TbSportName" TextChanged="TbStudentID_OnTextChanged"></TextBox>
</Grid>
<Grid ColumnDefinitions="*,3*">
<Label Content="Maximale Schüler*innenanzahl"></Label>
<NumericUpDown Grid.Column="1" x:Name="NudSportMaxStudents"></NumericUpDown>
</Grid>
<Grid ColumnDefinitions="*,3*">
<Label Content="Minimale Schüler*innenanzahl"></Label>
<NumericUpDown Grid.Column="1" x:Name="NudSportMinStudents"></NumericUpDown>
</Grid>
<Grid ColumnDefinitions="*,3*">
<Label Content="Anzahl Angebote Semester 1"></Label>
<NumericUpDown Grid.Column="1" x:Name="NudAmountCoursesSem1"></NumericUpDown>
</Grid>
<Grid ColumnDefinitions="*,3*">
<Label Content="Anzahl Angebote Semester 2"></Label>
<NumericUpDown Grid.Column="1" x:Name="NudAmountCoursesSem2"></NumericUpDown>
</Grid>
<Grid ColumnDefinitions="*,3*">
<Label Content="Anzahl Angebote Semester 3"></Label>
<NumericUpDown Grid.Column="1" x:Name="NudAmountCoursesSem3"></NumericUpDown>
</Grid>
<Grid ColumnDefinitions="*,3*">
<Label Content="Anzahl Angebote Semester 4"></Label>
<NumericUpDown Grid.Column="1" x:Name="NudAmountCoursesSem4"></NumericUpDown>
</Grid>
<Grid ColumnDefinitions="*,3*">
<Label Content="Alternativkurse"></Label>
<StackPanel Grid.Column="1" Orientation="Vertical">
<Grid ColumnDefinitions="*,50">
<ComboBox Height="35" HorizontalAlignment="Stretch" x:Name="CbAlternativCourse"></ComboBox>
<Button Grid.Column="1" Margin="0,10,0,0" x:Name="BtnAlternativeCourseAdd" VerticalAlignment="Top" Height="35" HorizontalAlignment="Stretch" Click="BtnImportDefaultCourses_OnClick" HorizontalContentAlignment="Center">
<StackPanel Orientation="Horizontal">
<LucideIcon Kind="Plus" Width="24" Height="24" />
</StackPanel>
</Button>
</Grid>
<ListBox x:Name="LbAlternativeCourses">
<ContextMenu>
<MenuItem x:Name="MnuAlternativeCoursesDelete" Header="Entfernen"></MenuItem>
</ContextMenu>
</ListBox>
</StackPanel>
</Grid>
<Grid ColumnDefinitions="*,3*">
<Label Content="Alternativbezeichnungen"></Label>
<StackPanel Grid.Column="1" Orientation="Vertical">
<Grid ColumnDefinitions="*,50">
<TextBox Grid.Column="0" Height="35" HorizontalAlignment="Stretch" x:Name="TbSportAlternativeName" TextChanged="TbStudentID_OnTextChanged"></TextBox>
<Button Grid.Column="1" Margin="0,10,0,0" x:Name="BtnAlternativeNameAdd" VerticalAlignment="Top" Height="35" HorizontalAlignment="Stretch" Click="BtnImportDefaultCourses_OnClick" HorizontalContentAlignment="Center">
<StackPanel Orientation="Horizontal">
<LucideIcon Kind="Plus" Width="24" Height="24" />
</StackPanel>
</Button>
</Grid>
<ListBox x:Name="LbAlternativeNames">
<ContextMenu>
<MenuItem x:Name="MnuAlternativeNameDelete" Header="Entfernen"></MenuItem>
</ContextMenu>
</ListBox>
</StackPanel>
</Grid>
</StackPanel>
</Grid>
</TabItem>