90 lines
3.9 KiB
XML
90 lines
3.9 KiB
XML
<UserControl xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
x:Class="ChronoFlow.View.Admin.ProjektErstellenView">
|
|
|
|
<!-- Gesamter Inhalt ist scrollbar -->
|
|
<ScrollViewer Padding="10">
|
|
<StackPanel Margin="25" Spacing="15">
|
|
|
|
<!-- Titel -->
|
|
<TextBlock Text="Neues Projekt erstellen"
|
|
FontSize="20"
|
|
FontWeight="Bold"
|
|
HorizontalAlignment="Center" />
|
|
|
|
<!-- Projektname -->
|
|
<TextBlock Text="Projektname:" />
|
|
<TextBox x:Name="ProjektnameBox" />
|
|
|
|
<!-- Startzeit -->
|
|
<TextBlock Text="Startdatum:" />
|
|
<DatePicker x:Name="StartdatumPicker" />
|
|
|
|
<TextBlock Text="Startzeit (HH:mm):" />
|
|
<TextBox x:Name="StartzeitBox" Watermark="z.B. 09:00" />
|
|
|
|
<!-- Endzeit -->
|
|
<TextBlock Text="Enddatum:" />
|
|
<DatePicker x:Name="EnddatumPicker" />
|
|
|
|
<TextBlock Text="Endzeit (HH:mm):" />
|
|
<TextBox x:Name="EndzeitBox" Watermark="z.B. 17:00" />
|
|
|
|
<!-- Projektleiter -->
|
|
<TextBlock Text="Projektleiter auswählen:" />
|
|
<ComboBox x:Name="ProjektleiterDropdown" />
|
|
|
|
<!-- Mitarbeiterauswahl -->
|
|
<TextBlock Text="Mitarbeitende auswählen:" Margin="0,10,0,5" />
|
|
|
|
<StackPanel Orientation="Horizontal" Spacing="10" Margin="0,0,0,5">
|
|
<Button Content="✅ Alle auswählen" Click="AlleMitarbeiterAuswaehlen_Click" />
|
|
<Button Content="❌ Keine auswählen" Click="KeineMitarbeiterAuswaehlen_Click" />
|
|
</StackPanel>
|
|
|
|
<!-- Scrollbarer Kartenbereich mit Checkboxen -->
|
|
<ScrollViewer Height="240"
|
|
VerticalScrollBarVisibility="Auto"
|
|
Background="#2a2a2a"
|
|
Margin="0,0,0,10"
|
|
Padding="10,10,10,-17"
|
|
CornerRadius="8">
|
|
<ListBox x:Name="MitarbeiterCheckList"
|
|
BorderThickness="0"
|
|
SelectionMode="Multiple" />
|
|
</ScrollViewer>
|
|
|
|
<!-- Kommentar -->
|
|
<TextBlock Text="Kommentar:" />
|
|
<TextBox x:Name="KommentarBox" AcceptsReturn="True" Height="80" />
|
|
|
|
<!-- Farblegende für Deadlines -->
|
|
<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>
|
|
|
|
<!-- Aktionsbuttons -->
|
|
<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>
|
|
|
|
<!-- Feedbackbereich -->
|
|
<TextBlock x:Name="FeedbackText"
|
|
Foreground="Red"
|
|
IsVisible="False"
|
|
HorizontalAlignment="Center"
|
|
Margin="0,10,0,0" />
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
</UserControl>
|