root / GES_PAC / View / EnterAnimalView.xaml @ fff89fc5
Historique | Voir | Annoter | Télécharger (3,554 ko)
1 | 09d4a0de | lbihannic | <?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 | ba296a27 | lbihannic | <Label Text="{Binding Titre}" |
17 | 09d4a0de | lbihannic | 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 | fff89fc5 | lbihannic | <Entry Text="{Binding NumRFID}" FontSize="16" TextColor="Black" Placeholder="04 9C 64 D2 45 2B 80"/> |
27 | ba296a27 | lbihannic | <Label Text="Min. 5 caractères" |
28 | 09d4a0de | lbihannic | FontSize="12" |
29 | TextColor="Red" |
||
30 | IsVisible="{Binding NumRFIDError}"/> |
||
31 | |||
32 | </VerticalStackLayout>
|
||
33 | |||
34 | <!-- Poids -->
|
||
35 | <VerticalStackLayout>
|
||
36 | ba296a27 | lbihannic | <Label Text="Poids (kg)" FontSize="14" TextColor="Gray" FontAttributes="Bold"/> |
37 | fff89fc5 | lbihannic | <Entry Text="{Binding Poids}" FontSize="16" TextColor="Black" Placeholder="75" Keyboard="Numeric"/> |
38 | 09d4a0de | lbihannic | <Label Text="Entrez une valeur" |
39 | FontSize="12" |
||
40 | TextColor="Red" |
||
41 | ba296a27 | lbihannic | IsVisible="{Binding PoidsError}"/> |
42 | 09d4a0de | lbihannic | </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 | ba296a27 | lbihannic | Command="{Binding EnterAnimalCommand}" |
56 | 09d4a0de | lbihannic | 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> |