last commit before tests
This commit is contained in:
@@ -2,125 +2,82 @@
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
|
||||
Title="BuchungenPage">
|
||||
Title="BuchungenPage"
|
||||
Background="{DynamicResource PageBackground}">
|
||||
|
||||
<Grid>
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="180"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Border Grid.Row="0"
|
||||
Grid.ColumnSpan="2"
|
||||
Background="#FF1E88E5"
|
||||
Padding="15">
|
||||
<Border Grid.Row="0" Grid.ColumnSpan="2" Background="#FF1E88E5" Padding="15">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Ellipse Width="36" Height="36" Fill="White" Margin="0,0,10,0"/>
|
||||
<StackPanel>
|
||||
<TextBlock Text="Sky Team Airlines"
|
||||
FontSize="20"
|
||||
FontWeight="Bold"
|
||||
Foreground="White"/>
|
||||
<TextBlock Text="Sichere und komfortable Flüge weltweit"
|
||||
FontSize="12"
|
||||
Foreground="White"/>
|
||||
<TextBlock Text="Sky Team Airlines" FontSize="20" FontWeight="Bold" Foreground="White"/>
|
||||
<TextBlock Text="Sichere und komfortable Flüge weltweit" FontSize="12" Foreground="White"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
<StackPanel Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
Background="#FFE3F2FD">
|
||||
|
||||
<StackPanel Grid.Row="1" Grid.Column="0" Background="{DynamicResource SidebarBackground}">
|
||||
<Button Height="50" Margin="5" Click="HomeButton_Click">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<iconPacks:PackIconMaterial Kind="Home" Width="20" Margin="0,0,10,0"/>
|
||||
<TextBlock Text="Home"/>
|
||||
</StackPanel>
|
||||
</Button>
|
||||
|
||||
|
||||
<Button Height="50"
|
||||
Margin="5"
|
||||
Background="#FFBBDEFB"
|
||||
Click="BookingsButton_Click">
|
||||
<Button Height="50" Margin="5" Background="#FFBBDEFB" Click="BookingsButton_Click">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<iconPacks:PackIconMaterial Kind="Airplane" Width="20" Margin="0,0,10,0"/>
|
||||
<TextBlock Text="Meine Buchungen"/>
|
||||
</StackPanel>
|
||||
</Button>
|
||||
|
||||
<Button Height="50" Margin="5" Click="SettingsButton_Click">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<iconPacks:PackIconMaterial Kind="Cog" Width="20" Margin="0,0,10,0"/>
|
||||
<TextBlock Text="Einstellungen"/>
|
||||
</StackPanel>
|
||||
</Button>
|
||||
|
||||
<Button Height="50"
|
||||
Margin="5"
|
||||
Background="#FFEBEB"
|
||||
BorderBrush="#FFB71C1C"
|
||||
Foreground="#D32F2F"
|
||||
FontWeight="Bold"
|
||||
Click="LogoutButton_Click">
|
||||
<Button Height="50" Margin="5" Background="#FFEBEB" BorderBrush="#FFB71C1C" Foreground="#D32F2F" FontWeight="Bold" Click="LogoutButton_Click">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<iconPacks:PackIconMaterial Kind="Logout" Width="20" Margin="0,0,10,0"/>
|
||||
<TextBlock Text="Abmelden"/>
|
||||
</StackPanel>
|
||||
</Button>
|
||||
|
||||
</StackPanel>
|
||||
|
||||
|
||||
<Grid Grid.Row="1" Grid.Column="1" Margin="30">
|
||||
<StackPanel>
|
||||
<TextBlock Text="Meine Buchungen" FontSize="28" FontWeight="Bold" Foreground="{DynamicResource PrimaryText}"/>
|
||||
<TextBlock Text="Ihre reservierten Flüge im Überblick" FontSize="16" Foreground="{DynamicResource SecondaryText}" Margin="0,0,0,20"/>
|
||||
|
||||
<StackPanel Margin="0,0,0,25">
|
||||
<TextBlock Text="Meine Buchungen"
|
||||
FontSize="28"
|
||||
FontWeight="Bold"/>
|
||||
<TextBlock Text="Ihre reservierten Flüge im Überblick"
|
||||
FontSize="16"
|
||||
Foreground="#666"/>
|
||||
<Border x:Name="NoBookingsView" Visibility="Visible" Background="{DynamicResource CardBackground}" CornerRadius="12" Padding="40">
|
||||
<StackPanel HorizontalAlignment="Center">
|
||||
<iconPacks:PackIconMaterial Kind="AirplaneOff" Width="50" Height="50" Foreground="#888"/>
|
||||
<TextBlock Text="Sie haben noch keinen Flug reserviert." FontSize="18" Margin="0,15,0,5" TextAlignment="Center" Foreground="{DynamicResource PrimaryText}"/>
|
||||
<Button Content="Jetzt reservieren" Width="180" Height="45" Background="#FF1E88E5" Foreground="White" FontWeight="Bold" Margin="0,20,0,0" Click="OpenReservierungSuche_Click"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
<DataGrid x:Name="BookingsGrid" Visibility="Collapsed" AutoGenerateColumns="False" CanUserAddRows="False" IsReadOnly="True" Height="400" Background="{DynamicResource CardBackground}">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="Buchungs ID" Binding="{Binding BuchungId}" Width="80"/>
|
||||
<DataGridTextColumn Header="Flug Nr." Binding="{Binding Flugnummer}" Width="*"/>
|
||||
<DataGridTextColumn Header="Von" Binding="{Binding Abflugort}" Width="*"/>
|
||||
<DataGridTextColumn Header="Nach" Binding="{Binding Zielort}" Width="*"/>
|
||||
<DataGridTextColumn Header="Datum" Binding="{Binding Abflugdatum}" Width="*"/>
|
||||
<DataGridTextColumn Header="Status" Binding="{Binding Status}" Width="100"/>
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
|
||||
<Button x:Name="CancelBtn" Visibility="Collapsed" Content="Flug Stornieren" Background="#D32F2F" Foreground="White" FontWeight="Bold" Width="150" Height="40" HorizontalAlignment="Right" Margin="0,15,0,0" Click="CancelBooking_Click"/>
|
||||
</StackPanel>
|
||||
|
||||
<Border Background="#F5F7FA"
|
||||
CornerRadius="12"
|
||||
Padding="40">
|
||||
|
||||
<StackPanel HorizontalAlignment="Center">
|
||||
<iconPacks:PackIconMaterial Kind="AirplaneOff"
|
||||
Width="50"
|
||||
Height="50"
|
||||
Foreground="#888"/>
|
||||
|
||||
<TextBlock Text="Sie haben noch keinen Flug reserviert."
|
||||
FontSize="18"
|
||||
Margin="0,15,0,5"
|
||||
TextAlignment="Center"/>
|
||||
|
||||
<TextBlock Text="Reservieren Sie jetzt Ihren ersten Flug!"
|
||||
FontSize="14"
|
||||
Foreground="#666"
|
||||
Margin="0,0,0,20"
|
||||
TextAlignment="Center"/>
|
||||
|
||||
<Button Content="Jetzt reservieren"
|
||||
Width="180"
|
||||
Height="45"
|
||||
Click="OpenReservierungSuche_Click"/>
|
||||
</StackPanel>
|
||||
|
||||
</Border>
|
||||
|
||||
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
</Page>
|
||||
</Page>
|
||||
Reference in New Issue
Block a user