Neuer Tab "Planung" in GroupDetailView ersetzt den Platzhalter: Einheiten anlegen/bearbeiten/ als Vorlage in andere Gruppe kopieren, Stunden je Einheit mit Verschieben (inkl. Nachrücken der Folgestunden). Stundeneditor als tabellarischer Verlaufsplan (Phase/Dauer/Tätigkeit/ Material/Kurzsymbol je Zeile, Uhrzeit aus optionalem Stundenbeginn abgeleitet) statt eines einzelnen Phase-Felds mit Methoden-/Materialien-Chips — Kurzsymbol als Freitext mit Vorschlägen aus neuem Kürzel-Katalog (Einstellungen) plus bisher verwendeten Werten. Schema-Migrationen v1-v3 überführen bestehende Daten verlustfrei. 4.2.5 bewusst offen gelassen (hängt an Stundenplan, Kapitel 4.3). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
45 lines
2.4 KiB
XML
45 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"
|
|
xmlns:models="clr-namespace:LehrerApp.Core.Models;assembly=LehrerApp.Core"
|
|
x:Class="LehrerApp.Desktop.Views.Groups.CopyUnitDialog"
|
|
x:DataType="vm:CopyUnitDialogViewModel"
|
|
Title="Einheit als Vorlage kopieren"
|
|
Width="440" Height="320" MinWidth="380" MinHeight="280"
|
|
CanResize="False" WindowStartupLocation="CenterOwner">
|
|
|
|
<Grid RowDefinitions="*,Auto" Margin="24">
|
|
<StackPanel Grid.Row="0" Spacing="14">
|
|
<TextBlock Text="Einheit als Vorlage kopieren" Classes="dialogtitle"/>
|
|
<TextBlock Text="Titel, Aufbau und die zeitlichen Abstände der Stunden zueinander werden übernommen, alle Kalendertage neu ab dem gewählten Startdatum berechnet."
|
|
FontSize="12" Opacity="0.6" TextWrapping="Wrap"/>
|
|
|
|
<StackPanel Spacing="4">
|
|
<TextBlock Text="Zielgruppe *" FontSize="12" Opacity="0.7"/>
|
|
<ComboBox ItemsSource="{Binding AvailableGroups}" SelectedItem="{Binding SelectedGroup}"
|
|
HorizontalAlignment="Stretch" PlaceholderText="Gruppe auswählen">
|
|
<ComboBox.ItemTemplate>
|
|
<DataTemplate x:DataType="models:LearningGroup">
|
|
<TextBlock Text="{Binding Name}"/>
|
|
</DataTemplate>
|
|
</ComboBox.ItemTemplate>
|
|
</ComboBox>
|
|
<TextBlock Text="{Binding SelectedGroupError}" Foreground="Red" FontSize="11"
|
|
IsVisible="{Binding SelectedGroupError, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"/>
|
|
</StackPanel>
|
|
|
|
<StackPanel Spacing="4">
|
|
<TextBlock Text="Neues Startdatum *" FontSize="12" Opacity="0.7"/>
|
|
<TextBox Text="{Binding NewStartDateText}" PlaceholderText="TT.MM.JJJJ"/>
|
|
<TextBlock Text="{Binding NewStartDateTextError}" Foreground="Red" FontSize="11"
|
|
IsVisible="{Binding NewStartDateTextError, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"/>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
<Grid Grid.Row="1" ColumnDefinitions="*,8,*" Margin="0,20,0,0">
|
|
<Button Grid.Column="0" Content="Abbrechen" HorizontalAlignment="Stretch" Click="OnCancel"/>
|
|
<Button Grid.Column="2" Content="Kopieren" HorizontalAlignment="Stretch" Click="OnSave"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|