|
|
@ -9,8 +9,8 @@
|
|
|
|
TitleMini="Ajouter une recette"
|
|
|
|
TitleMini="Ajouter une recette"
|
|
|
|
NeedReturn="True"
|
|
|
|
NeedReturn="True"
|
|
|
|
HeightRequest="100"/>
|
|
|
|
HeightRequest="100"/>
|
|
|
|
<Grid ColumnDefinitions="auto, *"
|
|
|
|
<Grid ColumnDefinitions="auto, auto"
|
|
|
|
RowDefinitions="auto,auto,auto,auto,auto,auto, auto, auto, auto"
|
|
|
|
RowDefinitions="auto,auto,auto,auto,auto,auto, auto, auto, auto,auto"
|
|
|
|
Margin="50,20,20,20">
|
|
|
|
Margin="50,20,20,20">
|
|
|
|
<Label Text="Titre de la recette :"/>
|
|
|
|
<Label Text="Titre de la recette :"/>
|
|
|
|
<Entry Placeholder="Saisie du texte de la recette correspondante"
|
|
|
|
<Entry Placeholder="Saisie du texte de la recette correspondante"
|
|
|
@ -24,56 +24,47 @@
|
|
|
|
<CheckBox x:Name="CheckDessert" Grid.Row="3" Margin="155,0" />
|
|
|
|
<CheckBox x:Name="CheckDessert" Grid.Row="3" Margin="155,0" />
|
|
|
|
<Label Text="Dessert" Grid.Row="3" Margin="185,20"/>
|
|
|
|
<Label Text="Dessert" Grid.Row="3" Margin="185,20"/>
|
|
|
|
<Button Text="pick photo" Clicked="PickPhoto" Grid.Row="1" Grid.Column="1"/>
|
|
|
|
<Button Text="pick photo" Clicked="PickPhoto" Grid.Row="1" Grid.Column="1"/>
|
|
|
|
<Label Text="Type de priorité" Grid.Row="4"/>
|
|
|
|
<Label Text="Type de priorité :" Grid.Row="4" Margin="0,10,0,20"/>
|
|
|
|
<Grid BackgroundColor="#D1E8E2"
|
|
|
|
<VerticalStackLayout Grid.Row="5">
|
|
|
|
MinimumHeightRequest="100"
|
|
|
|
<HorizontalStackLayout>
|
|
|
|
MaximumWidthRequest="300"
|
|
|
|
<Label Text="Recettes Economiques" VerticalOptions="Center"/>
|
|
|
|
Padding="20"
|
|
|
|
<CheckBox x:Name="checkEconomique"/>
|
|
|
|
Grid.Row="5">
|
|
|
|
</HorizontalStackLayout>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<HorizontalStackLayout>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
<Label Text="Recettes Rapides" VerticalOptions="Center"/>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
<CheckBox x:Name="checkFast"/>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
</HorizontalStackLayout>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
<HorizontalStackLayout>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
<Label Text="Recettes Faciles" VerticalOptions="Center"/>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
<CheckBox x:Name="checkEasy"/>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
</HorizontalStackLayout>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
<HorizontalStackLayout>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
<Label Text="Recettes Légères" VerticalOptions="Center"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<CheckBox x:Name="checkLight"/>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
</HorizontalStackLayout>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
<HorizontalStackLayout>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Label Text="Recettes Gourmandes" VerticalOptions="Center"/>
|
|
|
|
<Label Text="Recettes économiques" Grid.Row="0" Padding="5,0,0,0"/>
|
|
|
|
<CheckBox x:Name="checkGourmet"/>
|
|
|
|
<BoxView Color="Black" HeightRequest="1" Margin="10,10,10,10" Grid.Row="1" />
|
|
|
|
</HorizontalStackLayout>
|
|
|
|
<Label Text="Recettes rapides" Grid.Row="2"/>
|
|
|
|
</VerticalStackLayout>
|
|
|
|
<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"/>
|
|
|
|
<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"/>
|
|
|
|
<Entry Placeholder="Etape de la recette" Grid.Row="7" Margin="12,0"/>
|
|
|
|
<HorizontalStackLayout Grid.Row="8" Margin="20">
|
|
|
|
<HorizontalStackLayout Grid.Row="8" Margin="20">
|
|
|
|
<Button WidthRequest="100" Text="Précédent" TextColor="Black" Margin="20,0,20,0"/>
|
|
|
|
<Button WidthRequest="100" Text="Précédent" TextColor="Black" Margin="20,0,20,0" Clicked="AddStepRecipe"/>
|
|
|
|
<Button WidthRequest="100" Text="Ajouter" TextColor="Black" Margin="20,0"/>
|
|
|
|
<Button WidthRequest="100" Text="Ajouter" TextColor="Black" Margin="20,0" Clicked="RemoveStepRecipe"/>
|
|
|
|
</HorizontalStackLayout>
|
|
|
|
</HorizontalStackLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<Label Text="Saisir les ingrédients de la recette" Grid.Row="6" Grid.Column="1" Margin="50,15"/>
|
|
|
|
<Label Text="Saisir les ingrédients de la recette (nom, quantité, unité)" Grid.Row="6" Grid.Column="1" Margin="50,15"/>
|
|
|
|
<HorizontalStackLayout Grid.Row="7" Grid.Column="1">
|
|
|
|
<HorizontalStackLayout Grid.Row="7" Grid.Column="1">
|
|
|
|
<Entry Placeholder="Nom de l'ingrédient" Margin="12,0,50,0" WidthRequest="500"/>
|
|
|
|
<Entry Placeholder="Nom de l'ingrédient" Margin="12,0,0,0" WidthRequest="500"/>
|
|
|
|
|
|
|
|
<Entry Placeholder="1" />
|
|
|
|
<Picker ItemsSource= "{Binding UnitList}"/>
|
|
|
|
<Picker ItemsSource= "{Binding UnitList}"/>
|
|
|
|
</HorizontalStackLayout>
|
|
|
|
</HorizontalStackLayout>
|
|
|
|
<HorizontalStackLayout Grid.Row="8" Grid.Column="1" Margin="20">
|
|
|
|
<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="Précédent" TextColor="Black" Margin="20,0,20,0" Clicked="AddIngredient"/>
|
|
|
|
<Button WidthRequest="100" Text="Ajouter" TextColor="Black" Margin="20,0"/>
|
|
|
|
<Button WidthRequest="100" Text="Ajouter" TextColor="Black" Margin="20,0" Clicked="RemoveIngredient"/>
|
|
|
|
</HorizontalStackLayout>
|
|
|
|
</HorizontalStackLayout>
|
|
|
|
|
|
|
|
<Button Grid.Row="10" Grid.ColumnSpan="2" Text="Validé" TextColor="Black" Clicked="AddRecipeValidation"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
</VerticalStackLayout>
|
|
|
|
</VerticalStackLayout>
|
|
|
|
</ContentPage>
|
|
|
|
</ContentPage>
|