61 lines
3.1 KiB
XML
61 lines
3.1 KiB
XML
<UserControl xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
x:Class="ChronoFlow.View.Mitarbeiter.EmployeeTasksView">
|
|
|
|
<ScrollViewer>
|
|
<StackPanel Margin="20" Spacing="10">
|
|
<TextBlock Text="Meine Aufgaben" FontSize="24" FontWeight="Bold"/>
|
|
|
|
<!-- Hinweis bei leerer Liste -->
|
|
<TextBlock Text="🎉 Du hast aktuell keine Aufgaben!"
|
|
FontSize="16"
|
|
FontStyle="Italic"
|
|
FontWeight="Medium"
|
|
HorizontalAlignment="Center"
|
|
IsVisible="{Binding HatKeineEintraege}"/>
|
|
|
|
<!-- Aufgabenliste -->
|
|
<ItemsControl ItemsSource="{Binding Eintraege}">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<Border BorderBrush="{Binding WurdeSeitLoginBearbeitet, Converter={StaticResource BoolToBrushConverter}}"
|
|
BorderThickness="1" CornerRadius="4" Padding="10" Margin="5">
|
|
<StackPanel Spacing="5">
|
|
|
|
<!-- Projekttitel -->
|
|
<TextBlock Text="{Binding Projekt}" FontWeight="Bold"/>
|
|
|
|
<!-- Projektleiter anzeigen -->
|
|
<TextBlock Text="{Binding Projektleiter, StringFormat='👤 Projektleiter: {0}'}"
|
|
FontSize="12"
|
|
Foreground="Gray"
|
|
FontStyle="Italic"/>
|
|
|
|
<!-- Admin-Kommentar -->
|
|
<TextBlock Text="📝 Kommentar (Admin):" FontSize="12" Foreground="LightGray"/>
|
|
<TextBlock Text="{Binding Kommentar}" FontWeight="SemiBold"/>
|
|
|
|
<!-- Mitarbeiter-Kommentar -->
|
|
<TextBlock Text="💬 Dein Kommentar:" FontSize="12" Foreground="LightGray"/>
|
|
<TextBox Text="{Binding MitarbeiterKommentar}" Watermark="Kommentar hinzufügen..."/>
|
|
|
|
<!-- Erledigt-Checkbox -->
|
|
<CheckBox Content="Erledigt" IsChecked="{Binding Erledigt}"/>
|
|
|
|
<!-- Deadline -->
|
|
<TextBlock Text="{Binding Endzeit, StringFormat='Deadline: {0:dd.MM.yyyy}'}"
|
|
Foreground="{Binding PrioritaetsFarbe}"
|
|
FontWeight="Bold" FontSize="14"/>
|
|
</StackPanel>
|
|
</Border>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
|
|
<!-- Speichern -->
|
|
<Button Content="Änderungen speichern" Command="{Binding SpeichereEintraegeCommand}"/>
|
|
<TextBlock Text="{Binding StatusText}" Foreground="Green" FontStyle="Italic"/>
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
</UserControl>
|