95 lines
3.7 KiB
XML
95 lines
3.7 KiB
XML
<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" />
|
|
|
|
|
|
|
|
<!-- Mitarbeiter über Dropdown zuweisen -->
|
|
<TextBlock Text="Mitarbeiter auswählen:" />
|
|
<ComboBox x:Name="MitarbeiterDropdown" />
|
|
|
|
<!-- 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>
|