Compare commits

..

No commits in common. "460b12f066f88e619062e62bd315289378bd2c29" and "53ebad6fe518709b0601467dcf70c5af62ced929" have entirely different histories.

5 changed files with 76 additions and 176 deletions

View File

@ -4,44 +4,15 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="HegreHotel.Views.Chambre.ModifierChambrePage" x:Class="HegreHotel.Views.Chambre.ModifierChambrePage"
Title="Modifier la Chambre"> Title="Modifier la Chambre">
<StackLayout Padding="10">
<ScrollView>
<VerticalStackLayout Padding="20" Spacing="15">
<!-- Champ Nom -->
<Frame Padding="10" CornerRadius="10" BackgroundColor="White" BorderColor="#E5E7EB">
<Entry x:Name="EntryNom" Placeholder="Nom de la chambre"/> <Entry x:Name="EntryNom" Placeholder="Nom de la chambre"/>
</Frame> <Entry x:Name="EntryDescription" Placeholder="Description"/>
<Entry x:Name="EntryTarif" Placeholder="Tarif" Keyboard="Numeric"/>
<!-- Champ Description -->
<Frame Padding="10" CornerRadius="10" BackgroundColor="White" BorderColor="#E5E7EB">
<Editor x:Name="EntryDescription" Placeholder="Description" AutoSize="TextChanges"/>
</Frame>
<!-- Champ Tarif -->
<Frame Padding="10" CornerRadius="10" BackgroundColor="White" BorderColor="#E5E7EB">
<Entry x:Name="EntryTarif" Placeholder="Tarif (€)" Keyboard="Numeric"/>
</Frame>
<!-- Champ Nombre de personnes -->
<Frame Padding="10" CornerRadius="10" BackgroundColor="White" BorderColor="#E5E7EB">
<Entry x:Name="EntryNbPersonne" Placeholder="Nombre de personnes" Keyboard="Numeric"/> <Entry x:Name="EntryNbPersonne" Placeholder="Nombre de personnes" Keyboard="Numeric"/>
</Frame>
<Label Text="Modifier le Statut" Margin="10,0,0,0"/> <Label Text="Modifier le Statut" Margin="10,0,0,0"/>
<Picker x:Name="PickerStatut" Title=""/> <Picker x:Name="PickerStatut" Title=""/>
<!-- Bouton Enregistrer --> <Button Text="Enregistrer les modifications" Clicked="OnEnregistrerClicked" Margin="0,20"/>
<Button Text="Enregistrer les modifications" </StackLayout>
Clicked="OnEnregistrerClicked"
BackgroundColor="#007AFF"
TextColor="White"
CornerRadius="10"
Padding="12"
FontAttributes="Bold"
HorizontalOptions="Center"/>
</VerticalStackLayout>
</ScrollView>
</ContentPage> </ContentPage>

View File

