root / GES_PAC / View / EnterAnimalView.xaml @ master
Historique | Voir | Annoter | Télécharger (3,536 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 |
xmlns:tools="clr-namespace:GES_PAC.View.Tools" |
6 |
x:Class="GES_PAC.View.EnterAnimalView" |
7 |
x:DataType="vm:EnterAnimalViewModel"> |
8 |
|
9 |
<Grid>
|
10 |
<StackLayout BackgroundColor="White" Spacing="50"> |
11 |
<tools:ConnectionIndicatorView /> |
12 |
<ScrollView>
|
13 |
|
14 |
<VerticalStackLayout Grid.Row="1" Spacing="30"> |
15 |
|
16 |
<Label Text="{Binding Titre}" |
17 |
FontSize="20" |
18 |
FontAttributes="Bold" |
19 |
HorizontalOptions="Center" /> |
20 |
<VerticalStackLayout Spacing="15" WidthRequest="300"> |
21 |
|
22 |
<!-- Num RFID -->
|
23 |
<VerticalStackLayout>
|
24 |
|
25 |
<Label Text="Numéro RFID" FontSize="14" TextColor="Gray" FontAttributes="Bold"/> |
26 |
<Entry Text="{Binding NumRFID}" FontSize="16" TextColor="Black" Placeholder="25"/> |
27 |
<Label Text="Min. 5 caractères" |
28 |
FontSize="12" |
29 |
TextColor="Red" |
30 |
IsVisible="{Binding NumRFIDError}"/> |
31 |
|
32 |
</VerticalStackLayout>
|
33 |
|
34 |
<!-- Poids -->
|
35 |
<VerticalStackLayout>
|
36 |
<Label Text="Poids (kg)" FontSize="14" TextColor="Gray" FontAttributes="Bold"/> |
37 |
<Entry Text="{Binding Poids}" FontSize="16" TextColor="Black" Placeholder="25" Keyboard="Numeric"/> |
38 |
<Label Text="Entrez une valeur" |
39 |
FontSize="12" |
40 |
TextColor="Red" |
41 |
IsVisible="{Binding PoidsError}"/> |
42 |
</VerticalStackLayout>
|
43 |
|
44 |
</VerticalStackLayout>
|
45 |
</VerticalStackLayout>
|
46 |
</ScrollView>
|
47 |
<StackLayout
|
48 |
Margin="10" |
49 |
HorizontalOptions="CenterAndExpand" |
50 |
Orientation="Horizontal" |
51 |
VerticalOptions="FillAndExpand"> |
52 |
|
53 |
<Button
|
54 |
Text="Enregistrer" |
55 |
Command="{Binding EnterAnimalCommand}" |
56 |
Style="{StaticResource btnNormal}" |
57 |
IsEnabled="{Binding IsFormValid}" |
58 |
VerticalOptions="End"/> |
59 |
</StackLayout>
|
60 |
</StackLayout>
|
61 |
<Grid Grid.RowSpan="1" IsVisible="{Binding IsBusy}"> |
62 |
<Border StrokeThickness="0" |
63 |
Background="Black" |
64 |
Opacity="0.5" |
65 |
Padding="20" |
66 |
WidthRequest="160" |
67 |
HeightRequest="160" |
68 |
HorizontalOptions="Center" |
69 |
VerticalOptions="Center" |
70 |
StrokeShape="RoundRectangle 20"> |
71 |
|
72 |
<VerticalStackLayout HorizontalOptions="Center" VerticalOptions="Center"> |
73 |
<ActivityIndicator IsRunning="True" Color="White" /> |
74 |
<Label Text="Chargement..." |
75 |
FontSize="14" |
76 |
TextColor="white" |
77 |
HorizontalOptions="Center"/> |
78 |
</VerticalStackLayout>
|
79 |
</Border>
|
80 |
</Grid>
|
81 |
</Grid>
|
82 |
|
83 |
</ContentPage>
|