<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="Northwind.Maui.Client.CustomerDetailPage"
             Title="Dane klienta">

  <VerticalStackLayout>

    <Grid ColumnDefinitions="Auto,Auto" 
          RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto">
      <Label Text="ID" VerticalOptions="Center" Margin="6" />
      <Entry Text="{Binding CustomerId, Mode=TwoWay}" Grid.Column="1" 
             MaxLength="5" TextTransform="Uppercase" />
      <Label Text="Firma" Grid.Row="1" 
             VerticalOptions="Center" Margin="6" />
      <Entry Text="{Binding CompanyName, Mode=TwoWay}" 
             Grid.Column="1" Grid.Row="1" />
      <Label Text="Kontakt" Grid.Row="2" 
             VerticalOptions="Center" Margin="6" />
      <Entry Text="{Binding ContactName, Mode=TwoWay}" 
             Grid.Column="1" Grid.Row="2" />
      <Label Text="Miasto" Grid.Row="3" 
             VerticalOptions="Center" Margin="6" />
      <Entry Text="{Binding City, Mode=TwoWay}" 
             Grid.Column="1" Grid.Row="3" />
      <Label Text="Państwo" Grid.Row="4" 
             VerticalOptions="Center" Margin="6" />
      <Entry Text="{Binding Country, Mode=TwoWay}" 
             Grid.Column="1" Grid.Row="4" />
      <Label Text="Telefon" Grid.Row="5" 
             VerticalOptions="Center" Margin="6" />
      <Entry Text="{Binding Phone, Mode=TwoWay}" 
             Grid.Column="1" Grid.Row="5" />
    </Grid>
    <Button x:Name="InsertButton" Text="Zapisz" 
            Clicked="InsertButton_Clicked" />

  </VerticalStackLayout>

</ContentPage>