42 lines
2.4 KiB
XML
42 lines
2.4 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:vm="clr-namespace:LehrerApp.Desktop.ViewModels.Groups"
|
|
x:Class="LehrerApp.Desktop.Views.Groups.AttendanceHomeworkQuickInputDialog"
|
|
x:DataType="vm:AttendanceHomeworkQuickInputViewModel"
|
|
Title="Schnelleingabe Anwesenheit und Hausaufgaben"
|
|
Width="820" Height="620" MinWidth="680" MinHeight="460"
|
|
CanResize="True" WindowStartupLocation="CenterOwner">
|
|
|
|
<Grid RowDefinitions="Auto,*,Auto" Margin="20">
|
|
<Grid Grid.Row="0" ColumnDefinitions="*,Auto" Margin="0,0,0,12">
|
|
<StackPanel>
|
|
<TextBlock Text="Anwesenheit und Hausaufgaben" FontSize="20" FontWeight="SemiBold"/>
|
|
<TextBlock Text="{Binding SessionLabel}" FontSize="12" Opacity="0.55"/>
|
|
</StackPanel>
|
|
<CheckBox Grid.Column="1" Content="Nach Eingabe nächste Zeile"
|
|
IsChecked="{Binding AdvanceAfterInput}" VerticalAlignment="Center"/>
|
|
</Grid>
|
|
|
|
<DataGrid Grid.Row="1" x:Name="StatusGrid"
|
|
ItemsSource="{Binding Rows}"
|
|
SelectedItem="{Binding SelectedRow}"
|
|
AutoGenerateColumns="False" IsReadOnly="True"
|
|
GridLinesVisibility="Horizontal"
|
|
CanUserReorderColumns="False" CanUserResizeColumns="True"
|
|
SelectionMode="Single"/>
|
|
|
|
<Grid Grid.Row="2" RowDefinitions="Auto,Auto" ColumnDefinitions="*,Auto" Margin="0,12,0,0">
|
|
<StackPanel Grid.Row="0" Grid.Column="0" Spacing="3">
|
|
<TextBlock FontSize="10" Opacity="0.55" TextWrapping="Wrap"
|
|
Text="Anwesenheit: 1 anwesend · 2 Entschuldigung offen · 5 krank/entschuldigt · 7 andere Schulveranstaltung · 9 geschwänzt · 0 unentschuldigt · X nicht kontrolliert · seltene Status per Klick im Menü"/>
|
|
<TextBlock FontSize="10" Opacity="0.55" TextWrapping="Wrap"
|
|
Text="Hausaufgaben mit Alt/⌥: 1 gemacht · 3 teilweise/Rest offen · 4 Rest nachgereicht · 5 Rest nicht nachgereicht · 7 nicht gemacht/offen · 8 vollständig nachgereicht · 0 endgültig nicht nachgereicht · X keine aufgegeben"/>
|
|
<TextBlock FontSize="10" Opacity="0.55"
|
|
Text="↑/↓ Zeile wählen · Enter nächste Zeile · Esc schließen"/>
|
|
</StackPanel>
|
|
<Button Grid.RowSpan="2" Grid.Column="1" Content="Schließen" Click="OnClose"
|
|
VerticalAlignment="Bottom" Margin="18,0,0,0" Padding="16,6"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|