@ -4,37 +4,24 @@
x:Class="HegreHotel.Views.Client.ClientsPage" x:Class="HegreHotel.Views.Client.ClientsPage"
Title="Gestion des Clients" Title="Gestion des Clients"
Appearing="ClientsPage_OnAppearing"> Appearing="ClientsPage_OnAppearing">
<StackLayout Padding="10">
<StackLayout Padding="15" Spacing="10">
<!-- Bouton Ajouter Client -->
<Button Text="Ajouter Client" <Button Text="Ajouter Client"
Clicked="OnAjouterClientClicked" Clicked="OnAjouterClientClicked"
HorizontalOptions="Center" HorizontalOptions="Center"
BackgroundColor="#007AFF" Margin="0,10"/>
TextColor="White"
CornerRadius="10"
Padding="10"
FontAttributes="Bold"
WidthRequest="200"/>
<!-- Liste des clients -->
<ListView x:Name="ClientsListView" HasUnevenRows="True" ItemTapped="OnClientTapped"> <ListView x:Name="ClientsListView" HasUnevenRows="True" ItemTapped="OnClientTapped">
<ListView.ItemTemplate> <ListView.ItemTemplate>
<DataTemplate> <DataTemplate>
<ViewCell> <ViewCell>
<Frame Padding="10" CornerRadius="10" BackgroundColor="White" BorderColor="#E5E7EB" Margin="0,5"> <StackLayout Orientation="Horizontal" Padding="5" Spacing="10">
<StackLayout Orientation="Horizontal" Spacing="15"> <Label Text="{Binding Nom}"
<!-- Icône ou Avatar --> VerticalOptions="Center"
<Image Source="user_icon.png" WidthRequest="40" HeightRequest="40"/> FontAttributes="Bold"
WidthRequest="100"/>
<!-- Infos du client --> <Label Text="{Binding Prenom}"
<VerticalStackLayout> VerticalOptions="Center"
<Label Text="{Binding Nom}" FontAttributes="Bold" FontSize="16"/> WidthRequest="100"/>
<Label Text="{Binding Prenom}" FontSize="14" TextColor="Gray"/>
</VerticalStackLayout>
<!-- Actions Modifier / Supprimer -->
<StackLayout Orientation="Horizontal" HorizontalOptions="EndAndExpand" Spacing="5"> <StackLayout Orientation="Horizontal" HorizontalOptions="EndAndExpand" Spacing="5">
<ImageButton Source="edit_icon.png" <ImageButton Source="edit_icon.png"
Clicked="OnModifierClientClicked" Clicked="OnModifierClientClicked"
@ -50,12 +37,11 @@
BackgroundColor="Transparent"/> BackgroundColor="Transparent"/>
</StackLayout> </StackLayout>
</StackLayout> </StackLayout>
</Frame>
</ViewCell> </ViewCell>
</DataTemplate> </DataTemplate>
</ListView.ItemTemplate> </ListView.ItemTemplate>
</ListView> </ListView>
</StackLayout>
</StackLayout>
</ContentPage> </ContentPage>

View File

@ -1,59 +1,35 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="HegreHotel.Views.Client.DetailsClientPage" x:Class="HegreHotel.Views.Client.DetailsClientPage">
Title="Détails du Client"> <ContentPage.Content>
<ScrollView> <ScrollView>
<VerticalStackLayout Padding="20" Spacing="15"> <StackLayout Padding="10" Spacing="5">
<HorizontalStackLayout Spacing="5">
<!-- Nom et prénom --> <Label Text="{Binding Nom}" FontAttributes="Bold" FontSize="18"/>
<Frame Padding="10" CornerRadius="10" BackgroundColor="#F3F4F6"> <Label Text="{Binding Prenom}" FontSize="18"/>
<HorizontalStackLayout Spacing="10">
<Label Text="{Binding Nom}" FontAttributes="Bold" FontSize="22"/>
<Label Text="{Binding Prenom}" FontSize="22"/>
</HorizontalStackLayout>
</Frame>
<!-- Coordonnées -->
<Frame Padding="10" CornerRadius="10" BackgroundColor="#F9FAFB">
<VerticalStackLayout Spacing="5">
<HorizontalStackLayout Spacing="10">
<Image Source="email_icon.png" WidthRequest="20" HeightRequest="20"/>
<Label Text="{Binding Email}" FontSize="16"/>
</HorizontalStackLayout>
<HorizontalStackLayout Spacing="10">
<Image Source="phone_icon.png" WidthRequest="20" HeightRequest="20"/>
<Label Text="{Binding Telephone}" FontSize="16"/>
</HorizontalStackLayout> </HorizontalStackLayout>
<VerticalStackLayout>
<Label Text="{Binding Email}"/>
<Label Text="{Binding Telephone}"/>
</VerticalStackLayout> </VerticalStackLayout>
</Frame> <Label Text="Historique des réservations :" FontAttributes="Bold" FontSize="Large"/>
<ListView x:Name="ListeReservations">
<!-- Historique des réservations --> <ListView.ItemTemplate>
<Label Text="Historique des réservations :" FontAttributes="Bold" FontSize="18" Margin="0,10,0,5"/>
<CollectionView x:Name="ListeReservations">
<CollectionView.ItemTemplate>
<DataTemplate> <DataTemplate>
<Frame Padding="10" CornerRadius="10" BackgroundColor="White" BorderColor="#E5E7EB" Margin="0,5"> <ViewCell>
<VerticalStackLayout Spacing="5"> <StackLayout Orientation="Horizontal" Padding="5" Spacing="10">
<Label Text="{Binding ChambreNom}" FontAttributes="Bold" FontSize="16"/>
<HorizontalStackLayout Spacing="10">
<Label Text="Début :" FontAttributes="Bold"/>
<Label Text="{Binding DateDebut, StringFormat='{0:dd/MM/yyyy}'}"/> <Label Text="{Binding DateDebut, StringFormat='{0:dd/MM/yyyy}'}"/>
</HorizontalStackLayout>
<HorizontalStackLayout Spacing="10">
<Label Text="Fin :" FontAttributes="Bold"/>
<Label Text="{Binding DateFin, StringFormat='{0:dd/MM/yyyy}'}"/> <Label Text="{Binding DateFin, StringFormat='{0:dd/MM/yyyy}'}"/>
</HorizontalStackLayout>
<HorizontalStackLayout Spacing="10">
<Label Text="Invités :" FontAttributes="Bold"/>
<Label Text="{Binding NbInvite}"/> <Label Text="{Binding NbInvite}"/>
</HorizontalStackLayout> <Label Text="{Binding ChambreNom}"/>
</VerticalStackLayout> </StackLayout>
</Frame> </ViewCell>
</DataTemplate> </DataTemplate>
</CollectionView.ItemTemplate> </ListView.ItemTemplate>
</CollectionView> </ListView>
</StackLayout>
</VerticalStackLayout>
</ScrollView> </ScrollView>
</ContentPage.Content>
</ContentPage> </ContentPage>

