ChronoFlow/ChronoFlow.View/Admin/ProjektErstellenView.axaml
2025-06-28 20:12:56 +02:00

110 lines
4.6 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="ChronoFlow.View.Admin.ProjektErstellenView">
<!-- Scrollfähiger Bereich für kleinere Fenster -->
<ScrollViewer>
<StackPanel Margin="25" Spacing="15">
<!-- Titelüberschrift -->
<TextBlock Text="Neues Projekt erstellen"
FontSize="20"
FontWeight="Bold"
HorizontalAlignment="Center" />
<!-- Eingabefeld: Projektname -->
<TextBlock Text="Projektname:" />
<TextBox x:Name="ProjektnameBox" />
<!-- Startdatum auswählen -->
<TextBlock Text="Startdatum:" />
<DatePicker x:Name="StartdatumPicker" />
<!-- Startzeit im Format HH:mm -->
<TextBlock Text="Startzeit (HH:mm):" />
<TextBox x:Name="StartzeitBox" Watermark="z.B. 09:00" />
<!-- Enddatum auswählen -->
<TextBlock Text="Enddatum:" />
<DatePicker x:Name="EnddatumPicker" />
<!-- Endzeit im Format HH:mm -->
<TextBlock Text="Endzeit (HH:mm):" />
<TextBox x:Name="EndzeitBox" Watermark="z.B. 17:00" />
<!-- Projektleiter über Dropdown zuweisen -->
<TextBlock Text="Projektleiter auswählen:" />
<ComboBox x:Name="ProjektleiterDropdown" />
<StackPanel>
<TextBlock Text="Mitarbeiter auswählen:" Margin="0,10,0,5" />
<Expander Header=" Mitarbeitende auswählen" Background="#222" Foreground="White">
<ListBox x:Name="MitarbeiterListBox"
SelectionMode="Multiple"
Height="250"
MinWidth="300"
BorderBrush="Gray"
BorderThickness="1"
Background="#333"
Foreground="White"
ScrollViewer.VerticalScrollBarVisibility="Auto">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding}" Padding="4" />
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Expander>
</StackPanel>
<!-- Kommentarbereich -->
<TextBlock Text="Kommentar:" />
<TextBox x:Name="KommentarBox" AcceptsReturn="True" Height="80" />
<!-- Hinweise zur Deadline-Farbe -->
<Border Background="#111111"
CornerRadius="5"
Padding="10"
Margin="0,10,0,0">
<StackPanel Spacing="5">
<StackPanel Orientation="Horizontal" Spacing="5">
<TextBlock Text="🛈" FontWeight="Bold" />
<TextBlock Text="Hinweise zur Deadline-Anzeige:" FontWeight="Bold" />
</StackPanel>
<TextBlock Text="• Grün: Noch mehr als 7 Tage bis zur Deadline" />
<TextBlock Text="• Orange: Weniger als 7 Tage bis zur Deadline" />
<TextBlock Text="• Rot: Weniger als 3 Tage bis zur Deadline oder bereits abgelaufen" />
</StackPanel>
</Border>
<!-- Aktions-Buttons -->
<StackPanel Orientation="Horizontal"
Spacing="10"
HorizontalAlignment="Center"
Margin="0,10,0,0">
<Button Content="✅ Speichern"
Click="SpeichernButton_Click"
Width="115"
Height="36" />
<Button Content="🧪 3 Demo-Projekte (rot/gelb/grün)"
Click="DemoProjekteButton_Click"
Width="250"
Height="36" />
<Button Content="⬅ Zurück zum Dashboard"
Click="ZurueckButton_Click"
Width="180"
Height="36" />
</StackPanel>
<!-- Optionaler Fehler-/Hinweistext -->
<TextBlock x:Name="FeedbackText"
Foreground="Red"
IsVisible="False"
HorizontalAlignment="Center"
Margin="0,10,0,0" />
</StackPanel>
</ScrollViewer>
</UserControl>