You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
382 lines
18 KiB
382 lines
18 KiB
<?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="Views.New_DetailAnimal"
|
|
Title="{Binding Nom}" x:Name="page_creation">
|
|
<ScrollView x:Name="scroll_view">
|
|
<VerticalStackLayout>
|
|
<HorizontalStackLayout
|
|
VerticalOptions="Start"
|
|
HorizontalOptions="End">
|
|
<Button Text="Valider"
|
|
Background="{StaticResource Primary}"
|
|
Margin="20"
|
|
Clicked="Validate_OnClick"/>
|
|
<Button Text="Supprimer"
|
|
Background="{StaticResource Primary}"
|
|
Margin="20"
|
|
Clicked="Button_OnClick"/>
|
|
</HorizontalStackLayout>
|
|
<Image Source="{Binding Image}"
|
|
MaximumWidthRequest="300"
|
|
Margin="20"
|
|
HorizontalOptions="Center"/>
|
|
<Button Text="Ajouter photo"
|
|
Background="{StaticResource Primary}"
|
|
VerticalOptions="Center"
|
|
HorizontalOptions="Center"
|
|
Margin="20"
|
|
Clicked="TakePhoto"/>
|
|
<Entry Text="{Binding Nom}"
|
|
HorizontalOptions="Center">
|
|
<Entry.Triggers>
|
|
<DataTrigger TargetType="Entry"
|
|
Binding="{Binding NomIsValid}"
|
|
Value="false">
|
|
<Setter Property="BackgroundColor" Value="{StaticResource Error}" />
|
|
</DataTrigger>
|
|
<DataTrigger TargetType="Entry"
|
|
Binding="{Binding NomIsValid}"
|
|
Value="true">
|
|
<Setter Property="BackgroundColor" Value="{StaticResource White}" />
|
|
</DataTrigger>
|
|
</Entry.Triggers>
|
|
</Entry>
|
|
<Border Stroke="{StaticResource Secondary}"
|
|
StrokeThickness="2"
|
|
Margin="20"
|
|
Padding="10"
|
|
Background="{StaticResource Primary}"
|
|
VerticalOptions="Start"
|
|
Grid.Column="1">
|
|
<Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto, Auto, Auto, Auto, Auto"
|
|
ColumnDefinitions="*, *"
|
|
RowSpacing="8">
|
|
<Label FontAttributes="Bold"
|
|
Text="Date de naissance"/>
|
|
<DatePicker Grid.Column="1"
|
|
MinimumDate="01/01/2000"
|
|
HorizontalOptions="End"
|
|
Date="{Binding DateNaissance}"/>
|
|
<Label Grid.Row="1"
|
|
FontAttributes="Bold"
|
|
Text="Sexe"/>
|
|
<Entry Grid.Column="1"
|
|
Grid.Row="1"
|
|
HorizontalOptions="End"
|
|
Text="{Binding Sexe}"/>
|
|
<Label Grid.Row="2"
|
|
FontAttributes="Bold"
|
|
Text="Date d'adoption"/>
|
|
<DatePicker Grid.Column="1"
|
|
Grid.Row="2"
|
|
MinimumDate="01/01/2000"
|
|
HorizontalOptions="End"
|
|
Date="{Binding DateAdoption}"/>
|
|
<Label Grid.Row="3"
|
|
FontAttributes="Bold"
|
|
Text="Taille"/>
|
|
<HorizontalStackLayout Grid.Column="1"
|
|
Grid.Row="3"
|
|
HorizontalOptions="End">
|
|
<Entry Text="{Binding Taille}"/>
|
|
<Label Text=" cm" VerticalOptions="Center"/>
|
|
</HorizontalStackLayout>
|
|
<Label Grid.Row="4"
|
|
FontAttributes="Bold"
|
|
Text="Poids"/>
|
|
<HorizontalStackLayout Grid.Column="2"
|
|
Grid.Row="4"
|
|
HorizontalOptions="End">
|
|
<Entry Text="{Binding Poids}"/>
|
|
<Label Text=" kg" VerticalOptions="Center"/>
|
|
</HorizontalStackLayout>
|
|
<Label Grid.Row="5"
|
|
FontAttributes="Bold"
|
|
Text="Alimentation"/>
|
|
<Entry Grid.Column="2"
|
|
Grid.Row="5"
|
|
HorizontalOptions="End"
|
|
Text="{Binding Alimentation}"/>
|
|
<Label Grid.Row="6"
|
|
FontAttributes="Bold"
|
|
Text="Espèce"/>
|
|
<Grid Grid.Row="6"
|
|
Grid.Column="1"
|
|
ColumnDefinitions="*"
|
|
RowDefinitions="Auto, Auto">
|
|
<Label Text="{Binding Espece}"
|
|
VerticalOptions="Start"
|
|
HorizontalOptions="End"/>
|
|
<Picker Grid.Row="1"
|
|
HorizontalOptions="End"
|
|
x:Name="Picker_especes"
|
|
ItemsSource="{Binding ListeEspeces}"
|
|
ItemDisplayBinding="{Binding Nom}"
|
|
SelectedIndexChanged="EspeceClic">
|
|
</Picker>
|
|
</Grid>
|
|
<Label Grid.Row="7"
|
|
FontAttributes="Bold"
|
|
Text="Race"/>
|
|
<Grid Grid.Row="7"
|
|
Grid.Column="1"
|
|
ColumnDefinitions="*"
|
|
RowDefinitions="Auto, Auto">
|
|
<Label Text="{Binding Race}"
|
|
VerticalOptions="Start"
|
|
HorizontalOptions="End"/>
|
|
<Picker Grid.Row="1"
|
|
HorizontalOptions="End"
|
|
ItemsSource="{Binding Espece.ListeRaces}"
|
|
ItemDisplayBinding="{Binding Nom}"
|
|
SelectedIndexChanged="RaceClic">
|
|
</Picker>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<VerticalStackLayout
|
|
Margin="20">
|
|
<Label Text="Petsitter"
|
|
FontSize="Large"/>
|
|
<Border Stroke="{StaticResource Secondary}"
|
|
StrokeThickness="2"
|
|
Padding="10"
|
|
Background="{StaticResource Primary}">
|
|
<Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto"
|
|
ColumnDefinitions="*, *">
|
|
<Label FontAttributes="Bold"
|
|
Text="Nom"/>
|
|
<Entry Grid.Column="1"
|
|
HorizontalOptions="End"
|
|
Text="{Binding Petsitter.Entite.Nom}"/>
|
|
<Label Grid.Row="1"
|
|
FontAttributes="Bold"
|
|
Text="Adresse"/>
|
|
<Entry Grid.Column="1"
|
|
Grid.Row="1"
|
|
HorizontalOptions="End"
|
|
Text="{Binding Petsitter.Entite.Adresse}"/>
|
|
<Label Grid.Row="2"
|
|
FontAttributes="Bold"
|
|
Text="Code postal"/>
|
|
<Entry Grid.Column="1"
|
|
Grid.Row="2"
|
|
HorizontalOptions="End"
|
|
Text="{Binding Petsitter.Entite.CodePostal}"/>
|
|
<Label Grid.Row="3"
|
|
FontAttributes="Bold"
|
|
Text="Ville"/>
|
|
<Entry Grid.Column="1"
|
|
Grid.Row="3"
|
|
HorizontalOptions="End"
|
|
Text="{Binding Petsitter.Entite.Ville}"/>
|
|
<Label Grid.Row="4"
|
|
FontAttributes="Bold"
|
|
Text="Numéro de téléphone"/>
|
|
<Entry Grid.Column="1"
|
|
Grid.Row="4"
|
|
HorizontalOptions="End"
|
|
Text="{Binding Petsitter.Entite.NumTel}"/>
|
|
</Grid>
|
|
</Border>
|
|
</VerticalStackLayout>
|
|
|
|
<VerticalStackLayout
|
|
Margin="20">
|
|
<Label Text="Chenil"
|
|
FontSize="Large"/>
|
|
<Border Stroke="{StaticResource Secondary}"
|
|
StrokeThickness="2"
|
|
Padding="10"
|
|
Background="{StaticResource Primary}">
|
|
<Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto"
|
|
ColumnDefinitions="*, *">
|
|
<Label FontAttributes="Bold"
|
|
Text="Nom"/>
|
|
<Entry Grid.Column="1"
|
|
HorizontalOptions="End"
|
|
Text="{Binding Chenil.Entite.Nom}"/>
|
|
<Label Grid.Row="1"
|
|
FontAttributes="Bold"
|
|
Text="Adresse"/>
|
|
<Entry Grid.Column="1"
|
|
Grid.Row="1"
|
|
HorizontalOptions="End"
|
|
Text="{Binding Chenil.Entite.Adresse}"/>
|
|
<Label Grid.Row="2"
|
|
FontAttributes="Bold"
|
|
Text="Code postal"/>
|
|
<Entry Grid.Column="1"
|
|
Grid.Row="2"
|
|
HorizontalOptions="End"
|
|
Text="{Binding Chenil.Entite.CodePostal}"/>
|
|
<Label Grid.Row="3"
|
|
FontAttributes="Bold"
|
|
Text="Ville"/>
|
|
<Entry Grid.Column="1"
|
|
Grid.Row="3"
|
|
HorizontalOptions="End"
|
|
Text="{Binding Chenil.Entite.Ville}"/>
|
|
<Label Grid.Row="4"
|
|
FontAttributes="Bold"
|
|
Text="Numéro de téléphone"/>
|
|
<Entry Grid.Column="1"
|
|
Grid.Row="4"
|
|
HorizontalOptions="End"
|
|
Text="{Binding Chenil.Entite.NumTel}"/>
|
|
</Grid>
|
|
</Border>
|
|
</VerticalStackLayout>
|
|
|
|
<VerticalStackLayout
|
|
Margin="20">
|
|
<Label Text="Vétérinaire"
|
|
FontSize="Large"/>
|
|
<Border Stroke="{StaticResource Secondary}"
|
|
StrokeThickness="2"
|
|
Padding="10"
|
|
Background="{StaticResource Primary}">
|
|
<Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto, Auto"
|
|
ColumnDefinitions="*, *">
|
|
<Label FontAttributes="Bold"
|
|
Text="Nom"/>
|
|
<Entry Grid.Column="1"
|
|
HorizontalOptions="End"
|
|
Text="{Binding Veterinaire.Entite.Nom}"/>
|
|
<Label Grid.Row="1"
|
|
FontAttributes="Bold"
|
|
Text="Clinique"/>
|
|
<Entry Grid.Column="1"
|
|
Grid.Row="1"
|
|
HorizontalOptions="End"
|
|
Text="{Binding Veterinaire.Clinique}"/>
|
|
<Label Grid.Row="2"
|
|
FontAttributes="Bold"
|
|
Text="Adresse"/>
|
|
<Entry Grid.Column="1"
|
|
Grid.Row="2"
|
|
HorizontalOptions="End"
|
|
Text="{Binding Veterinaire.Entite.Adresse}"/>
|
|
<Label Grid.Row="3"
|
|
FontAttributes="Bold"
|
|
Text="Code postal"/>
|
|
<Entry Grid.Column="1"
|
|
Grid.Row="3"
|
|
HorizontalOptions="End"
|
|
Text="{Binding Veterinaire.Entite.CodePostal}"/>
|
|
<Label Grid.Row="4"
|
|
FontAttributes="Bold"
|
|
Text="Ville"/>
|
|
<Entry Grid.Column="1"
|
|
Grid.Row="4"
|
|
HorizontalOptions="End"
|
|
Text="{Binding Veterinaire.Entite.Ville}"/>
|
|
<Label Grid.Row="5"
|
|
FontAttributes="Bold"
|
|
Text="Numéro de téléphone"/>
|
|
<Entry Grid.Column="1"
|
|
Grid.Row="5"
|
|
HorizontalOptions="End"
|
|
Text="{Binding Veterinaire.Entite.NumTel}"/>
|
|
</Grid>
|
|
</Border>
|
|
</VerticalStackLayout>
|
|
|
|
<VerticalStackLayout
|
|
Margin="20">
|
|
<Label Text="Magasin alimentaire"
|
|
FontSize="Large"/>
|
|
<Border Stroke="{StaticResource Secondary}"
|
|
StrokeThickness="2"
|
|
Padding="10"
|
|
Background="{StaticResource Primary}">
|
|
<Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto"
|
|
ColumnDefinitions="*, *">
|
|
<Label FontAttributes="Bold"
|
|
Text="Nom"/>
|
|
<Entry Grid.Column="1"
|
|
HorizontalOptions="End"
|
|
Text="{Binding MagasinAlimentaire.Entite.Nom}"/>
|
|
<Label Grid.Row="1"
|
|
FontAttributes="Bold"
|
|
Text="Adresse"/>
|
|
<Entry Grid.Column="1"
|
|
Grid.Row="1"
|
|
HorizontalOptions="End"
|
|
Text="{Binding MagasinAlimentaire.Entite.Adresse}"/>
|
|
<Label Grid.Row="2"
|
|
FontAttributes="Bold"
|
|
Text="Code postal"/>
|
|
<Entry Grid.Column="1"
|
|
Grid.Row="2"
|
|
HorizontalOptions="End"
|
|
Text="{Binding MagasinAlimentaire.Entite.CodePostal}"/>
|
|
<Label Grid.Row="3"
|
|
FontAttributes="Bold"
|
|
Text="Ville"/>
|
|
<Entry Grid.Column="1"
|
|
Grid.Row="3"
|
|
HorizontalOptions="End"
|
|
Text="{Binding MagasinAlimentaire.Entite.Ville}"/>
|
|
<Label Grid.Row="4"
|
|
FontAttributes="Bold"
|
|
Text="Numéro de téléphone"/>
|
|
<Entry Grid.Column="1"
|
|
Grid.Row="4"
|
|
HorizontalOptions="End"
|
|
Text="{Binding MagasinAlimentaire.Entite.NumTel}"/>
|
|
</Grid>
|
|
</Border>
|
|
</VerticalStackLayout>
|
|
|
|
<VerticalStackLayout
|
|
Margin="20">
|
|
<Label Text="Refuge, élevage, chenil de provenance"
|
|
FontSize="Large"/>
|
|
<Border Stroke="{StaticResource Secondary}"
|
|
StrokeThickness="2"
|
|
Padding="10"
|
|
Background="{StaticResource Primary}">
|
|
<Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto"
|
|
ColumnDefinitions="*, *">
|
|
<Label FontAttributes="Bold"
|
|
Text="Nom"/>
|
|
<Entry Grid.Column="1"
|
|
HorizontalOptions="End"
|
|
Text="{Binding Provenance.Entite.Nom}"/>
|
|
<Label Grid.Row="1"
|
|
FontAttributes="Bold"
|
|
Text="Adresse"/>
|
|
<Entry Grid.Column="1"
|
|
Grid.Row="1"
|
|
HorizontalOptions="End"
|
|
Text="{Binding Provenance.Entite.Adresse}"/>
|
|
<Label Grid.Row="2"
|
|
FontAttributes="Bold"
|
|
Text="Code postal"/>
|
|
<Entry Grid.Column="1"
|
|
Grid.Row="2"
|
|
HorizontalOptions="End"
|
|
Text="{Binding Provenance.Entite.CodePostal}"/>
|
|
<Label Grid.Row="3"
|
|
FontAttributes="Bold"
|
|
Text="Ville"/>
|
|
<Entry Grid.Column="1"
|
|
Grid.Row="3"
|
|
HorizontalOptions="End"
|
|
Text="{Binding Provenance.Entite.Ville}"/>
|
|
<Label Grid.Row="4"
|
|
FontAttributes="Bold"
|
|
Text="Numéro de téléphone"/>
|
|
<Entry Grid.Column="1"
|
|
Grid.Row="4"
|
|
HorizontalOptions="End"
|
|
Text="{Binding Provenance.Entite.NumTel}"/>
|
|
</Grid>
|
|
</Border>
|
|
</VerticalStackLayout>
|
|
</VerticalStackLayout>
|
|
</ScrollView>
|
|
</ContentPage> |