View File

@ -1,47 +1,14 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="HegreHotel.Views.Client.ModifierClientPage" x:Class="HegreHotel.Views.Client.ModifierClientPage"
Title="Modifier le Client"> Title="Modifier le Client">
<StackLayout Padding="10">
<ScrollView> <Entry x:Name="EntryNom" Placeholder="Nom du client"/>
<VerticalStackLayout Padding="20" Spacing="15"> <Entry x:Name="EntryPrenom" Placeholder="Prenom"/>
<Entry x:Name="EntryEmail" Placeholder="Email" />
<!-- Champ Nom --> <Entry x:Name="EntryTelephone" Placeholder="Téléphone" Keyboard="Numeric"/>
<Label Text="Nom du client" FontAttributes="Bold" FontSize="16"/> <Button Text="Enregistrer" Clicked="OnEnregistrerClicked" Margin="0,20"/>
<Frame Padding="10" CornerRadius="10" BackgroundColor="White" BorderColor="#E5E7EB"> </StackLayout>
<Entry x:Name="EntryNom" Placeholder="Entrez le nom du client"/>
</Frame>
<!-- Champ Prénom -->
<Label Text="Prénom" FontAttributes="Bold" FontSize="16"/>
<Frame Padding="10" CornerRadius="10" BackgroundColor="White" BorderColor="#E5E7EB">
<Entry x:Name="EntryPrenom" Placeholder="Entrez le prénom"/>
</Frame>
<!-- Champ Email -->
<Label Text="Email" FontAttributes="Bold" FontSize="16"/>
<Frame Padding="10" CornerRadius="10" BackgroundColor="White" BorderColor="#E5E7EB">
<Entry x:Name="EntryEmail" Placeholder="Entrez l'email" Keyboard="Email"/>
</Frame>
<!-- Champ Téléphone -->
<Label Text="Téléphone" FontAttributes="Bold" FontSize="16"/>
<Frame Padding="10" CornerRadius="10" BackgroundColor="White" BorderColor="#E5E7EB">
<Entry x:Name="EntryTelephone" Placeholder="Entrez le téléphone" Keyboard="Telephone"/>
</Frame>
<!-- Bouton Enregistrer -->
<Button Text="Enregistrer les modifications"
Clicked="OnEnregistrerClicked"
BackgroundColor="#007AFF"
TextColor="White"
CornerRadius="10"
Padding="12"
FontAttributes="Bold"
HorizontalOptions="Center"/>
</VerticalStackLayout>
</ScrollView>
</ContentPage> </ContentPage>