You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
4.3 KiB
78 lines
4.3 KiB
<?xml version="1.0" encoding="utf-8" ?>
|
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
x:Class="Views.AddRecipe"
|
|
Title="AddRecipe"
|
|
xmlns:local="clr-namespace:Views">
|
|
<VerticalStackLayout>
|
|
<local:MiniHeader
|
|
TitleMini="Ajouter une recette"
|
|
NeedReturn="True"
|
|
HeightRequest="100"/>
|
|
<Grid ColumnDefinitions="auto, *"
|
|
RowDefinitions="auto,auto,auto,auto,auto,auto, auto, auto, auto"
|
|
Margin="50,20,20,20">
|
|
<Label Text="Titre de la recette :"/>
|
|
<Entry Placeholder="Saisie du texte de la recette correspondante"
|
|
Grid.Row="1"
|
|
Margin="10"/>
|
|
<Label Text="Type de la recette" Grid.Row="2"/>
|
|
<CheckBox x:Name="CheckEntree" Grid.Row="3" Margin="10,0,20,0" />
|
|
<Label Text="Entrée" Grid.Row="3" Margin="40,20"/>
|
|
<CheckBox x:Name="CheckPlat" Grid.Row="3" Margin="90,0" />
|
|
<Label Text="Plat" Grid.Row="3" Margin="120,20"/>
|
|
<CheckBox x:Name="CheckDessert" Grid.Row="3" Margin="155,0" />
|
|
<Label Text="Dessert" Grid.Row="3" Margin="185,20"/>
|
|
|
|
<Label Text="Type de priorité" Grid.Row="4"/>
|
|
<Grid BackgroundColor="#D1E8E2"
|
|
MinimumHeightRequest="100"
|
|
MaximumWidthRequest="300"
|
|
Padding="20"
|
|
Grid.Row="5">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Label Text="Recettes économiques" Grid.Row="0" Padding="5,0,0,0"/>
|
|
<BoxView Color="Black" HeightRequest="1" Margin="10,10,10,10" Grid.Row="1" />
|
|
<Label Text="Recettes rapides" Grid.Row="2"/>
|
|
<BoxView Color="Black" HeightRequest="1" Margin="10,10,10,10" Grid.Row="3" />
|
|
<Label Text="Recettes simples" Grid.Row="4"/>
|
|
<BoxView Color="Black" HeightRequest="1" Margin="10,10,10,10" Grid.Row="5" />
|
|
<Label Text="Recettes légères" Grid.Row="6"/>
|
|
<BoxView Color="Black" HeightRequest="1" Margin="10,10,10,10" Grid.Row="7" />
|
|
<Label Text="Recettes gourmandes" Grid.Row="8"/>
|
|
</Grid>
|
|
<Label Text="Saisir les étapes de la recette " Grid.Row="6" Margin="0,15"/>
|
|
<Entry Placeholder="Etape de la recette" Grid.Row="7" Margin="12,0"/>
|
|
<HorizontalStackLayout Grid.Row="8" Margin="20">
|
|
<Button WidthRequest="100" Text="Précédent" TextColor="Black" Margin="20,0,20,0"/>
|
|
<Button WidthRequest="100" Text="Ajouter" TextColor="Black" Margin="20,0"/>
|
|
</HorizontalStackLayout>
|
|
<Label Text="Saisir les ingrédients de la recette" Grid.Row="6" Grid.Column="1" Margin="50,15"/>
|
|
<HorizontalStackLayout Grid.Row="7" Grid.Column="1">
|
|
<Entry Placeholder="Nom de l'ingrédient" Margin="12,0,50,0" WidthRequest="500"/>
|
|
<Picker ItemsSource= "{Binding UnitList}"/>
|
|
</HorizontalStackLayout>
|
|
<HorizontalStackLayout Grid.Row="8" Grid.Column="1" Margin="20">
|
|
<Button WidthRequest="100" Text="Précédent" TextColor="Black" Margin="20,0,20,0"/>
|
|
<Button WidthRequest="100" Text="Ajouter" TextColor="Black" Margin="20,0"/>
|
|
</HorizontalStackLayout>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
</VerticalStackLayout>
|
|
</ContentPage> |