43 lines
1.8 KiB
XML
43 lines
1.8 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
x:Class="ChronoFlow.View.Admin.MitarbeiterBearbeitenDialog"
|
|
Width="450" Height="600"
|
|
Title="Mitarbeiter bearbeiten">
|
|
|
|
<ScrollViewer>
|
|
<StackPanel Margin="20" Spacing="15">
|
|
|
|
<!-- Eingabe: Username -->
|
|
<TextBlock Text="Username:" />
|
|
<TextBox x:Name="UsernameBox" />
|
|
|
|
<!-- Eingabe: Abteilung -->
|
|
<TextBlock Text="Abteilung:" />
|
|
<TextBox x:Name="AbteilungBox" />
|
|
|
|
<!-- Eingabe: Mitarbeiternummer -->
|
|
<TextBlock Text="Mitarbeiternummer:" />
|
|
<TextBox x:Name="MitarbeiternummerBox" />
|
|
|
|
<!-- Checkbox für Passwort-Reset -->
|
|
<TextBlock Text="Passwort zurücksetzen:" />
|
|
<CheckBox x:Name="ResetPasswordCheckbox"
|
|
Content="Passwort auf 'newpassword' zurücksetzen und beim nächsten Login ändern lassen" />
|
|
|
|
<!-- Buttons: Speichern & Abbrechen -->
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Spacing="10" Margin="0,10,0,0">
|
|
<Button Content="✅ Speichern" Width="120" Click="SpeichernButton_Click" />
|
|
<Button Content="❌ Abbrechen" Width="120" Click="AbbrechenButton_Click" />
|
|
</StackPanel>
|
|
|
|
<!-- Hinweistext bei Erfolg -->
|
|
<TextBlock x:Name="FeedbackText"
|
|
Text="Änderungen erfolgreich übernommen."
|
|
Foreground="Green"
|
|
FontWeight="Bold"
|
|
HorizontalAlignment="Center"
|
|
IsVisible="False"
|
|
Margin="0,10,0,0" />
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
</Window> |