ChronoFlow/ChronoFlow.View/Mitarbeiter/EmployeeTasksView.axaml
2025-06-12 13:41:27 +02:00

28 lines
1.6 KiB
XML

<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="clr-namespace:ChronoFlow.ViewModels.Mitarbeiter"
x:Class="ChronoFlow.View.Mitarbeiter.EmployeeTasksView">
<StackPanel Margin="20" Spacing="10">
<TextBlock Text="Meine Aufgaben" FontSize="24" FontWeight="Bold"/>
<ItemsControl ItemsSource="{Binding Eintraege}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Border BorderThickness="1" BorderBrush="Gray" CornerRadius="4" Padding="10" Margin="5">
<StackPanel Spacing="5">
<TextBlock Text="{Binding Projekt}" FontWeight="Bold"/>
<CheckBox Content="Erledigt" IsChecked="{Binding Erledigt}"/>
<TextBox Text="{Binding MitarbeiterKommentar}" Watermark="Kommentar hinzufügen..."/>
<TextBlock Text="{Binding Endzeit, StringFormat='Deadline: {0:dd.MM.yyyy}'}"
Foreground="{Binding PrioritaetsFarbe}"
FontWeight="Bold" FontSize="14"/>
</StackPanel>
</Border>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
<Button Content="Änderungen speichern" Command="{Binding SpeichereEintraegeCommand}"/>
<TextBlock Text="{Binding StatusText}" Foreground="Green" FontStyle="Italic"/>
</StackPanel>
</UserControl>