root / GES_PAC / View / CreatePlaceView.xaml @ 957b1f34
Historique | Voir | Annoter | Télécharger (3,434 ko)
1 |
<?xml version="1.0" encoding="utf-8" ?>
|
---|---|
2 |
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" |
3 |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" |
4 |
xmlns:vm="clr-namespace:GES_PAC.ViewModel" |
5 |
x:Class="GES_PAC.View.CreatePlaceView" |
6 |
x:DataType="vm:CreatePlaceViewModel"> |
7 |
|
8 |
<Grid Padding="20" RowDefinitions="Auto, *"> |
9 |
|
10 |
<VerticalStackLayout Grid.Row="1" Spacing="20" |
11 |
VerticalOptions="CenterAndExpand" |
12 |
HorizontalOptions="Center"> |
13 |
|
14 |
<Label Text="Informations sur l'élevage" |
15 |
FontSize="20" |
16 |
FontAttributes="Bold" |
17 |
HorizontalOptions="Center" /> |
18 |
|
19 |
<VerticalStackLayout Spacing="15" WidthRequest="300"> |
20 |
|
21 |
<!-- Nom du lieu -->
|
22 |
<VerticalStackLayout>
|
23 |
<Label Text="Nom de l'élevage :" |
24 |
FontSize="14" |
25 |
TextColor="Gray" |
26 |
FontAttributes="Bold"/> |
27 |
|
28 |
<Entry Text="{Binding Nom}" |
29 |
FontSize="16" |
30 |
TextColor="Black" |
31 |
Placeholder="Entrer le nom de l'élevage" |
32 |
MaxLength="25"/> |
33 |
|
34 |
<Label Text="Min. 3 caractères" |
35 |
FontSize="12" |
36 |
TextColor="Red" |
37 |
IsVisible="{Binding NomError}"/> |
38 |
</VerticalStackLayout>
|
39 |
|
40 |
<!-- Client -->
|
41 |
<VerticalStackLayout>
|
42 |
<Label Text="Client :" |
43 |
FontSize="14" |
44 |
TextColor="Gray" |
45 |
FontAttributes="Bold"/> |
46 |
|
47 |
<Entry Text="{Binding Client}" |
48 |
FontSize="16" |
49 |
TextColor="Black" |
50 |
Placeholder="Entrer le nom du client" |
51 |
MaxLength="25"/> |
52 |
|
53 |
<Label Text="Min. 3 caractères" |
54 |
FontSize="12" |
55 |
TextColor="Red" |
56 |
IsVisible="{Binding ClientError}"/> |
57 |
</VerticalStackLayout>
|
58 |
|
59 |
<!-- Espèce -->
|
60 |
<VerticalStackLayout>
|
61 |
<Label Text="Espèce :" |
62 |
FontSize="14" |
63 |
TextColor="Gray" |
64 |
FontAttributes="Bold"/> |
65 |
|
66 |
<Entry Text="{Binding Espece}" |
67 |
FontSize="16" |
68 |
TextColor="Black" |
69 |
Placeholder="Entrer l'espèce" |
70 |
MaxLength="25"/> |
71 |
<Label Text="Min. 3 caractères" |
72 |
FontSize="12" |
73 |
TextColor="Red" |
74 |
IsVisible="{Binding EspeceError}"/> |
75 |
</VerticalStackLayout>
|
76 |
|
77 |
<Button Text="Enregistrer" |
78 |
BackgroundColor="Green" |
79 |
TextColor="White" |
80 |
CornerRadius="10" |
81 |
Padding="15" |
82 |
FontSize="16" |
83 |
HorizontalOptions="Center" |
84 |
WidthRequest="180" |
85 |
IsEnabled="{Binding IsFormValid}" |
86 |
Command="{Binding CreatePlaceCommand}"/> |
87 |
|
88 |
</VerticalStackLayout>
|
89 |
|
90 |
</VerticalStackLayout>
|
91 |
|
92 |
</Grid>
|
93 |
|
94 |
</ContentPage>
|