ChronoFlow/ChronoFlow.View/MitarbeiterHinzufuegenView.axaml
2025-06-28 14:27:18 +02:00

56 lines
2.2 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.MitarbeiterHinzufuegenView">
<!-- Scrollbarer Bereich für kleinere Fenstergrößen -->
<ScrollViewer>
<StackPanel Margin="20" Spacing="15">
<!-- Überschrift -->
<TextBlock Text=" Mitarbeiter hinzufügen"
FontWeight="Bold"
FontSize="20"
HorizontalAlignment="Center" />
<!-- Eingabefeld: Benutzername -->
<TextBox x:Name="UsernameBox" Watermark="Benutzername" />
<!-- Eingabefeld: Passwort -->
<TextBox x:Name="PasswordBox" Watermark="Passwort" />
<!-- Auswahl der Benutzerrolle -->
<ComboBox x:Name="RoleBox" PlaceholderText="Rolle auswählen">
<ComboBoxItem Content="Mitarbeiter"/>
<ComboBoxItem Content="Admin"/>
</ComboBox>
<!-- Eingabefeld: Mitarbeiternummer -->
<TextBox x:Name="MitarbeiternummerBox" Watermark="Mitarbeiternummer" />
<!-- Eingabefeld: Abteilung -->
<TextBox x:Name="AbteilungBox" Watermark="Abteilung" />
<!-- Speicher-Button -->
<Button Content="💾 Speichern"
Click="SpeichernButton_Click"
HorizontalAlignment="Center" />
<!-- Demo-Mitarbeiter erstellen (für schnelles Testen durch Dozent) -->
<Button Content="🧪 Demo-Mitarbeiter erstellen"
Click="DemoBenutzerErstellen_Click"
HorizontalAlignment="Center" />
<!-- Zurück-Button -->
<Button Content="⬅ Zurück zum Dashboard"
Click="ZurueckZumDashboard_Click"
HorizontalAlignment="Center"
Margin="0,10,0,0" />
<!-- Text für Statusmeldungen (Erfolg oder Fehler) -->
<TextBlock x:Name="FeedbackText"
Foreground="Green"
IsVisible="False"
TextAlignment="Center" />
</StackPanel>
</ScrollViewer>
</UserControl>