root / GES_PAC / View / CreateDayView.xaml @ ba296a27
Historique | Voir | Annoter | Télécharger (4,528 ko)
1 | 65ad7e66 | Lucas Bihannic | <?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 | 18f910c6 | Lucas Bihannic | xmlns:tools="clr-namespace:GES_PAC.View.Tools" |
6 | 65ad7e66 | Lucas Bihannic | x:Class="GES_PAC.View.CreateDayView" |
7 | x:DataType="vm:CreateDayViewModel"> |
||
8 | |||
9 | 18f910c6 | Lucas Bihannic | <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 | 65ad7e66 | Lucas Bihannic | <Picker Grid.Column="0" |
28 | ItemsSource="{Binding Places}" |
||
29 | SelectedItem="{Binding SelectedPlace}" |
||
30 | FontSize="16" |
||
31 | Title="Sélectionner un élevage"/> |
||
32 | |||
33 | 18f910c6 | Lucas Bihannic | <Label Text="Sélectionnez un lieu" |
34 | FontSize="12" |
||
35 | TextColor="Red" |
||
36 | IsVisible="{Binding PlaceError}"/> |
||
37 | </VerticalStackLayout>
|
||
38 | 65ad7e66 | Lucas Bihannic | |
39 | 18f910c6 | Lucas Bihannic | <!-- Technicien -->
|
40 | <VerticalStackLayout>
|
||
41 | <Label Text="Technicien" FontSize="14" TextColor="Gray" FontAttributes="Bold"/> |
||
42 | 65ad7e66 | Lucas Bihannic | |
43 | 18f910c6 | Lucas Bihannic | <Picker Grid.Column="0" |
44 | ItemsSource="{Binding Persons}" |
||
45 | SelectedItem="{Binding SelectedPerson}" |
||
46 | FontSize="16" |
||
47 | Title="Sélectionner un technicien"/> |
||
48 | 65ad7e66 | Lucas Bihannic | |
49 | 18f910c6 | Lucas Bihannic | <Label Text="Sélectionnez un technicien" |
50 | FontSize="12" |
||
51 | TextColor="Red" |
||
52 | IsVisible="{Binding PersonError}"/> |
||
53 | </VerticalStackLayout>
|
||
54 | 65ad7e66 | Lucas Bihannic | |
55 | 18f910c6 | Lucas Bihannic | <!-- 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 | 65ad7e66 | Lucas Bihannic | |
65 | 18f910c6 | Lucas Bihannic | </VerticalStackLayout>
|
66 | </VerticalStackLayout>
|
||
67 | </ScrollView>
|
||
68 | <StackLayout
|
||
69 | Margin="10" |
||
70 | HorizontalOptions="CenterAndExpand" |
||
71 | Orientation="Horizontal" |
||
72 | VerticalOptions="FillAndExpand"> |
||
73 | 65ad7e66 | Lucas Bihannic | |
74 | 18f910c6 | Lucas Bihannic | <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 | 65ad7e66 | Lucas Bihannic | |
93 | 18f910c6 | Lucas Bihannic | <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 | 65ad7e66 | Lucas Bihannic | </Grid>
|
103 | |||
104 | </ContentPage> |