root / GES_PAC / View / CreatePersonView.xaml @ ba296a27
Historique | Voir | Annoter | Télécharger (3,415 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.CreatePersonView" |
6 |
x:DataType="vm:CreatePersonViewModel"> |
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 du technicien" |
15 |
FontSize="20" |
16 |
FontAttributes="Bold" |
17 |
HorizontalOptions="Center" /> |
18 |
|
19 |
<VerticalStackLayout Spacing="15" WidthRequest="300"> |
20 |
|
21 |
<!-- Nom -->
|
22 |
<VerticalStackLayout>
|
23 |
<Label Text="Nom :" |
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" |
32 |
Keyboard="Text" |
33 |
MaxLength="25"/> |
34 |
|
35 |
<Label Text="Min. 3 caractères" |
36 |
FontSize="12" |
37 |
TextColor="Red" |
38 |
IsVisible="{Binding NomError}"/> |
39 |
</VerticalStackLayout>
|
40 |
|
41 |
<!-- Prénom -->
|
42 |
<VerticalStackLayout>
|
43 |
<Label Text="Prénom :" |
44 |
FontSize="14" |
45 |
TextColor="Gray" |
46 |
FontAttributes="Bold"/> |
47 |
|
48 |
<Entry Text="{Binding Prenom}" |
49 |
FontSize="16" |
50 |
TextColor="Black" |
51 |
Placeholder="Entrer le prénom" |
52 |
Keyboard="Text" |
53 |
MaxLength="25"/> |
54 |
|
55 |
<Label Text="Min. 3 caractères" |
56 |
FontSize="12" |
57 |
TextColor="Red" |
58 |
IsVisible="{Binding PrenomError}"/> |
59 |
</VerticalStackLayout>
|
60 |
|
61 |
<!-- Email -->
|
62 |
<VerticalStackLayout>
|
63 |
<Label Text="Email :" |
64 |
FontSize="14" |
65 |
TextColor="Gray" |
66 |
FontAttributes="Bold"/> |
67 |
|
68 |
<Entry Text="{Binding Email}" |
69 |
FontSize="16" |
70 |
TextColor="Black" |
71 |
Placeholder="Entrer l'adresse email" |
72 |
Keyboard="Email" |
73 |
MaxLength="50"/> |
74 |
|
75 |
<Label Text="Min. 10 caractères" |
76 |
FontSize="12" |
77 |
TextColor="Red" |
78 |
IsVisible="{Binding EmailError}"/> |
79 |
</VerticalStackLayout>
|
80 |
</VerticalStackLayout>
|
81 |
|
82 |
<Button Text="Enregistrer" |
83 |
BackgroundColor="Green" |
84 |
TextColor="White" |
85 |
CornerRadius="10" |
86 |
Padding="15" |
87 |
FontSize="16" |
88 |
HorizontalOptions="Center" |
89 |
WidthRequest="180" |
90 |
IsEnabled="{Binding IsFormValid}" |
91 |
Command="{Binding CreatePersonCommand}"/> |
92 |
|
93 |
</VerticalStackLayout>
|
94 |
|
95 |
</Grid>
|
96 |
|
97 |
</ContentPage>
|