Schüler hinzufügen, Kompetenzen

This commit is contained in:
2026-06-23 13:46:39 +02:00
parent b2211270b4
commit 220969fdfa
23 changed files with 1230 additions and 88 deletions
@@ -4,10 +4,10 @@
x:Class="LehrerApp.Desktop.Views.Groups.AddStudentToGroupDialog"
x:DataType="vm:AddStudentToGroupDialogViewModel"
Title="Schüler hinzufügen"
Width="420" Height="500"
Width="420" Height="560"
CanResize="False" WindowStartupLocation="CenterOwner">
<Grid RowDefinitions="Auto,*,Auto" Margin="24">
<Grid RowDefinitions="Auto,*,Auto,Auto" Margin="24">
<!-- Überschrift + Suche -->
<StackPanel Grid.Row="0" Spacing="12" Margin="0,0,0,12">
@@ -29,8 +29,32 @@
</ListBox.ItemTemplate>
</ListBox>
<!-- Zeitraum-Auswahl -->
<Border Grid.Row="2"
BorderBrush="{DynamicResource SystemControlForegroundBaseLowBrush}"
BorderThickness="1" CornerRadius="6" Padding="14,10" Margin="0,10,0,0">
<StackPanel Spacing="8">
<TextBlock Text="Einschreibungszeitraum" FontSize="12" FontWeight="SemiBold" Opacity="0.7"/>
<StackPanel Orientation="Horizontal" Spacing="8">
<RadioButton Content="Ganzes Jahr" IsChecked="{Binding IsFullYear}"/>
<RadioButton Content="Nur H1" IsChecked="{Binding IsH1Only}"/>
<RadioButton Content="Nur H2" IsChecked="{Binding IsH2Only}"/>
<RadioButton Content="Datum" IsChecked="{Binding IsCustom}"/>
</StackPanel>
<Grid ColumnDefinitions="*,12,*"
IsVisible="{Binding IsCustomPeriod}">
<TextBox Grid.Column="0" Text="{Binding JoinedAtText}"
PlaceholderText="Eintr. TT.MM.JJJJ" FontSize="12"/>
<TextBox Grid.Column="2" Text="{Binding LeftAtText}"
PlaceholderText="Austr. TT.MM.JJJJ" FontSize="12"/>
</Grid>
</StackPanel>
</Border>
<!-- Validation + Buttons -->
<StackPanel Grid.Row="2" Spacing="12" Margin="0,16,0,0">
<StackPanel Grid.Row="3" Spacing="12" Margin="0,16,0,0">
<TextBlock Text="{Binding ValidationMessage}" Foreground="Red" FontSize="12"
IsVisible="{Binding ValidationMessage, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"/>
<Grid ColumnDefinitions="*,8,*">