root / GES_PAC / View / CreateDayView.xaml @ 5d673ce0
Historique | Voir | Annoter | Télécharger (4,528 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.CreateDayView" |
7 |
x:DataType="vm:CreateDayViewModel"> |
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="Informations de la journée" |
17 |
FontSize="20" |
18 |
FontAttributes="Bold" |
19 |
HorizontalOptions="Center" /> |
20 |
<VerticalStackLayout Spacing="15" WidthRequest="300"> |
21 |
|
22 |
<!-- Lieu -->
|
23 |
<VerticalStackLayout>
|
24 |
|
25 |
<Label Text="Elevage" FontSize="14" TextColor="Gray" FontAttributes="Bold"/> |
26 |
|
27 |
<Picker Grid.Column="0" |
28 |
ItemsSource="{Binding Places}" |
29 |
SelectedItem="{Binding SelectedPlace}" |
30 |
FontSize="16" |
31 |
Title="Sélectionner un élevage"/> |
32 |
|
33 |
<Label Text="Sélectionnez un lieu" |
34 |
FontSize="12" |
35 |
TextColor="Red" |
36 |
IsVisible="{Binding PlaceError}"/> |
37 |
</VerticalStackLayout>
|
38 |
|
39 |
<!-- Technicien -->
|
40 |
<VerticalStackLayout>
|
41 |
<Label Text="Technicien" FontSize="14" TextColor="Gray" FontAttributes="Bold"/> |
42 |
|
43 |
<Picker Grid.Column="0" |
44 |
ItemsSource="{Binding Persons}" |
45 |
SelectedItem="{Binding SelectedPerson}" |
46 |
FontSize="16" |
47 |
Title="Sélectionner un technicien"/> |
48 |
|
49 |
<Label Text="Sélectionnez un technicien" |
50 |
FontSize="12" |
51 |
TextColor="Red" |
52 |
IsVisible="{Binding PersonError}"/> |
53 |
</VerticalStackLayout>
|
54 |
|
55 |
<!-- Régime alimentaire -->
|
56 |
<VerticalStackLayout>
|
57 |
<Label Text="Régime alimentaire" FontSize="14" TextColor="Gray" FontAttributes="Bold"/> |
58 |
<Entry Text="{Binding Regime}" FontSize="16" TextColor="Black" Placeholder="Entrer le régime alimentaire"/> |
59 |
<Label Text="Min. 3 caractères" |
60 |
FontSize="12" |
61 |
TextColor="Red" |
62 |
IsVisible="{Binding RegimeError}"/> |
63 |
</VerticalStackLayout>
|
64 |
|
65 |
</VerticalStackLayout>
|
66 |
</VerticalStackLayout>
|
67 |
</ScrollView>
|
68 |
<StackLayout
|
69 |
Margin="10" |
70 |
HorizontalOptions="CenterAndExpand" |
71 |
Orientation="Horizontal" |
72 |
VerticalOptions="FillAndExpand"> |
73 |
|
74 |
<Button
|
75 |
Text="Créer une journée" |
76 |
Command="{Binding CreateDayCommand}" |
77 |
Style="{StaticResource btnNormal}" |
78 |
IsEnabled="{Binding IsFormValid}" |
79 |
VerticalOptions="End"/> |
80 |
</StackLayout>
|
81 |
</StackLayout>
|
82 |
<Grid Grid.RowSpan="1" IsVisible="{Binding IsBusy}"> |
83 |
<Border StrokeThickness="0" |
84 |
Background="Black" |
85 |
Opacity="0.5" |
86 |
Padding="20" |
87 |
WidthRequest="160" |
88 |
HeightRequest="160" |
89 |
HorizontalOptions="Center" |
90 |
VerticalOptions="Center" |
91 |
StrokeShape="RoundRectangle 20"> |
92 |
|
93 |
<VerticalStackLayout HorizontalOptions="Center" VerticalOptions="Center"> |
94 |
<ActivityIndicator IsRunning="True" Color="White" /> |
95 |
<Label Text="Chargement..." |
96 |
FontSize="14" |
97 |
TextColor="white" |
98 |
HorizontalOptions="Center"/> |
99 |
</VerticalStackLayout>
|
100 |
</Border>
|
101 |
</Grid>
|
102 |
</Grid>
|
103 |
|
104 |
</ContentPage>
|