55 lines
2.2 KiB
XML
55 lines
2.2 KiB
XML
<UserControl xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:model1="clr-namespace:ChronoFlow.Model;assembly=ChronoFlow.Model"
|
|
x:Class="ChronoFlow.View.Admin.AbgeschlosseneProjekteView">
|
|
|
|
<!-- Haupt-Layout mit vier Zeilen: Titel, Suchfeld, Liste, Zurück-Button -->
|
|
<Grid RowDefinitions="Auto,Auto,*,Auto" Margin="20">
|
|
|
|
<!-- 🔷 Überschrift -->
|
|
<TextBlock Grid.Row="0"
|
|
Text="Abgeschlossene Projekte"
|
|
FontSize="20"
|
|
FontWeight="Bold"
|
|
HorizontalAlignment="Center"
|
|
Margin="0,0,0,10"/>
|
|
|
|
<!-- 🔍 Suchfeld zum Filtern der Projekte (nach Name oder Mitarbeiter) -->
|
|
<TextBox Grid.Row="1"
|
|
x:Name="Suchfeld"
|
|
Watermark="🔍 Nach Projekt oder Mitarbeiter suchen..."
|
|
KeyUp="Suchfeld_KeyUp"
|
|
Margin="0,0,0,10"/>
|
|
|
|
<!-- 📋 Scrollbare Liste abgeschlossener Projekte -->
|
|
<ScrollViewer Grid.Row="2">
|
|
<ListBox x:Name="AbgeschlosseneListe">
|
|
<ListBox.ItemTemplate>
|
|
<!-- Darstellung jedes abgeschlossenen Zeiteintrags -->
|
|
<DataTemplate DataType="{x:Type model1:Zeiteintrag}">
|
|
<StackPanel Orientation="Horizontal" Spacing="10" Margin="5">
|
|
|
|
<!-- 📌 Projektname -->
|
|
<TextBlock Text="{Binding Projekt}" Width="150"/>
|
|
|
|
<!-- 👤 Mitarbeitender -->
|
|
<TextBlock Text="{Binding Mitarbeiter}" Width="150"/>
|
|
|
|
<!-- ⏰ Endzeit -->
|
|
<TextBlock Text="{Binding Endzeit}" Width="150"/>
|
|
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
</ScrollViewer>
|
|
|
|
<!-- 🔙 Zurück-Button zum Admin-Dashboard -->
|
|
<Button Grid.Row="3"
|
|
Content="⬅ Zurück zum Dashboard"
|
|
Click="ZurueckButton_Click"
|
|
HorizontalAlignment="Center"
|
|
Margin="0,10,0,0"/>
|
|
</Grid>
|
|
</UserControl>
|