Files
LehrerApp/LehrerApp.Desktop/Views/Students/StudentReportDialog.axaml
T
2026-10-22 11:24:43 +02:00

57 lines
3.5 KiB
XML

<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="clr-namespace:LehrerApp.Desktop.ViewModels.Students"
x:Class="LehrerApp.Desktop.Views.Students.StudentReportDialog"
x:DataType="vm:StudentReportDialogViewModel"
Title="Schülerbericht" Width="560" Height="760" MinWidth="460" MinHeight="500"
WindowStartupLocation="CenterOwner">
<Grid RowDefinitions="Auto,*,Auto" Margin="24">
<StackPanel Spacing="4" Margin="0,0,0,16">
<TextBlock Text="Schülerbericht" Classes="dialogtitle"/>
<TextBlock Text="{Binding StudentName}"/>
</StackPanel>
<ScrollViewer Grid.Row="1">
<StackPanel Spacing="12" IsEnabled="{Binding !IsGenerating}">
<TextBlock Text="Lerngruppe und Schuljahr" FontWeight="SemiBold"/>
<ComboBox ItemsSource="{Binding Groups}" SelectedItem="{Binding SelectedGroup}"
DisplayMemberBinding="{Binding Display}" HorizontalAlignment="Stretch"/>
<TextBlock Text="Vorlage" FontWeight="SemiBold"/>
<ComboBox ItemsSource="{Binding Templates}" SelectedItem="{Binding SelectedTemplate}"
DisplayMemberBinding="{Binding Name}" HorizontalAlignment="Stretch"/>
<Grid ColumnDefinitions="*,12,*">
<StackPanel Spacing="4">
<TextBlock Text="Von (TT.MM.JJJJ)"/>
<TextBox Text="{Binding From}"/>
</StackPanel>
<StackPanel Grid.Column="2" Spacing="4">
<TextBlock Text="Bis (TT.MM.JJJJ)"/>
<TextBox Text="{Binding To}"/>
</StackPanel>
</Grid>
<CheckBox Content="Notenzwischenstand" IsChecked="{Binding IncludeInterim}"/>
<ComboBox ItemsSource="{Binding Interims}" SelectedItem="{Binding SelectedInterim}"
DisplayMemberBinding="{Binding Label}" HorizontalAlignment="Stretch"
PlaceholderText="Gespeicherten Zwischenstand auswählen" IsVisible="{Binding IncludeInterim}"/>
<CheckBox Content="Mitarbeitsgraph mit gewichteter Mitarbeit und Einzelaspekten" IsChecked="{Binding IncludeParticipation}"/>
<CheckBox Content="Kompetenzbewertungen" IsChecked="{Binding IncludeCompetencies}"/>
<CheckBox Content="Hausaufgabenkontrollen" IsChecked="{Binding IncludeHomework}"/>
<CheckBox Content="Klassenbucheinträge und Unterrichtsnotizen" IsChecked="{Binding IncludeDocumentation}"/>
<CheckBox Content="Vertrauliche Dokumentation einschließen" IsChecked="{Binding IncludeConfidential}"
IsVisible="{Binding IncludeDocumentation}"/>
<TextBlock Text="Dokumentation wird auf die gewählte Lerngruppe begrenzt. Entwürfe werden ausgelassen."
TextWrapping="Wrap" FontSize="12" Opacity="0.65"/>
<TextBlock Text="Ergänzender Text" FontWeight="SemiBold"/>
<TextBox Text="{Binding Comment}" AcceptsReturn="True" TextWrapping="Wrap" MinHeight="90"/>
</StackPanel>
</ScrollViewer>
<StackPanel Grid.Row="2" Spacing="10" Margin="0,12,0,0">
<ProgressBar IsVisible="{Binding IsGenerating}" IsIndeterminate="True" Height="6"/>
<TextBlock Text="{Binding StatusMessage}" TextWrapping="Wrap"/>
<Grid ColumnDefinitions="*,12,*">
<Button Content="Schließen" Click="OnClose" IsEnabled="{Binding !IsGenerating}" HorizontalAlignment="Stretch"/>
<Button Grid.Column="2" Content="PDF erzeugen…" Click="OnGenerate" IsEnabled="{Binding CanGenerate}" HorizontalAlignment="Stretch"/>
</Grid>
</StackPanel>
</Grid>
</Window>